CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DTSectCollPhSegm.h
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
13 //
14 //--------------------------------------------------
15 #ifndef DT_SECT_COLL_PH_SEGM_H
16 #define DT_SECT_COLL_PH_SEGM_H
17 
18 //------------------------------------
19 // Collaborating Class Declarations --
20 //------------------------------------
21 
22 //----------------------
23 // Base Class Headers --
24 //----------------------
29 
30 //---------------
31 // C++ Headers --
32 //---------------
33 #include <vector>
34 // ---------------------
35 // -- Class Interface --
36 // ---------------------
37 
38 typedef unsigned char myint8;
39 
40 class DTSectCollPhSegm : public DTTrigData {
41 
42  public:
43 
46 
48  DTSectCollPhSegm(DTSectCollId scId, int step,
49  const DTChambPhSegm* tsPhiTrig, int isFirst);
52 
55 
56  // Non-const methods
57 
60 
62  inline void setTsPhiTrig(const DTChambPhSegm* tsphitrig, int isFirst) {
63  m_tsphitrig=tsphitrig;
65  }
66 
68  void clear();
69 
70  // Const methods
71 
72  // //! Return associated TRACO trigger
73  // inline const DTTracoTrigData* tracoTrig() const { return m_tsphitrig->TracoTrigData(); }
74 
76  inline const DTChambPhSegm* tsPhiTrig() const { return m_tsphitrig; }
77 
79  inline int step() const { return m_step; }
80 
82  DTSectCollId SCId() const { return m_sectcollid; }
83 
85  DTChamberId ChamberId() const { return m_tsphitrig->ChamberId(); }
86 
88  void print() const;
89 
91  inline int tracoNumber() const { return m_tsphitrig->tracoNumber(); }
92 
94  inline int isFirst() const { return m_isFirst==1; }
95 
97  int code() const { return m_tsphitrig->code(); }
98 
100  inline int oldCode() const { return m_tsphitrig->oldCode(); }
101 
103  inline float K() const { return m_tsphitrig->K(); }
104 
106  inline float X() const { return m_tsphitrig->X(); }
107 
109  inline int psi() const { return m_tsphitrig->psi(); }
110 
112  inline int psiR() const { return m_tsphitrig->psiR(); }
113 
115  inline int phi() const { return m_tsphitrig->psiR(); }
116 
118  inline int DeltaPsiR() const { return m_tsphitrig->DeltaPsiR(); }
119 
121  inline int phiB() const { return m_tsphitrig->DeltaPsiR(); }
122 
124  inline int posMask() const { return m_tsphitrig->posMask(); }
125 
127  inline int pvCode() const { return m_tsphitrig->pvCode(); }
128 
130  inline int pvK() const { return m_tsphitrig->pvK(); }
131 
132  private:
133  // parent sectcoll
135 
136  // step number
138 
139  // first or second track
141 
142  // the corresponding traco trigger
144 
145 };
146 #endif
int tracoNumber() const
Return parent TRACO number.
Definition: DTChambPhSegm.h:89
int phi() const
Return trigger X parameter converted to angle (bit pattern)
const DTChambPhSegm * m_tsphitrig
DTSectCollPhSegm(DTSectCollId scId, int step)
Constructor.
int pvK() const
Return the preview K.
int psi() const
Return trigger K parameter converted to angle (bit pattern)
int code() const
Return trigger code (MTTF input format [0,7])
Definition: DTChambPhSegm.h:95
void clear()
Clear.
int psi() const
Return trigger K parameter converted to angle (bit pattern)
int oldCode() const
Return trigger code (10*inner_code+outer_code; X_code=1,2,3,4,8)
DTChamberId ChamberId() const
Return chamber identifier.
Definition: DTChambPhSegm.h:83
~DTSectCollPhSegm()
Destructor.
DTSectCollId SCId() const
Return SC identifier.
const DTChambPhSegm * tsPhiTrig() const
Return associated Trigger Server Phi trigger.
int step() const
Return step number.
int oldCode() const
Return trigger code (10*inner_code+outer_code; X_code=1,2,3,4,8)
Definition: DTChambPhSegm.h:98
int pvCode() const
Return the preview code (10*inner_code or outer_code; X_code=1,2,3,4,8)
int tracoNumber() const
Return parent TRACO number.
float X() const
Return trigger X parameter.
DTSectCollPhSegm & operator=(const DTSectCollPhSegm &seg)
Assignment operator.
void print() const
Print.
float K() const
Return trigger K parameter.
unsigned char myint8
DTSectCollId m_sectcollid
float K() const
Return trigger K parameter.
int posMask() const
Return correlator output code (position of segments)
int psiR() const
Return trigger X parameter converted to angle (bit pattern)
int code() const
Return trigger code (MTTF input format [0,7])
int posMask() const
Return correlator output code (position of segments)
int pvCode() const
Return the preview code (10*inner_code or outer_code; X_code=1,2,3,4,8)
int DeltaPsiR() const
Return bending angle (bit pattern)
int psiR() const
Return trigger X parameter converted to angle (bit pattern)
void setTsPhiTrig(const DTChambPhSegm *tsphitrig, int isFirst)
Associate a Trigger Server Phi trigger.
int DeltaPsiR() const
Return bending angle (bit pattern)
int pvK() const
Return the preview K.
DTChamberId ChamberId() const
Return chamber identifier.
int phiB() const
Return bending angle (bit pattern)
int isFirst() const
Return if it is a first track.
float X() const
Return trigger X parameter.