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:
44 
47 
49 /*sm DTChambPhSegm(MuBarChamberId, int, */
50 /*sm const DTTracoTrigData* tracotrig, int); */
52  const DTTracoTrigData*, int);
54 /*sm DTChambPhSegm(const DTChambPhSegm& seg); */
56 
58  ~DTChambPhSegm() override;
59 
60 
62  /*sm DTChambPhSegm& operator=(const DTChambPhSegm& seg); */
65  inline void setTracoTrig(const DTTracoTrigData* tracotrig, int isFirst) {
66 
67  m_tracotrig = tracotrig;
69  }
70 
72  void clear();
73 
75  inline const DTTracoTrigData* tracoTrig() const { return m_tracotrig; }
76 
78  inline int step() const { return m_step; }
79 
81  DTChamberId ChamberId() const override { return m_chamberid; }
82 
84  void print() const override;
85 
87  inline int tracoNumber() const { return m_tracotrig->tracoNumber(); }
88 
90  inline int isFirst() const { return m_isFirst == 1; }
91 
93  int code() const { return m_tracotrig->qdec(); }
94 
96  inline int oldCode() const { return m_tracotrig->code(); }
97 
99  inline float K() const { return m_tracotrig->K(); }
100 
102  inline float X() const { return m_tracotrig->X(); }
103 
105  int psi() const { return m_tracotrig->psi(); }
106 
108  int psiR() const { return m_tracotrig->psiR(); }
109 
111  int phi() const { return m_tracotrig->psiR(); }
112 
114  inline int DeltaPsiR() const { return m_tracotrig->DeltaPsiR(); }
115 
117  inline int phiB() const { return m_tracotrig->DeltaPsiR(); }
118 
120  inline int posMask() const { return m_tracotrig->posMask(); }
121 
123  inline int pvCode() const { return m_tracotrig->pvCode(); }
124 
126  inline int pvK() const { return m_tracotrig->pvK(); }
127 
128  private:
129 
132 
135 
138 
141 
142 };
143 
144 #endif
DTChambPhSegm & operator=(const DTChambPhSegm &)
Assignment operator.
int tracoNumber() const
Return parent TRACO number.
Definition: DTChambPhSegm.h:87
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:93
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:78
int X() const
Return trigger X parameter.
int isFirst() const
Return if it is a first track.
Definition: DTChambPhSegm.h:90
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:96
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.
DTChamberId ChamberId() const override
Return chamber identifier.
Definition: DTChambPhSegm.h:81
DTChambPhSegm(DTChamberId, int)
Constructor.
float K() const
Return trigger K parameter.
Definition: DTChambPhSegm.h:99
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:75
int pvK() const
Return the preview K.
void setTracoTrig(const DTTracoTrigData *tracotrig, int isFirst)
Associate a TRACO trigger.
Definition: DTChambPhSegm.h:65
myint8 m_isFirst
first or second track
void clear()
Clear.