CMS 3D CMS Logo

MillePedeVariables.h
Go to the documentation of this file.
1 #ifndef MILLEPEDEVARIABLES_H
2 #define MILLEPEDEVARIABLES_H
3 
17 
18 #include <string>
19 #include <vector>
20 
22 public:
24  MillePedeVariables(unsigned int nParams, unsigned int label, const std::string& name);
26  ~MillePedeVariables() override = default;
28  MillePedeVariables* clone() const override { 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  const std::string& name() const { return myName; }
73  void setName(const std::string& name) { myName = name; }
74 
76  unsigned int hitsX() const { return myHitsX; }
78  void increaseHitsX(unsigned int add = 1) { myHitsX += add; }
79  void setHitsX(unsigned int hitsX) { myHitsX = hitsX; }
80 
82  unsigned int hitsY() const { return myHitsY; }
84  void increaseHitsY(unsigned int add = 1) { myHitsY += add; }
85  void setHitsY(unsigned int hitsY) { myHitsY = hitsY; }
86 
88  bool isFixed(unsigned int nParam) const;
89 
90 private:
91  MillePedeVariables() {} // make unusable default constructor
92 
93  std::vector<bool> myIsValid;
94  std::vector<float> myDiffBefore;
95  std::vector<float> myGlobalCor;
96  std::vector<float> myPreSigma;
97  std::vector<float> myParameter;
98  std::vector<float> mySigma;
99  unsigned int myHitsX;
100  unsigned int myHitsY;
101  unsigned int myLabel;
103 };
104 
105 #endif
MillePedeVariables::increaseHitsY
void increaseHitsY(unsigned int add=1)
increase hits for y-measurement
Definition: MillePedeVariables.h:84
MillePedeVariables::setHitsY
void setHitsY(unsigned int hitsY)
Definition: MillePedeVariables.h:85
MillePedeVariables::preSigma
std::vector< float > & preSigma()
get array of presigmas (<= 0: means fixed) for changing it
Definition: MillePedeVariables.h:53
MillePedeVariables::myDiffBefore
std::vector< float > myDiffBefore
Definition: MillePedeVariables.h:94
pfTracksFromL1Tracks_cfi.nParam
nParam
Definition: pfTracksFromL1Tracks_cfi.py:5
MillePedeVariables::sigma
std::vector< float > & sigma()
get array of sigmas for changing it
Definition: MillePedeVariables.h:58
AlignmentUserVariables
(Abstract) Base class for alignment algorithm user variables
Definition: AlignmentUserVariables.h:6
MillePedeVariables::setHitsX
void setHitsX(unsigned int hitsX)
Definition: MillePedeVariables.h:79
MillePedeVariables::clone
MillePedeVariables * clone() const override
Definition: MillePedeVariables.h:28
MillePedeVariables::myName
std::string myName
Definition: MillePedeVariables.h:102
MillePedeVariables::hitsY
unsigned int hitsY() const
get number of hits for y-measurement
Definition: MillePedeVariables.h:82
MillePedeVariables::size
unsigned int size() const
number of parameters
Definition: MillePedeVariables.h:33
MillePedeVariables::label
unsigned int label() const
get alignable label as used by pede
Definition: MillePedeVariables.h:66
MillePedeVariables::isValid
const std::vector< bool > & isValid() const
get valid flag array
Definition: MillePedeVariables.h:36
MillePedeVariables::diffBefore
std::vector< float > & diffBefore()
get array of differences to start value for changing it
Definition: MillePedeVariables.h:43
MillePedeVariables::myLabel
unsigned int myLabel
Definition: MillePedeVariables.h:101
AlignmentUserVariables.h
MillePedeVariables::~MillePedeVariables
~MillePedeVariables() override=default
MillePedeVariables::hitsX
unsigned int hitsX() const
get number of hits for x-measurement
Definition: MillePedeVariables.h:76
MillePedeVariables::myHitsY
unsigned int myHitsY
Definition: MillePedeVariables.h:100
MillePedeVariables::setAllDefault
bool setAllDefault(unsigned int nParam)
set default values for all data concerning nParam (false if nParam out of range)
Definition: MillePedeVariables.cc:32
MillePedeVariables::myHitsX
unsigned int myHitsX
Definition: MillePedeVariables.h:99
MillePedeVariables::myParameter
std::vector< float > myParameter
<= 0 means fixed
Definition: MillePedeVariables.h:97
MillePedeVariables::globalCor
std::vector< float > & globalCor()
get global correlation array for changing it
Definition: MillePedeVariables.h:48
MillePedeVariables::increaseHitsX
void increaseHitsX(unsigned int add=1)
increase hits for x-measurement
Definition: MillePedeVariables.h:78
PVValHelper::add
void add(std::map< std::string, TH1 * > &h, TH1 *hist)
Definition: PVValidationHelpers.cc:12
MillePedeVariables::mySigma
std::vector< float > mySigma
Definition: MillePedeVariables.h:98
MillePedeVariables::preSigma
const std::vector< float > & preSigma() const
get array of presigmas (<= 0: means fixed)
Definition: MillePedeVariables.h:51
MillePedeVariables::diffBefore
const std::vector< float > & diffBefore() const
get array of differences to start value
Definition: MillePedeVariables.h:41
MillePedeVariables::myIsValid
std::vector< bool > myIsValid
Definition: MillePedeVariables.h:93
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
MillePedeVariables::setName
void setName(const std::string &name)
set alignable name
Definition: MillePedeVariables.h:73
MillePedeVariables::myPreSigma
std::vector< float > myPreSigma
Definition: MillePedeVariables.h:96
MillePedeVariables::parameter
const std::vector< float > & parameter() const
get array of parameters
Definition: MillePedeVariables.h:61
MillePedeVariables::setLabel
void setLabel(unsigned int label)
set alignable label as used by pede
Definition: MillePedeVariables.h:68
MillePedeVariables::isFixed
bool isFixed(unsigned int nParam) const
true if parameter is fixed
Definition: MillePedeVariables.cc:47
MillePedeVariables::MillePedeVariables
MillePedeVariables()
Definition: MillePedeVariables.h:91
MillePedeVariables::isValid
std::vector< bool > & isValid()
get valid flag array for changing it
Definition: MillePedeVariables.h:38
MillePedeVariables::sigma
const std::vector< float > & sigma() const
get array of sigmas
Definition: MillePedeVariables.h:56
MillePedeVariables::globalCor
const std::vector< float > & globalCor() const
get global correlation array
Definition: MillePedeVariables.h:46
MillePedeVariables
Definition: MillePedeVariables.h:21
MillePedeVariables::name
const std::string & name() const
get alignable name
Definition: MillePedeVariables.h:71
MillePedeVariables::parameter
std::vector< float > & parameter()
get array of parameters for changing it
Definition: MillePedeVariables.h:63
MillePedeVariables::myGlobalCor
std::vector< float > myGlobalCor
Definition: MillePedeVariables.h:95