CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
PedeLabelerBase.h
Go to the documentation of this file.
1 #ifndef Alignment_MillePedeAlignmentAlgorithm_PedeLabelerBase_h
2 #define Alignment_MillePedeAlignmentAlgorithm_PedeLabelerBase_h
3 
16 
21 
23 
24 #include <vector>
25 
26 class Alignable;
27 class AlignableTracker;
28 class AlignableMuon;
29 class AlignableExtras;
31 
32 /***************************************
33 ****************************************/
35 public:
39 
41  public:
43  : aliTracker_(aliTracker), aliMuon_(aliMuon), aliExtras_(extras) {}
47  };
48 
51  virtual ~PedeLabelerBase() {}
53  virtual void addCalibrations(const std::vector<IntegratedCalibrationBase *> &iCals);
54 
58  virtual unsigned int alignableLabel(Alignable *alignable) const = 0;
63  virtual unsigned int alignableLabelFromParamAndInstance(Alignable *alignable,
64  unsigned int param,
65  unsigned int instance) const = 0;
66  virtual unsigned int lasBeamLabel(unsigned int lasBeamId) const = 0;
68  virtual unsigned int parameterLabel(unsigned int aliLabel, unsigned int parNum) const = 0;
71  virtual unsigned int parameterLabel(Alignable *alignable,
72  unsigned int parNum,
73  const AlignmentAlgorithmBase::EventInfo &eventInfo,
74  const TrajectoryStateOnSurface &tsos) const = 0;
76  virtual bool hasSplitParameters(Alignable *alignable) const = 0;
78  virtual unsigned int numberOfParameterInstances(Alignable *alignable, int param = -1) const = 0;
80  virtual unsigned int maxNumberOfParameterInstances() const = 0;
82  unsigned int parameterInstanceOffset() const { return theParamInstanceOffset; }
83 
85  virtual unsigned int paramNumFromLabel(unsigned int paramLabel) const = 0;
87  virtual unsigned int alignableLabelFromLabel(unsigned int label) const = 0;
90  virtual Alignable *alignableFromLabel(unsigned int label) const = 0;
93  virtual unsigned int lasBeamIdFromLabel(unsigned int label) const = 0;
96  virtual std::pair<IntegratedCalibrationBase *, unsigned int> calibrationParamFromLabel(unsigned int label) const;
97 
98  virtual const RunRange &runRangeFromLabel(unsigned int label) const { return theOpenRunRange; }
101  virtual unsigned int firstFreeLabel() const;
102 
104  virtual unsigned int calibrationLabel(const IntegratedCalibrationBase *calib, unsigned int paramNum) const;
108 
109  static const unsigned int theMaxNumParam;
110  static const unsigned int theParamInstanceOffset;
111  static const unsigned int theMinLabel;
112 
113 protected:
116  virtual unsigned int firstNonAlignableLabel() const;
117 
120 
122 
123 private:
126 
128  std::vector<std::pair<IntegratedCalibrationBase *, unsigned int> > theCalibrationLabels;
129 };
130 
131 #endif
virtual const RunRange & runRangeFromLabel(unsigned int label) const
virtual Alignable * alignableFromLabel(unsigned int label) const =0
const TopLevelAlignables topLevelAlignables_
virtual unsigned int alignableLabelFromLabel(unsigned int label) const =0
alignable label from parameter label (works also for alignable label...)
static PFTauRenderPlugin instance
virtual unsigned int alignableLabel(Alignable *alignable) const =0
std::vector< RunRange > RunRanges
Definition: Utilities.h:39
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
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 )
char const * label
align::RunNumber RunNumber
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
std::pair< RunNumber, RunNumber > RunRange
Definition: Utilities.h:38
align::RunRange RunRange
const AlignableObjectId alignableObjectId_
static const unsigned int theParamInstanceOffset
virtual unsigned int calibrationLabel(const IntegratedCalibrationBase *calib, unsigned int paramNum) const
label for parameter &#39;paramNum&#39; (counted from 0) of an integrated calibration
tuple config
parse the configuration file
virtual unsigned int firstFreeLabel() const
virtual void addCalibrations(const std::vector< IntegratedCalibrationBase * > &iCals)
tell labeler to treat also integrated calibrations
std::vector< std::pair< IntegratedCalibrationBase *, unsigned int > > theCalibrationLabels
pairs of calibrations and their first label
virtual std::pair< IntegratedCalibrationBase *, unsigned int > calibrationParamFromLabel(unsigned int label) const
align::RunRanges RunRanges
Constructor of the full muon geometry.
Definition: AlignableMuon.h:38
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*
cond::RealTimeType< cond::runnumber >::type RunNumber
Definition: Utilities.h:37
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