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 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::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
DTTracoTrigData::tracoNumber
int tracoNumber() const
Return parent TRACO number.
Definition: DTTracoTrigData.h:159
DTTracoTrigData.h
DTChambPhSegm::code
int code() const
Return trigger code (MTTF input format [0,7])
Definition: DTChambPhSegm.h:88
DTChambPhSegm::oldCode
int oldCode() const
Return trigger code (10*inner_code+outer_code; X_code=1,2,3,4,8)
Definition: DTChambPhSegm.h:91
myint8
unsigned char myint8
Definition: DTChambPhSegm.h:39
DTLayerId.h
DTTracoTrigData::pvCode
int pvCode() const
Return the preview code.
Definition: DTTracoTrigData.h:186
DTChambPhSegm::pvK
int pvK() const
Return the preview K.
Definition: DTChambPhSegm.h:121
DTChambPhSegm::X
float X() const
Return trigger X parameter.
Definition: DTChambPhSegm.h:97
DTChambPhSegm::m_chamberid
DTChamberId m_chamberid
parent chamber
Definition: DTChambPhSegm.h:125
DTChambPhSegm::clear
void clear()
Clear.
Definition: DTChambPhSegm.cc:62
DTChambPhSegm::DTChambPhSegm
DTChambPhSegm(DTChamberId, int)
Constructor.
Definition: DTChambPhSegm.cc:35
DTChambPhSegm::tracoTrig
const DTTracoTrigData * tracoTrig() const
Return associated TRACO trigger.
Definition: DTChambPhSegm.h:70
DTChambPhSegm::tracoNumber
int tracoNumber() const
Return parent TRACO number.
Definition: DTChambPhSegm.h:82
DTChambPhSegm::isFirst
int isFirst() const
Return if it is a first track.
Definition: DTChambPhSegm.h:85
DTTracoTrigData::pvK
int pvK() const
Return the preview K.
Definition: DTTracoTrigData.h:189
DTChambPhSegm::psi
int psi() const
Return trigger K parameter converted to angle (bit pattern)
Definition: DTChambPhSegm.h:100
DTChambPhSegm::print
void print() const override
Print.
Definition: DTChambPhSegm.cc:67
DTTracoTrigData::psi
int psi() const
Return trigger K parameter converted to angle.
Definition: DTTracoTrigData.h:204
DTChambPhSegm::posMask
int posMask() const
Return correlator output code (position of segments)
Definition: DTChambPhSegm.h:115
myint8
unsigned char myint8
Definition: L1MuDTChambThDigi.h:31
DTChambPhSegm::m_tracotrig
const DTTracoTrigData * m_tracotrig
the corresponding traco trigger
Definition: DTChambPhSegm.h:134
DTTracoTrigData::psiR
int psiR() const
Return trigger X parameter converted to angle.
Definition: DTTracoTrigData.h:207
DTChambPhSegm::DeltaPsiR
int DeltaPsiR() const
Return bending angle (bit pattern)
Definition: DTChambPhSegm.h:109
DTChamberId.h
DTChambPhSegm::phiB
int phiB() const
Return bending angle (bit pattern)
Definition: DTChambPhSegm.h:112
DTTracoTrigData::K
int K() const
Return trigger K parameter.
Definition: DTTracoTrigData.h:198
DTChambPhSegm::~DTChambPhSegm
~DTChambPhSegm() override
Destructor.
Definition: DTChambPhSegm.cc:46
DTTracoTrigData::qdec
int qdec() const
Return the trigger code in new format.
Definition: DTTracoTrigData.cc:41
DTTracoTrigData::X
int X() const
Return trigger X parameter.
Definition: DTTracoTrigData.h:201
DTTrigData
Definition: DTTrigData.h:35
DTChambPhSegm::ChamberId
DTChamberId ChamberId() const override
Return chamber identifier.
Definition: DTChambPhSegm.h:76
DTChambPhSegm::setTracoTrig
void setTracoTrig(const DTTracoTrigData *tracotrig, int isFirst)
Associate a TRACO trigger.
Definition: DTChambPhSegm.h:61
DTChambPhSegm::phi
int phi() const
Return trigger X parameter converted to angle (bit pattern)
Definition: DTChambPhSegm.h:106
DTTracoTrigData::code
int code() const
Return trigger code.
Definition: DTTracoTrigData.h:165
DTChambPhSegm::operator=
DTChambPhSegm & operator=(const DTChambPhSegm &)
Assignment operator.
Definition: DTChambPhSegm.cc:52
DTChambPhSegm::K
float K() const
Return trigger K parameter.
Definition: DTChambPhSegm.h:94
DTChambPhSegm::step
int step() const
Return step number.
Definition: DTChambPhSegm.h:73
DTTracoTrigData::posMask
int posMask() const
Return correlator output code (position of segments)
Definition: DTTracoTrigData.h:168
DTWireId.h
DTTracoTrigData
Definition: DTTracoTrigData.h:37
DTChambPhSegm
Definition: DTChambPhSegm.h:41
DTTrigData.h
DTChambPhSegm::psiR
int psiR() const
Return trigger X parameter converted to angle (bit pattern)
Definition: DTChambPhSegm.h:103
DTChambPhSegm::m_isFirst
myint8 m_isFirst
first or second track
Definition: DTChambPhSegm.h:131
DTChamberId
Definition: DTChamberId.h:14
DTSuperLayerId.h
DTTracoTrigData::DeltaPsiR
int DeltaPsiR() const
Return DeltaPsiR.
Definition: DTTracoTrigData.h:210
DTChambPhSegm::m_step
myint8 m_step
step number
Definition: DTChambPhSegm.h:128