CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
AlignableData.h
Go to the documentation of this file.
1 #ifndef Alignment_CommonAlignmentAlgorithm_AlignableData_h
2 #define Alignment_CommonAlignmentAlgorithm_AlignableData_h
3 
6 #include <vector>
7 
12 
13 template<class T> class AlignableData
14 {
15 
16 public:
17 
21  const align::RotationType& rot,
23  const std::vector<double> &deformationParameters = std::vector<double>()) :
24  thePos(pos), theRot(rot), theObjId(objid), theId(id),
26 
28  const T& pos() const { return thePos; }
29  const align::RotationType& rot() const { return theRot; }
30  align::StructureType objId() const { return theObjId; }
31  align::ID id() const { return theId; }
32  const std::vector<double> deformationParameters() const { return theDeformationParameters;}
33 
34 private:
35 
36  // data members
37 
42  std::vector<double> theDeformationParameters;
43 
44 };
45 
50 
51 typedef std::vector<AlignableAbsData> AlignablePositions;
52 typedef std::vector<AlignableRelData> AlignableShifts;
53 
54 #endif
55 
align::StructureType objId() const
Definition: AlignableData.h:30
align::RotationType theRot
Definition: AlignableData.h:39
uint32_t ID
Definition: Definitions.h:26
AlignableData< align::GlobalVector > AlignableRelData
relative position/rotation
Definition: AlignableData.h:49
align::StructureType theObjId
Definition: AlignableData.h:40
std::vector< AlignableRelData > AlignableShifts
Definition: AlignableData.h:52
align::ID theId
Definition: AlignableData.h:41
AlignableData(const T &pos, const align::RotationType &rot, align::ID id, align::StructureType objid, const std::vector< double > &deformationParameters=std::vector< double >())
Definition: AlignableData.h:20
std::vector< double > theDeformationParameters
Definition: AlignableData.h:42
AlignableData< align::GlobalPoint > AlignableAbsData
Absolute position/rotation.
Definition: AlignableData.h:47
std::vector< AlignableAbsData > AlignablePositions
Definition: AlignableData.h:51
const std::vector< double > deformationParameters() const
Definition: AlignableData.h:32
const T & pos() const
accessors
Definition: AlignableData.h:28
long double T
const align::RotationType & rot() const
Definition: AlignableData.h:29
align::ID id() const
Definition: AlignableData.h:31