test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MillePedeVariables.h
Go to the documentation of this file.
1 #ifndef MILLEPEDEVARIABLES_H
2 #define MILLEPEDEVARIABLES_H
3 
17 
18 #include <vector>
19 
21  public:
22 
24  MillePedeVariables(unsigned int nParams, unsigned int label);
26  virtual ~MillePedeVariables() {}
28  virtual MillePedeVariables* clone() const { return new MillePedeVariables(*this);}
29 
31  bool setAllDefault(unsigned int nParam);
33  unsigned int size() const {return myIsValid.size();}
34 
36  const std::vector<bool>& isValid() const { return myIsValid;}
38  std::vector<bool>& isValid() { return myIsValid;}
39 
41  const std::vector<float>& diffBefore() const {return myDiffBefore;}
43  std::vector<float>& diffBefore() {return myDiffBefore;}
44 
46  const std::vector<float>& globalCor() const {return myGlobalCor;}
48  std::vector<float>& globalCor() {return myGlobalCor;}
49 
51  const std::vector<float>& preSigma() const {return myPreSigma;}
53  std::vector<float>& preSigma() {return myPreSigma;}
54 
56  const std::vector<float>& sigma() const {return mySigma;}
58  std::vector<float>& sigma() {return mySigma;}
59 
61  const std::vector<float>& parameter() const {return myParameter;}
63  std::vector<float>& parameter() {return myParameter;}
64 
66  unsigned int label() const {return myLabel;}
68  void setLabel(unsigned int label) { myLabel = label;}
69 
71  unsigned int hitsX() const {return myHitsX;}
73  void increaseHitsX(unsigned int add = 1) { myHitsX += add;}
74  void setHitsX(unsigned int hitsX) { myHitsX = hitsX;}
75 
77  unsigned int hitsY() const {return myHitsY;}
79  void increaseHitsY(unsigned int add = 1) { myHitsY += add;}
80  void setHitsY(unsigned int hitsY) { myHitsY = hitsY;}
81 
83  bool isFixed(unsigned int nParam) const;
84 
85  private:
86  MillePedeVariables() {} // make unusable default constructor
87 
88  std::vector<bool> myIsValid;
89  std::vector<float> myDiffBefore;
90  std::vector<float> myGlobalCor;
91  std::vector<float> myPreSigma;
92  std::vector<float> myParameter;
93  std::vector<float> mySigma;
94  unsigned int myHitsX;
95  unsigned int myHitsY;
96  unsigned int myLabel;
97 };
98 
99 #endif
unsigned int hitsX() const
get number of hits for x-measurement
unsigned int label() const
get alignable label as used by pede
const std::vector< float > & globalCor() const
get global correlation array
unsigned int size() const
number of parameters
void increaseHitsX(unsigned int add=1)
increase hits for x-measurement
std::vector< float > & preSigma()
get array of presigmas (&lt;= 0: means fixed) for changing it
void increaseHitsY(unsigned int add=1)
increase hits for y-measurement
bool isFixed(unsigned int nParam) const
true if parameter is fixed
std::vector< bool > myIsValid
const std::vector< float > & parameter() const
get array of parameters
void add(const std::vector< const T * > &source, std::vector< const T * > &dest)
virtual MillePedeVariables * clone() const
std::vector< bool > & isValid()
get valid flag array for changing it
void setHitsY(unsigned int hitsY)
const std::vector< float > & preSigma() const
get array of presigmas (&lt;= 0: means fixed)
std::vector< float > & parameter()
get array of parameters for changing it
unsigned int hitsY() const
get number of hits for y-measurement
const std::vector< float > & sigma() const
get array of sigmas
std::vector< float > myDiffBefore
(Abstract) Base class for alignment algorithm user variables
std::vector< float > & sigma()
get array of sigmas for changing it
const std::vector< float > & diffBefore() const
get array of differences to start value
std::vector< float > myParameter
&lt;= 0 means fixed
const std::vector< bool > & isValid() const
get valid flag array
std::vector< float > mySigma
std::vector< float > myPreSigma
std::vector< float > & diffBefore()
get array of differences to start value for changing it
void setLabel(unsigned int label)
set alignable label as used by pede
std::vector< float > myGlobalCor
bool setAllDefault(unsigned int nParam)
set default values for all data concerning nParam (false if nParam out of range)
void setHitsX(unsigned int hitsX)
std::vector< float > & globalCor()
get global correlation array for changing it