CMS 3D CMS Logo

DTChambPhSegm.h
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
11 //--------------------------------------------------
12 #ifndef DT_CHAMB_PH_SEGM_H
13 #define DT_CHAMB_PH_SEGM_H
14 
15 //------------------------------------
16 // Collaborating Class Declarations --
17 //------------------------------------
18 
19 //----------------------
20 // Base Class Headers --
21 //----------------------
22 
29 
30 //---------------
31 // C++ Headers --
32 //---------------
33 #include <vector>
34 
35 // ---------------------
36 // -- Class Interface --
37 // ---------------------
38 
39 typedef unsigned char myint8;
40 
41 class DTChambPhSegm : public DTTrigData {
42 
43 public:
46 
48  /*sm DTChambPhSegm(MuBarChamberId, int, */
49  /*sm const DTTracoTrigData* tracotrig, int); */
50  DTChambPhSegm(DTChamberId, int, const DTTracoTrigData *, int);
52  /*sm DTChambPhSegm(const DTChambPhSegm& seg); */
54 
56  ~DTChambPhSegm() override;
57 
59  /*sm DTChambPhSegm& operator=(const DTChambPhSegm& seg); */
62  inline void setTracoTrig(const DTTracoTrigData *tracotrig, int isFirst) {
63 
64  m_tracotrig = tracotrig;
66  }
67 
69  void clear();
70 
72  inline const DTTracoTrigData *tracoTrig() const { return m_tracotrig; }
73 
75  inline int step() const { return m_step; }
76 
78  DTChamberId ChamberId() const override { return m_chamberid; }
79 
81  void print() const override;
82 
84  inline int tracoNumber() const { return m_tracotrig->tracoNumber(); }
85 
87  inline int isFirst() const { return m_isFirst == 1; }
88 
90  int code() const { return m_tracotrig->qdec(); }
91 
93  inline int oldCode() const { return m_tracotrig->code(); }
94 
96  inline float K() const { return m_tracotrig->K(); }
97 
99  inline float X() const { return m_tracotrig->X(); }
100 
102  int psi() const { return m_tracotrig->psi(); }
103 
105  int psiR() const { return m_tracotrig->psiR(); }
106 
108  int phi() const { return m_tracotrig->psiR(); }
109 
111  inline int DeltaPsiR() const { return m_tracotrig->DeltaPsiR(); }
112 
114  inline int phiB() const { return m_tracotrig->DeltaPsiR(); }
115 
117  inline int posMask() const { return m_tracotrig->posMask(); }
118 
120  inline int pvCode() const { return m_tracotrig->pvCode(); }
121 
123  inline int pvK() const { return m_tracotrig->pvK(); }
124 
125 private:
128 
131 
134 
137 };
138 
139 #endif
DTChambPhSegm & operator=(const DTChambPhSegm &)
Assignment operator.
int tracoNumber() const
Return parent TRACO number.
Definition: DTChambPhSegm.h:84
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:90
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:75
int X() const
Return trigger X parameter.
int isFirst() const
Return if it is a first track.
Definition: DTChambPhSegm.h:87
void print() const override
Print.
DTChamberId m_chamberid
parent chamber
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:93
int phiB() const
Return bending angle (bit pattern)
int pvK() const
Return the preview K.
float X() const
Return trigger X parameter.
Definition: DTChambPhSegm.h:99
int DeltaPsiR() const
Return DeltaPsiR.
DTChamberId ChamberId() const override
Return chamber identifier.
Definition: DTChambPhSegm.h:78
DTChambPhSegm(DTChamberId, int)
Constructor.
float K() const
Return trigger K parameter.
Definition: DTChambPhSegm.h:96
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.
~DTChambPhSegm() override
Destructor.
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.
unsigned char myint8
Definition: DTChambPhSegm.h:39
const DTTracoTrigData * tracoTrig() const
Return associated TRACO trigger.
Definition: DTChambPhSegm.h:72
int pvK() const
Return the preview K.
void setTracoTrig(const DTTracoTrigData *tracotrig, int isFirst)
Associate a TRACO trigger.
Definition: DTChambPhSegm.h:62
myint8 m_isFirst
first or second track
void clear()
Clear.