CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
AlignableCompositeBuilder.h
Go to the documentation of this file.
1 #ifndef ALIGNMENT_COMMONALIGNMENT_INTERFACE_ALIGNABLECOMPOSITEBUILDER_H_
2 #define ALIGNMENT_COMMONALIGNMENT_INTERFACE_ALIGNABLECOMPOSITEBUILDER_H_
3 
4 // Original Author: Max Stark
5 // Created: Wed, 10 Feb 2016 14:02:51 CET
6 
7 // alignment
13 
15  //========================== PUBLIC METHODS =================================
16 public: //===================================================================
18  virtual ~AlignableCompositeBuilder() = default;
19 
24  void addAlignmentLevel(std::unique_ptr<AlignmentLevel> level);
25 
27  void clearAlignmentLevels();
28 
37  unsigned int buildAll(AlignableMap&, bool update = false);
38 
41 
42  //========================= PRIVATE METHODS =================================
43 private: //==================================================================
45  unsigned int buildLevel(unsigned int parentLevel, AlignableMap&, std::ostringstream&, bool update = false);
46 
49  unsigned int maxNumComponents(unsigned int startLevel) const;
50 
53  unsigned int getIndexOfStructure(align::ID, unsigned int level) const;
54 
55  //========================== PRIVATE DATA ===================================
56  //===========================================================================
57 
58  // TODO: The AlignableCompositeBuilder is not 'common' as the package
59  // suggests, because it uses the TrackerTopology. If this class shall
60  // ever be used to build other kinds of alignables than tracker-
61  // alignables one has to add/implement something more general than
62  // the TrackerTopology
65 
67 
69 };
70 
71 #endif /* ALIGNMENT_COMMONALIGNMENT_INTERFACE_ALIGNABLECOMPOSITEBUILDER_H_ */
std::vector< std::unique_ptr< AlignmentLevel > > AlignmentLevels
Definition: Utilities.h:33
AlignableCompositeBuilder(const TrackerTopology *, const TrackerGeometry *, const AlignableIndexer &)
unsigned int getIndexOfStructure(align::ID, unsigned int level) const
uint32_t ID
Definition: Definitions.h:24
align::AlignmentLevels alignmentLevels_
const AlignableObjectId & objectIdProvider() const
Return tracker alignable object ID provider derived from the tracker&#39;s geometry.
const AlignableObjectId alignableObjectId_
Allows conversion between type and name, and vice-versa.
const TrackerTopology * trackerTopology_
void clearAlignmentLevels()
Resets the alignment-levels.
unsigned int maxNumComponents(unsigned int startLevel) const
#define update(a, b)
virtual ~AlignableCompositeBuilder()=default
unsigned int buildLevel(unsigned int parentLevel, AlignableMap &, std::ostringstream &, bool update=false)
Builds the components for a given level in the hierarchy.
tuple level
Definition: testEve_cfg.py:47
unsigned int buildAll(AlignableMap &, bool update=false)
void addAlignmentLevel(std::unique_ptr< AlignmentLevel > level)