Millepede-II V04-17-03
|
Public Member Functions | |
def | __init__ (self) |
Constructor. More... | |
def | addBinaryFile (self, binaryFileName, maxRec=1000000, fileType='C') |
Add binary file. More... | |
def | defineParameters (self, entriesCut=25, fixedPar=[]) |
Define Parameters. More... | |
def | addConstraints (self, textFile) |
Add constraints. More... | |
def | construct (self, chi2Factor=50.) |
Construct linear equation system. More... | |
def | dump (self) |
Dump global matrix. More... | |
def | solve (self) |
Solve linear equation system. More... | |
Private Attributes | |
__binaryFiles | |
binary files More... | |
__numPar | |
number of parameters More... | |
__parCounters | |
parameter counters More... | |
__parIndices | |
parameter indices More... | |
__matrix | |
matrix More... | |
__vector | |
vector More... | |
__sumChi2 | |
sum(chi2) More... | |
__sumNdf | |
sum(ndf) More... | |
__numRec | |
number of records More... | |
__numRejects | |
number of rejects (Chi2,ndf) More... | |
__numBad | |
bad local fits (rank deficit) More... | |
__numCons | |
rank of global matrix More... | |
__listCons | |
list constraints More... | |
Pede.
Implements only very basic PEDE functionality. Performs local and global fits. Features:
Definition at line 221 of file tinypede.py.
def tinypede.Pede.__init__ | ( | self | ) |
Constructor.
Definition at line 225 of file tinypede.py.
def tinypede.Pede.addBinaryFile | ( | self, | |
binaryFileName, | |||
maxRec = 1000000 , |
|||
fileType = 'C' |
|||
) |
Add binary file.
Add C (default) or Fortran type binary file to list of files. Optionally specify maximum number of records to read from that file.
[in] | binaryFileName | name of MP-II binary file |
[in] | maxRec | maximal number of records |
[in] | fileType | 'C' or 'F'ortran type |
Definition at line 267 of file tinypede.py.
References tinypede.Pede.__binaryFiles.
def tinypede.Pede.addConstraints | ( | self, | |
textFile | |||
) |
Add constraints.
Add (linear equality) constraints from text file. Accept only constraints with at least one variable parameter. Assume zero r.h.s. (C*p=0).
[in] | textFile | file name (text file with constraints) |
Definition at line 337 of file tinypede.py.
References tinypede.Pede.__listCons, tinypede.Pede.__numCons, tinypede.Pede.__numPar, tinypede.Pede.__parIndices, and readMilleBinary.int.
def tinypede.Pede.construct | ( | self, | |
chi2Factor = 50. |
|||
) |
Construct linear equation system.
Perform local fits, reject bad records (local fit failed) and records with too large Chi2(ndf) and build up global matrix and vector.
[in] | chi2Factor | reject local fits with prob(chi2/chi2Factor,ndf) < 0.0027 |
Definition at line 387 of file tinypede.py.
References tinypede.Pede.__binaryFiles, tinypede.Pede.__listCons, tinypede.Pede.__matrix, tinypede.Pede.__numBad, tinypede.Pede.__numCons, tinypede.Pede.__numPar, tinypede.Pede.__numRec, tinypede.Pede.__numRejects, tinypede.Pede.__parIndices, tinypede.Pede.__sumChi2, tinypede.Pede.__sumNdf, tinypede.Pede.__vector, and readMilleBinary.int.
def tinypede.Pede.defineParameters | ( | self, | |
entriesCut = 25 , |
|||
fixedPar = [] |
|||
) |
Define Parameters.
Read all binary files to get list of all global parameters. Apply (minimum number of) entries cut and list of fixed parameters to get list of free/variable parameters.
[in] | entriesCut | entries cut |
[in] | fixedPar | fixed parameters (labels) |
Definition at line 279 of file tinypede.py.
References tinypede.Pede.__binaryFiles, tinypede.Pede.__numPar, tinypede.Pede.__parCounters, and tinypede.Pede.__parIndices.
def tinypede.Pede.dump | ( | self | ) |
Dump global matrix.
Definition at line 509 of file tinypede.py.
References tinypede.Pede.__matrix, tinypede.Pede.__numCons, and tinypede.Pede.__numPar.
def tinypede.Pede.solve | ( | self | ) |
Solve linear equation system.
Solve linear equation system (global fit) and print results.
Definition at line 520 of file tinypede.py.
References tinypede.Pede.__matrix, tinypede.Pede.__numPar, tinypede.Pede.__parCounters, tinypede.Pede.__parIndices, tinypede.Pede.__sumChi2, tinypede.Pede.__sumNdf, and tinypede.Pede.__vector.
|
private |
binary files
Definition at line 227 of file tinypede.py.
Referenced by tinypede.Pede.addBinaryFile(), tinypede.Pede.construct(), and tinypede.Pede.defineParameters().
|
private |
list constraints
Definition at line 251 of file tinypede.py.
Referenced by tinypede.Pede.addConstraints(), and tinypede.Pede.construct().
|
private |
matrix
Definition at line 235 of file tinypede.py.
Referenced by tinypede.Pede.construct(), tinypede.Pede.dump(), and tinypede.Pede.solve().
|
private |
bad local fits (rank deficit)
Definition at line 247 of file tinypede.py.
Referenced by tinypede.Pede.construct().
|
private |
rank of global matrix
Definition at line 249 of file tinypede.py.
Referenced by tinypede.Pede.addConstraints(), tinypede.Pede.construct(), and tinypede.Pede.dump().
|
private |
number of parameters
Definition at line 229 of file tinypede.py.
Referenced by tinypede.Pede.addConstraints(), tinypede.Pede.construct(), tinypede.Pede.defineParameters(), tinypede.Pede.dump(), and tinypede.Pede.solve().
|
private |
number of records
Definition at line 243 of file tinypede.py.
Referenced by tinypede.Pede.construct().
|
private |
number of rejects (Chi2,ndf)
Definition at line 245 of file tinypede.py.
Referenced by tinypede.Pede.construct().
|
private |
parameter counters
Definition at line 231 of file tinypede.py.
Referenced by tinypede.Pede.defineParameters(), and tinypede.Pede.solve().
|
private |
parameter indices
Definition at line 233 of file tinypede.py.
Referenced by tinypede.Pede.addConstraints(), tinypede.Pede.construct(), tinypede.Pede.defineParameters(), and tinypede.Pede.solve().
|
private |
sum(chi2)
Definition at line 239 of file tinypede.py.
Referenced by tinypede.Pede.construct(), and tinypede.Pede.solve().
|
private |
sum(ndf)
Definition at line 241 of file tinypede.py.
Referenced by tinypede.Pede.construct(), and tinypede.Pede.solve().
|
private |
vector
Definition at line 237 of file tinypede.py.
Referenced by tinypede.Pede.construct(), and tinypede.Pede.solve().