CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 public:
45 
47  /*sm DTChambPhSegm(MuBarChamberId, int, */
48  /*sm const DTTracoTrigData* tracotrig, int); */
49  DTChambPhSegm(DTChamberId, int, const DTTracoTrigData *, int);
51  /*sm DTChambPhSegm(const DTChambPhSegm& seg); */
53 
55  ~DTChambPhSegm() override;
56 
58  /*sm DTChambPhSegm& operator=(const DTChambPhSegm& seg); */
61  inline void setTracoTrig(const DTTracoTrigData *tracotrig, int isFirst) {
62  m_tracotrig = tracotrig;
64  }
65 
67  void clear();
68 
70  inline const DTTracoTrigData *tracoTrig() const { return m_tracotrig; }
71 
73  inline int step() const { return m_step; }
74 
76  DTChamberId ChamberId() const override { return m_chamberid; }
77 
79  void print() const override;
80 
82  inline int tracoNumber() const { return m_tracotrig->tracoNumber(); }
83 
85  inline int isFirst() const { return m_isFirst == 1; }
86 
88  int code() const { return m_tracotrig->qdec(); }
89 
91  inline int oldCode() const { return m_tracotrig->code(); }
92 
94  inline float K() const { return m_tracotrig->K(); }
95 
97  inline float X() const { return m_tracotrig->X(); }
98 
100  int psi() const { return m_tracotrig->psi(); }
101 
103  int psiR() const { return m_tracotrig->psiR(); }
104 
106  int phi() const { return m_tracotrig->psiR(); }
107 
109  inline int DeltaPsiR() const { return m_tracotrig->DeltaPsiR(); }
110 
112  inline int phiB() const { return m_tracotrig->DeltaPsiR(); }
113 
115  inline int posMask() const { return m_tracotrig->posMask(); }
116 
118  inline int pvCode() const { return m_tracotrig->pvCode(); }
119 
121  inline int pvK() const { return m_tracotrig->pvK(); }
122 
123 private:
126 
129 
132 
135 };
136 
137 #endif
DTChambPhSegm & operator=(const DTChambPhSegm &)
Assignment operator.
int tracoNumber() const
Return parent TRACO number.
Definition: DTChambPhSegm.h:82
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:88
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:73
void print() const override
Print.
int X() const
Return trigger X parameter.
int isFirst() const
Return if it is a first track.
Definition: DTChambPhSegm.h:85
DTChamberId ChamberId() const override
Return chamber identifier.
Definition: DTChambPhSegm.h:76
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:91
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:97
int DeltaPsiR() const
Return DeltaPsiR.
DTChambPhSegm(DTChamberId, int)
Constructor.
float K() const
Return trigger K parameter.
Definition: DTChambPhSegm.h:94
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.
const DTTracoTrigData * tracoTrig() const
Return associated TRACO trigger.
Definition: DTChambPhSegm.h:70
int pvK() const
Return the preview K.
void setTracoTrig(const DTTracoTrigData *tracotrig, int isFirst)
Associate a TRACO trigger.
Definition: DTChambPhSegm.h:61
myint8 m_isFirst
first or second track
void clear()
Clear.