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 public:
43 
48 
50  ~DTSectCollPhSegm() override;
51 
52  // Non-const methods
53 
56 
58  inline void setTsPhiTrig(const DTChambPhSegm* tsphitrig, int isFirst) {
59  m_tsphitrig = tsphitrig;
61  }
62 
64  void clear();
65 
66  // Const methods
67 
68  // //! Return associated TRACO trigger
69  // inline const DTTracoTrigData* tracoTrig() const { return m_tsphitrig->TracoTrigData(); }
70 
72  inline const DTChambPhSegm* tsPhiTrig() const { return m_tsphitrig; }
73 
75  inline int step() const { return m_step; }
76 
78  DTSectCollId SCId() const { return m_sectcollid; }
79 
81  DTChamberId ChamberId() const override { return m_tsphitrig->ChamberId(); }
82 
84  void print() const override;
85 
87  inline int tracoNumber() const { return m_tsphitrig->tracoNumber(); }
88 
90  inline int isFirst() const { return m_isFirst == 1; }
91 
93  int code() const { return m_tsphitrig->code(); }
94 
96  inline int oldCode() const { return m_tsphitrig->oldCode(); }
97 
99  inline float K() const { return m_tsphitrig->K(); }
100 
102  inline float X() const { return m_tsphitrig->X(); }
103 
105  inline int psi() const { return m_tsphitrig->psi(); }
106 
108  inline int psiR() const { return m_tsphitrig->psiR(); }
109 
111  inline int phi() const { return m_tsphitrig->psiR(); }
112 
114  inline int DeltaPsiR() const { return m_tsphitrig->DeltaPsiR(); }
115 
117  inline int phiB() const { return m_tsphitrig->DeltaPsiR(); }
118 
120  inline int posMask() const { return m_tsphitrig->posMask(); }
121 
123  inline int pvCode() const { return m_tsphitrig->pvCode(); }
124 
126  inline int pvK() const { return m_tsphitrig->pvK(); }
127 
128 private:
129  // parent sectcoll
131 
132  // step number
134 
135  // first or second track
137 
138  // the corresponding traco trigger
140 };
141 #endif
int DeltaPsiR() const
Return bending angle (bit pattern)
float X() const
Return trigger X parameter.
int code() const
Return trigger code (MTTF input format [0,7])
float K() const
Return trigger K parameter.
const DTChambPhSegm * m_tsphitrig
DTSectCollPhSegm(DTSectCollId scId, int step)
Constructor.
int phiB() const
Return bending angle (bit pattern)
void clear()
Clear.
int psi() const
Return trigger K parameter converted to angle (bit pattern)
int psi() const
Return trigger K parameter converted to angle (bit pattern)
int tracoNumber() const
Return parent TRACO number.
Definition: DTChambPhSegm.h:82
DTSectCollId SCId() const
Return SC identifier.
int oldCode() const
Return trigger code (10*inner_code+outer_code; X_code=1,2,3,4,8)
Definition: DTChambPhSegm.h:91
int pvCode() const
Return the preview code (10*inner_code or outer_code; X_code=1,2,3,4,8)
~DTSectCollPhSegm() override
Destructor.
void print() const override
Print.
DTChamberId ChamberId() const override
Return chamber identifier.
DTChamberId ChamberId() const override
Return chamber identifier.
Definition: DTChambPhSegm.h:76
int tracoNumber() const
Return parent TRACO number.
float K() const
Return trigger K parameter.
Definition: DTChambPhSegm.h:94
int pvK() const
Return the preview K.
int pvK() const
Return the preview K.
int posMask() const
Return correlator output code (position of segments)
int isFirst() const
Return if it is a first track.
unsigned char myint8
DTSectCollPhSegm & operator=(const DTSectCollPhSegm &seg)
Assignment operator.
int step() const
Return step number.
unsigned char myint8
DTSectCollId m_sectcollid
int pvCode() const
Return the preview code (10*inner_code or outer_code; X_code=1,2,3,4,8)
float X() const
Return trigger X parameter.
Definition: DTChambPhSegm.h:97
int phi() const
Return trigger X parameter converted to angle (bit pattern)
int psiR() const
Return trigger X parameter converted to angle (bit pattern)
int posMask() const
Return correlator output code (position of segments)
int DeltaPsiR() const
Return bending angle (bit pattern)
void setTsPhiTrig(const DTChambPhSegm *tsphitrig, int isFirst)
Associate a Trigger Server Phi trigger.
step
Definition: StallMonitor.cc:83
const DTChambPhSegm * tsPhiTrig() const
Return associated Trigger Server Phi trigger.
int psiR() const
Return trigger X parameter converted to angle (bit pattern)
int oldCode() const
Return trigger code (10*inner_code+outer_code; X_code=1,2,3,4,8)
int code() const
Return trigger code (MTTF input format [0,7])
Definition: DTChambPhSegm.h:88