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
DTSectCollPhSegm::psi
int psi() const
Return trigger K parameter converted to angle (bit pattern)
Definition: DTSectCollPhSegm.h:105
DTChambPhSegm::pvCode
int pvCode() const
Return the preview code (10*inner_code or outer_code; X_code=1,2,3,4,8)
Definition: DTChambPhSegm.h:118
DTSectCollPhSegm::DTSectCollPhSegm
DTSectCollPhSegm(DTSectCollId scId, int step)
Constructor.
Definition: DTSectCollPhSegm.cc:34
DTChambPhSegm::code
int code() const
Return trigger code (MTTF input format [0,7])
Definition: DTChambPhSegm.h:88
DTSectCollPhSegm::tsPhiTrig
const DTChambPhSegm * tsPhiTrig() const
Return associated Trigger Server Phi trigger.
Definition: DTSectCollPhSegm.h:72
DTChambPhSegm::oldCode
int oldCode() const
Return trigger code (10*inner_code+outer_code; X_code=1,2,3,4,8)
Definition: DTChambPhSegm.h:91
DTSectCollPhSegm::X
float X() const
Return trigger X parameter.
Definition: DTSectCollPhSegm.h:102
DTSectCollPhSegm::DeltaPsiR
int DeltaPsiR() const
Return bending angle (bit pattern)
Definition: DTSectCollPhSegm.h:114
step
step
Definition: StallMonitor.cc:94
DTSectCollPhSegm::~DTSectCollPhSegm
~DTSectCollPhSegm() override
Destructor.
Definition: DTSectCollPhSegm.cc:45
DTChambPhSegm.h
DTSectCollPhSegm::print
void print() const override
Print.
Definition: DTSectCollPhSegm.cc:66
DTSectCollPhSegm::m_tsphitrig
const DTChambPhSegm * m_tsphitrig
Definition: DTSectCollPhSegm.h:139
DTChambPhSegm::pvK
int pvK() const
Return the preview K.
Definition: DTChambPhSegm.h:121
DTSectCollId.h
DTSectCollPhSegm::SCId
DTSectCollId SCId() const
Return SC identifier.
Definition: DTSectCollPhSegm.h:78
DTSectCollPhSegm::phiB
int phiB() const
Return bending angle (bit pattern)
Definition: DTSectCollPhSegm.h:117
DTSectCollPhSegm::code
int code() const
Return trigger code (MTTF input format [0,7])
Definition: DTSectCollPhSegm.h:93
DTChambPhSegm::X
float X() const
Return trigger X parameter.
Definition: DTChambPhSegm.h:97
DTSectCollPhSegm::ChamberId
DTChamberId ChamberId() const override
Return chamber identifier.
Definition: DTSectCollPhSegm.h:81
DTSectCollPhSegm::isFirst
int isFirst() const
Return if it is a first track.
Definition: DTSectCollPhSegm.h:90
DTChambPhSegm::tracoNumber
int tracoNumber() const
Return parent TRACO number.
Definition: DTChambPhSegm.h:82
DTChambPhSegm::psi
int psi() const
Return trigger K parameter converted to angle (bit pattern)
Definition: DTChambPhSegm.h:100
DTChambPhSegm::posMask
int posMask() const
Return correlator output code (position of segments)
Definition: DTChambPhSegm.h:115
myint8
unsigned char myint8
Definition: L1MuDTChambThDigi.h:31
DTSectCollPhSegm::pvK
int pvK() const
Return the preview K.
Definition: DTSectCollPhSegm.h:126
DTSectCollPhSegm::m_step
myint8 m_step
Definition: DTSectCollPhSegm.h:133
DTSectCollId
Definition: DTSectCollId.h:18
DTChambPhSegm::DeltaPsiR
int DeltaPsiR() const
Return bending angle (bit pattern)
Definition: DTChambPhSegm.h:109
DTChamberId.h
DTSectCollPhSegm::operator=
DTSectCollPhSegm & operator=(const DTSectCollPhSegm &seg)
Assignment operator.
Definition: DTSectCollPhSegm.cc:51
DTSectCollPhSegm::setTsPhiTrig
void setTsPhiTrig(const DTChambPhSegm *tsphitrig, int isFirst)
Associate a Trigger Server Phi trigger.
Definition: DTSectCollPhSegm.h:58
DTSectCollPhSegm::step
int step() const
Return step number.
Definition: DTSectCollPhSegm.h:75
DTTrigData
Definition: DTTrigData.h:35
DTChambPhSegm::ChamberId
DTChamberId ChamberId() const override
Return chamber identifier.
Definition: DTChambPhSegm.h:76
DTSectCollPhSegm::m_sectcollid
DTSectCollId m_sectcollid
Definition: DTSectCollPhSegm.h:130
DTSectCollPhSegm
Definition: DTSectCollPhSegm.h:39
DTSectCollPhSegm::tracoNumber
int tracoNumber() const
Return parent TRACO number.
Definition: DTSectCollPhSegm.h:87
DTSectCollPhSegm::phi
int phi() const
Return trigger X parameter converted to angle (bit pattern)
Definition: DTSectCollPhSegm.h:111
myint8
unsigned char myint8
Definition: DTSectCollPhSegm.h:37
DTChambPhSegm::K
float K() const
Return trigger K parameter.
Definition: DTChambPhSegm.h:94
DTSectCollPhSegm::psiR
int psiR() const
Return trigger X parameter converted to angle (bit pattern)
Definition: DTSectCollPhSegm.h:108
DTChambPhSegm
Definition: DTChambPhSegm.h:41
DTSectCollPhSegm::pvCode
int pvCode() const
Return the preview code (10*inner_code or outer_code; X_code=1,2,3,4,8)
Definition: DTSectCollPhSegm.h:123
DTSectCollPhSegm::posMask
int posMask() const
Return correlator output code (position of segments)
Definition: DTSectCollPhSegm.h:120
DTTrigData.h
DTSectCollPhSegm::oldCode
int oldCode() const
Return trigger code (10*inner_code+outer_code; X_code=1,2,3,4,8)
Definition: DTSectCollPhSegm.h:96
DTChambPhSegm::psiR
int psiR() const
Return trigger X parameter converted to angle (bit pattern)
Definition: DTChambPhSegm.h:103
DTChamberId
Definition: DTChamberId.h:14
DTSectCollPhSegm::m_isFirst
myint8 m_isFirst
Definition: DTSectCollPhSegm.h:136
DTSectCollPhSegm::clear
void clear()
Clear.
Definition: DTSectCollPhSegm.cc:61
DTSectCollPhSegm::K
float K() const
Return trigger K parameter.
Definition: DTSectCollPhSegm.h:99