CMS 3D CMS Logo

DTSectCollPhSegm.h
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
12 //
13 //--------------------------------------------------
14 #ifndef DT_SECT_COLL_PH_SEGM_H
15 #define DT_SECT_COLL_PH_SEGM_H
16 
17 //------------------------------------
18 // Collaborating Class Declarations --
19 //------------------------------------
20 
21 //----------------------
22 // Base Class Headers --
23 //----------------------
28 
29 //---------------
30 // C++ Headers --
31 //---------------
32 #include <vector>
33 // ---------------------
34 // -- Class Interface --
35 // ---------------------
36 
37 typedef unsigned char myint8;
38 
39 class DTSectCollPhSegm : public DTTrigData {
40 
41  public:
42 
45 
47  DTSectCollPhSegm(DTSectCollId scId, int step,
48  const DTChambPhSegm* tsPhiTrig, int isFirst);
51 
53  ~DTSectCollPhSegm() override;
54 
55  // Non-const methods
56 
59 
61  inline void setTsPhiTrig(const DTChambPhSegm* tsphitrig, int isFirst) {
62  m_tsphitrig=tsphitrig;
64  }
65 
67  void clear();
68 
69  // Const methods
70 
71  // //! Return associated TRACO trigger
72  // inline const DTTracoTrigData* tracoTrig() const { return m_tsphitrig->TracoTrigData(); }
73 
75  inline const DTChambPhSegm* tsPhiTrig() const { return m_tsphitrig; }
76 
78  inline int step() const { return m_step; }
79 
81  DTSectCollId SCId() const { return m_sectcollid; }
82 
84  DTChamberId ChamberId() const override { return m_tsphitrig->ChamberId(); }
85 
87  void print() const override;
88 
90  inline int tracoNumber() const { return m_tsphitrig->tracoNumber(); }
91 
93  inline int isFirst() const { return m_isFirst==1; }
94 
96  int code() const { return m_tsphitrig->code(); }
97 
99  inline int oldCode() const { return m_tsphitrig->oldCode(); }
100 
102  inline float K() const { return m_tsphitrig->K(); }
103 
105  inline float X() const { return m_tsphitrig->X(); }
106 
108  inline int psi() const { return m_tsphitrig->psi(); }
109 
111  inline int psiR() const { return m_tsphitrig->psiR(); }
112 
114  inline int phi() const { return m_tsphitrig->psiR(); }
115 
117  inline int DeltaPsiR() const { return m_tsphitrig->DeltaPsiR(); }
118 
120  inline int phiB() const { return m_tsphitrig->DeltaPsiR(); }
121 
123  inline int posMask() const { return m_tsphitrig->posMask(); }
124 
126  inline int pvCode() const { return m_tsphitrig->pvCode(); }
127 
129  inline int pvK() const { return m_tsphitrig->pvK(); }
130 
131  private:
132  // parent sectcoll
134 
135  // step number
137 
138  // first or second track
140 
141  // the corresponding traco trigger
143 
144 };
145 #endif
int tracoNumber() const
Return parent TRACO number.
Definition: DTChambPhSegm.h:87
DTChamberId ChamberId() const override
Return chamber identifier.
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:93
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)
~DTSectCollPhSegm() override
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:96
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.
unsigned char myint8
DTSectCollPhSegm & operator=(const DTSectCollPhSegm &seg)
Assignment operator.
DTChamberId ChamberId() const override
Return chamber identifier.
Definition: DTChambPhSegm.h:81
float K() const
Return trigger K parameter.
Definition: DTChambPhSegm.h:99
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)
step
int pvK() const
Return the preview K.
void print() const override
Print.
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.