CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PedeLabelerBase.h
Go to the documentation of this file.
1 #ifndef Alignment_MillePedeAlignmentAlgorithm_PedeLabelerBase_h
2 #define Alignment_MillePedeAlignmentAlgorithm_PedeLabelerBase_h
3 
16 
20 
22 
23 #include <vector>
24 
25 class Alignable;
26 class AlignableTracker;
27 class AlignableMuon;
28 class AlignableExtras;
30 
31 /***************************************
32 ****************************************/
34 {
35  public:
36 
39  typedef std::vector<RunRange> RunRanges;
40 
42  {
43  public:
45  AlignableMuon *aliMuon,
46  AlignableExtras *extras)
47  :aliTracker_(aliTracker), aliMuon_(aliMuon), aliExtras_(extras) {}
51  };
52 
54  PedeLabelerBase(const TopLevelAlignables& alignables,
55  const edm::ParameterSet & config);
56  virtual ~PedeLabelerBase() {}
58  virtual void addCalibrations(const std::vector<IntegratedCalibrationBase*> &iCals);
59 
63  virtual unsigned int alignableLabel(Alignable *alignable) const = 0;
68  virtual unsigned int alignableLabelFromParamAndInstance(Alignable *alignable,
69  unsigned int param,
70  unsigned int instance) const = 0;
71  virtual unsigned int lasBeamLabel(unsigned int lasBeamId) const = 0;
73  virtual unsigned int parameterLabel(unsigned int aliLabel, unsigned int parNum) const = 0;
76  virtual unsigned int parameterLabel(Alignable *alignable, unsigned int parNum,
78  const TrajectoryStateOnSurface &tsos) const = 0;
80  virtual bool hasSplitParameters(Alignable *alignable) const = 0;
82  virtual unsigned int numberOfParameterInstances(Alignable *alignable,
83  int param=-1) const = 0;
85  virtual unsigned int maxNumberOfParameterInstances() const = 0;
87  unsigned int parameterInstanceOffset() const { return theParamInstanceOffset; }
88 
90  virtual unsigned int paramNumFromLabel(unsigned int paramLabel) const = 0;
92  virtual unsigned int alignableLabelFromLabel(unsigned int label) const = 0;
95  virtual Alignable* alignableFromLabel(unsigned int label) const = 0;
98  virtual unsigned int lasBeamIdFromLabel(unsigned int label) const = 0;
101  virtual std::pair<IntegratedCalibrationBase*, unsigned int>
102  calibrationParamFromLabel(unsigned int label) const;
103 
104  virtual const RunRange& runRangeFromLabel(unsigned int label) const {
105  return theOpenRunRange;
106  }
109  virtual unsigned int firstFreeLabel() const;
110 
112  virtual unsigned int calibrationLabel(const IntegratedCalibrationBase* calib,
113  unsigned int paramNum) const;
117 
118  static const unsigned int theMaxNumParam;
119  static const unsigned int theParamInstanceOffset;
120  static const unsigned int theMinLabel;
121 
122  protected:
125  virtual unsigned int firstNonAlignableLabel() const;
126 
129 
131 
132  private:
133 
136 
138  std::vector<std::pair<IntegratedCalibrationBase*, unsigned int> > theCalibrationLabels;
139 
140 };
141 
142 #endif
virtual const RunRange & runRangeFromLabel(unsigned int label) const
AlignmentAlgorithmBase::RunNumber RunNumber
virtual Alignable * alignableFromLabel(unsigned int label) const =0
const TopLevelAlignables topLevelAlignables_
cond::RealTimeType< cond::runnumber >::type RunNumber
virtual unsigned int alignableLabelFromLabel(unsigned int label) const =0
alignable label from parameter label (works also for alignable label...)
std::vector< std::pair< IntegratedCalibrationBase *, unsigned int > > theCalibrationLabels
pairs of calibrations and their first label
AlignmentAlgorithmBase::RunRange RunRange
static PFTauRenderPlugin instance
virtual unsigned int alignableLabel(Alignable *alignable) const =0
virtual ~PedeLabelerBase()
static const unsigned int theMinLabel
virtual unsigned int paramNumFromLabel(unsigned int paramLabel) const =0
parameter number, 0 &lt;= .. &lt; theMaxNumParam, belonging to unique parameter label
virtual unsigned int firstNonAlignableLabel() const
std::pair< RunNumber, RunNumber > RunRange
virtual unsigned int lasBeamLabel(unsigned int lasBeamId) const =0
Interface/Base class for alignment algorithms, each alignment algorithm has to be derived from this c...
const RunRange theOpenRunRange
define event information passed to algorithms
static const unsigned int theMaxNumParam
virtual unsigned int parameterLabel(unsigned int aliLabel, unsigned int parNum) const =0
returns the label for a given alignable parameter number combination
PedeLabelerBase(const TopLevelAlignables &alignables, const edm::ParameterSet &config)
constructor from three Alignables (null pointers allowed )
MVATrainerComputer * calib
Definition: MVATrainer.cc:64
unsigned int parameterInstanceOffset() const
offset in labels between consecutive parameter instances of Alignable*s
TopLevelAlignables(AlignableTracker *aliTracker, AlignableMuon *aliMuon, AlignableExtras *extras)
const AlignableExtras * alignableExtras() const
Allows conversion between type and name, and vice-versa.
const AlignableTracker * alignableTracker() const
virtual unsigned int alignableLabelFromParamAndInstance(Alignable *alignable, unsigned int param, unsigned int instance) const =0
const AlignableObjectId alignableObjectId_
static const unsigned int theParamInstanceOffset
std::vector< RunRange > RunRanges
virtual unsigned int calibrationLabel(const IntegratedCalibrationBase *calib, unsigned int paramNum) const
label for parameter &#39;paramNum&#39; (counted from 0) of an integrated calibration
virtual unsigned int firstFreeLabel() const
virtual void addCalibrations(const std::vector< IntegratedCalibrationBase * > &iCals)
tell labeler to treat also integrated calibrations
virtual std::pair< IntegratedCalibrationBase *, unsigned int > calibrationParamFromLabel(unsigned int label) const
Constructor of the full muon geometry.
Definition: AlignableMuon.h:37
const AlignableMuon * alignableMuon() const
virtual unsigned int numberOfParameterInstances(Alignable *alignable, int param=-1) const =0
returns the number of instances for a given parameter
const AlignableObjectId & objectIdProvider() const
Return tracker alignable object ID provider derived from the tracker&#39;s geometry.
virtual unsigned int maxNumberOfParameterInstances() const =0
returns the maximum number of instances for any parameter of an Alignable*
virtual bool hasSplitParameters(Alignable *alignable) const =0
returns true if the alignable has parameters that are split into various bins
virtual unsigned int lasBeamIdFromLabel(unsigned int label) const =0