Millepede-II V04-17-03
Public Member Functions | Private Attributes | List of all members
tinypede.Pede Class Reference

Pede. More...

Inheritance diagram for tinypede.Pede:

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...
 

Detailed Description

Pede.

Implements only very basic PEDE functionality. Performs local and global fits. Features:

Definition at line 221 of file tinypede.py.

Constructor & Destructor Documentation

◆ __init__()

def tinypede.Pede.__init__ (   self)

Constructor.

Definition at line 225 of file tinypede.py.

Member Function Documentation

◆ addBinaryFile()

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.

Parameters
[in]binaryFileNamename of MP-II binary file
[in]maxRecmaximal number of records
[in]fileType'C' or 'F'ortran type

Definition at line 267 of file tinypede.py.

References tinypede.Pede.__binaryFiles.

◆ addConstraints()

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).

Parameters
[in]textFilefile 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.

◆ construct()

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.

Parameters
[in]chi2Factorreject 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.

◆ defineParameters()

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.

Parameters
[in]entriesCutentries cut
[in]fixedParfixed parameters (labels)

Definition at line 279 of file tinypede.py.

References tinypede.Pede.__binaryFiles, tinypede.Pede.__numPar, tinypede.Pede.__parCounters, and tinypede.Pede.__parIndices.

◆ dump()

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.

◆ solve()

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.

Member Data Documentation

◆ __binaryFiles

tinypede.Pede.__binaryFiles
private

binary files

Definition at line 227 of file tinypede.py.

Referenced by tinypede.Pede.addBinaryFile(), tinypede.Pede.construct(), and tinypede.Pede.defineParameters().

◆ __listCons

tinypede.Pede.__listCons
private

list constraints

Definition at line 251 of file tinypede.py.

Referenced by tinypede.Pede.addConstraints(), and tinypede.Pede.construct().

◆ __matrix

tinypede.Pede.__matrix
private

matrix

Definition at line 235 of file tinypede.py.

Referenced by tinypede.Pede.construct(), tinypede.Pede.dump(), and tinypede.Pede.solve().

◆ __numBad

tinypede.Pede.__numBad
private

bad local fits (rank deficit)

Definition at line 247 of file tinypede.py.

Referenced by tinypede.Pede.construct().

◆ __numCons

tinypede.Pede.__numCons
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().

◆ __numPar

tinypede.Pede.__numPar
private

◆ __numRec

tinypede.Pede.__numRec
private

number of records

Definition at line 243 of file tinypede.py.

Referenced by tinypede.Pede.construct().

◆ __numRejects

tinypede.Pede.__numRejects
private

number of rejects (Chi2,ndf)

Definition at line 245 of file tinypede.py.

Referenced by tinypede.Pede.construct().

◆ __parCounters

tinypede.Pede.__parCounters
private

parameter counters

Definition at line 231 of file tinypede.py.

Referenced by tinypede.Pede.defineParameters(), and tinypede.Pede.solve().

◆ __parIndices

tinypede.Pede.__parIndices
private

◆ __sumChi2

tinypede.Pede.__sumChi2
private

sum(chi2)

Definition at line 239 of file tinypede.py.

Referenced by tinypede.Pede.construct(), and tinypede.Pede.solve().

◆ __sumNdf

tinypede.Pede.__sumNdf
private

sum(ndf)

Definition at line 241 of file tinypede.py.

Referenced by tinypede.Pede.construct(), and tinypede.Pede.solve().

◆ __vector

tinypede.Pede.__vector
private

vector

Definition at line 237 of file tinypede.py.

Referenced by tinypede.Pede.construct(), and tinypede.Pede.solve().


The documentation for this class was generated from the following file: