CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DTChambPhSegm.h
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
13 //--------------------------------------------------
14 #ifndef DT_CHAMB_PH_SEGM_H
15 #define DT_CHAMB_PH_SEGM_H
16 
17 //------------------------------------
18 // Collaborating Class Declarations --
19 //------------------------------------
20 
21 //----------------------
22 // Base Class Headers --
23 //----------------------
24 
31 
32 //---------------
33 // C++ Headers --
34 //---------------
35 #include <vector>
36 
37 // ---------------------
38 // -- Class Interface --
39 // ---------------------
40 
41 typedef unsigned char myint8;
42 
43 class DTChambPhSegm : public DTTrigData {
44 
45  public:
46 
49 
51 /*sm DTChambPhSegm(MuBarChamberId, int, */
52 /*sm const DTTracoTrigData* tracotrig, int); */
54  const DTTracoTrigData*, int);
56 /*sm DTChambPhSegm(const DTChambPhSegm& seg); */
58 
61 
62 
64  /*sm DTChambPhSegm& operator=(const DTChambPhSegm& seg); */
67  inline void setTracoTrig(const DTTracoTrigData* tracotrig, int isFirst) {
68 
69  m_tracotrig = tracotrig;
71  }
72 
74  void clear();
75 
77  inline const DTTracoTrigData* tracoTrig() const { return m_tracotrig; }
78 
80  inline int step() const { return m_step; }
81 
83  DTChamberId ChamberId() const { return m_chamberid; }
84 
86  void print() const;
87 
89  inline int tracoNumber() const { return m_tracotrig->tracoNumber(); }
90 
92  inline int isFirst() const { return m_isFirst == 1; }
93 
95  int code() const { return m_tracotrig->qdec(); }
96 
98  inline int oldCode() const { return m_tracotrig->code(); }
99 
101  inline float K() const { return m_tracotrig->K(); }
102 
104  inline float X() const { return m_tracotrig->X(); }
105 
107  int psi() const { return m_tracotrig->psi(); }
108 
110  int psiR() const { return m_tracotrig->psiR(); }
111 
113  int phi() const { return m_tracotrig->psiR(); }
114 
116  inline int DeltaPsiR() const { return m_tracotrig->DeltaPsiR(); }
117 
119  inline int phiB() const { return m_tracotrig->DeltaPsiR(); }
120 
122  inline int posMask() const { return m_tracotrig->posMask(); }
123 
125  inline int pvCode() const { return m_tracotrig->pvCode(); }
126 
128  inline int pvK() const { return m_tracotrig->pvK(); }
129 
130  private:
131 
134 
137 
140 
143 
144 };
145 
146 #endif
void print() const
Print.
DTChambPhSegm & operator=(const DTChambPhSegm &)
Assignment operator.
int tracoNumber() const
Return parent TRACO number.
Definition: DTChambPhSegm.h:89
int psiR() const
Return trigger X parameter converted to angle.
int phi() const
Return trigger X parameter converted to angle (bit pattern)
int posMask() const
Return correlator output code (position of segments)
int tracoNumber() const
Return parent TRACO number.
int code() const
Return trigger code (MTTF input format [0,7])
Definition: DTChambPhSegm.h:95
const DTTracoTrigData * m_tracotrig
the corresponding traco trigger
int psi() const
Return trigger K parameter converted to angle (bit pattern)
int step() const
Return step number.
Definition: DTChambPhSegm.h:80
int X() const
Return trigger X parameter.
int isFirst() const
Return if it is a first track.
Definition: DTChambPhSegm.h:92
DTChamberId ChamberId() const
Return chamber identifier.
Definition: DTChambPhSegm.h:83
DTChamberId m_chamberid
parent chamber
~DTChambPhSegm()
Destructor.
myint8 m_step
step number
int psi() const
Return trigger K parameter converted to angle.
int oldCode() const
Return trigger code (10*inner_code+outer_code; X_code=1,2,3,4,8)
Definition: DTChambPhSegm.h:98
int phiB() const
Return bending angle (bit pattern)
int pvK() const
Return the preview K.
float X() const
Return trigger X parameter.
int DeltaPsiR() const
Return DeltaPsiR.
DTChambPhSegm(DTChamberId, int)
Constructor.
float K() const
Return trigger K parameter.
unsigned char myint8
int posMask() const
Return correlator output code (position of segments)
int pvCode() const
Return the preview code.
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 qdec() const
Return the trigger code in new format.
int code() const
Return trigger code.
int psiR() const
Return trigger X parameter converted to angle (bit pattern)
int K() const
Return trigger K parameter.
const DTTracoTrigData * tracoTrig() const
Return associated TRACO trigger.
Definition: DTChambPhSegm.h:77
int pvK() const
Return the preview K.
void setTracoTrig(const DTTracoTrigData *tracotrig, int isFirst)
Associate a TRACO trigger.
Definition: DTChambPhSegm.h:67
myint8 m_isFirst
first or second track
void clear()
Clear.