CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Attributes
MuonPath Class Reference

#include <MuonPath.h>

Public Member Functions

int baseChannelId () const
 
int bxNumId () const
 
int bxTimeValue () const
 
const int * cellLayout () const
 
float chiSquare () const
 
bool completeMP ()
 
float horizPos () const
 
bool isAnalyzable ()
 
bool isEqualTo (MuonPath *ptr)
 
const cmsdt::LATERAL_CASESlateralComb () const
 
 MuonPath ()
 
 MuonPath (DTPrimitivePtrs &ptrPrimitive, int prup=0, int prdw=0)
 
 MuonPath (DTPrimitives &ptrPrimitive, int prup=0, int prdw=0)
 
 MuonPath (std::shared_ptr< MuonPath > &ptr)
 
short nprimitives () const
 
short nprimitivesDown () const
 
short nprimitivesUp () const
 
float phi () const
 
float phi_cmssw () const
 
float phiB () const
 
float phiB_cmssw () const
 
DTPrimitivePtr primitive (int layer) const
 
cmsdt::MP_QUALITY quality () const
 
uint32_t rawId () const
 
void setBaseChannelId (int bch)
 
void setBxTimeValue (int time)
 
void setCellHorizontalLayout (int layout[4])
 
void setCellHorizontalLayout (const int *layout)
 
void setChiSquare (float chi)
 
void setDriftDistance (float dx, int cell)
 
void setHorizPos (float pos)
 
void setLateralComb (cmsdt::LATERAL_CASES latComb[4])
 
void setLateralComb (const cmsdt::LATERAL_CASES *latComb)
 
void setLateralCombFromPrimitives (void)
 
void setNPrimitives (short nprim)
 
void setNPrimitivesDown (short nprim)
 
void setNPrimitivesUp (short nprim)
 
void setPhi (float phi)
 
void setPhiB (float phib)
 
void setPhiBCMSSW (float phib_cmssw)
 
void setPhiCMSSW (float phi_cmssw)
 
void setPrimitive (DTPrimitivePtr &ptr, int layer)
 
void setQuality (cmsdt::MP_QUALITY qty)
 
void setRawId (uint32_t id)
 
void setTanPhi (float tanPhi)
 
void setTWireTDC (float t, int cell)
 
void setXCoorCell (float x, int cell)
 
void setXWirePos (float x, int cell)
 
void setZWirePos (float z, int cell)
 
float tanPhi () const
 
float tWireTDC (int cell) const
 
float xCoorCell (int cell) const
 
float xDriftDistance (int cell) const
 
float xWirePos (int cell) const
 
float zWirePos (int cell) const
 
virtual ~MuonPath ()
 

Private Attributes

int baseChannelId_
 
int bxNumId_
 
int bxTimeValue_
 
int cellLayout_ [cmsdt::NUM_LAYERS]
 
float chiSquare_
 
float horizPos_
 
cmsdt::LATERAL_CASES lateralComb_ [cmsdt::NUM_LAYERS]
 
short nprimitives_
 
short nprimitivesDown_
 
short nprimitivesUp_
 
float phi_
 
float phiB_
 
float phiBcmssw_
 
float phicmssw_
 
DTPrimitivePtrs prim_
 
cmsdt::MP_QUALITY quality_
 
uint32_t rawId_
 
float tanPhi_
 
float tWireTDC_ [cmsdt::NUM_LAYERS_2SL]
 
float xCoorCell_ [cmsdt::NUM_LAYERS_2SL]
 
float xDriftDistance_ [cmsdt::NUM_LAYERS_2SL]
 
float xWirePos_ [cmsdt::NUM_LAYERS_2SL]
 
float zWirePos_ [cmsdt::NUM_LAYERS_2SL]
 

Detailed Description

Definition at line 8 of file MuonPath.h.

Constructor & Destructor Documentation

MuonPath::MuonPath ( )

Definition at line 9 of file MuonPath.cc.

References mps_fire::i, cmsdt::LEFT, cmsdt::NOPATH, cmsdt::NUM_LAYERS, and cmsdt::NUM_LAYERS_2SL.

9  {
10  quality_ = NOPATH;
11  baseChannelId_ = -1;
12 
13  for (int i = 0; i < NUM_LAYERS_2SL; i++) {
14  prim_.push_back(std::make_shared<DTPrimitive>());
15  }
16 
18  bxTimeValue_ = -1;
19  bxNumId_ = -1;
20  tanPhi_ = 0;
21  horizPos_ = 0;
22  chiSquare_ = 0;
23  for (int i = 0; i < NUM_LAYERS; i++) {
24  lateralComb_[i] = LEFT;
25  setXCoorCell(0, i);
26  setDriftDistance(0, i);
27  }
28 }
void setXCoorCell(float x, int cell)
Definition: MuonPath.h:37
int bxNumId_
Definition: MuonPath.h:106
float horizPos_
Definition: MuonPath.h:116
void setDriftDistance(float dx, int cell)
Definition: MuonPath.h:38
DTPrimitivePtrs prim_
Definition: MuonPath.h:82
float tanPhi_
Definition: MuonPath.h:115
int baseChannelId_
Definition: MuonPath.h:91
cmsdt::LATERAL_CASES lateralComb_[cmsdt::NUM_LAYERS]
Definition: MuonPath.h:100
short nprimitives_
Definition: MuonPath.h:83
constexpr int NUM_LAYERS_2SL
Definition: constants.h:254
int bxTimeValue_
Definition: MuonPath.h:103
float chiSquare_
Definition: MuonPath.h:117
cmsdt::MP_QUALITY quality_
Definition: MuonPath.h:97
MuonPath::MuonPath ( DTPrimitivePtrs ptrPrimitive,
int  prup = 0,
int  prdw = 0 
)

Definition at line 30 of file MuonPath.cc.

References mps_fire::i, cmsdt::LEFT, cmsdt::NOPATH, cmsdt::NUM_LAYERS, and cmsdt::NUM_LAYERS_2SL.

30  {
31  if (nprimUp > 0 || nprimDown > 0)
32  nprimitives_ = NUM_LAYERS_2SL; //Instead of nprimUp + nprimDown;
33  else {
35  }
36  nprimitivesUp_ = nprimUp;
37  nprimitivesDown_ = nprimDown;
38  rawId_ = 0;
39  quality_ = NOPATH;
40  baseChannelId_ = -1;
41  bxTimeValue_ = -1;
42  bxNumId_ = -1;
43  tanPhi_ = 0;
44  horizPos_ = 0;
45  chiSquare_ = 0;
46  phi_ = 0;
47  phiB_ = 0;
48  phicmssw_ = 0;
49  phiBcmssw_ = 0;
50 
51  for (short i = 0; i < nprimitives_; i++) {
52  lateralComb_[i] = LEFT;
53  prim_.push_back(std::make_shared<DTPrimitive>(ptrPrimitive[i]));
54 
55  setXCoorCell(0, i);
56  setDriftDistance(0, i);
57  setXWirePos(0, i);
58  setZWirePos(0, i);
59  setTWireTDC(0, i);
60  }
61 }
void setXWirePos(float x, int cell)
Definition: MuonPath.h:39
void setXCoorCell(float x, int cell)
Definition: MuonPath.h:37
float phiBcmssw_
Definition: MuonPath.h:121
void setTWireTDC(float t, int cell)
Definition: MuonPath.h:41
float phiB_
Definition: MuonPath.h:119
short nprimitivesUp_
Definition: MuonPath.h:84
float phicmssw_
Definition: MuonPath.h:120
int bxNumId_
Definition: MuonPath.h:106
float horizPos_
Definition: MuonPath.h:116
short nprimitivesDown_
Definition: MuonPath.h:85
void setDriftDistance(float dx, int cell)
Definition: MuonPath.h:38
DTPrimitivePtrs prim_
Definition: MuonPath.h:82
float tanPhi_
Definition: MuonPath.h:115
int baseChannelId_
Definition: MuonPath.h:91
uint32_t rawId_
Definition: MuonPath.h:123
cmsdt::LATERAL_CASES lateralComb_[cmsdt::NUM_LAYERS]
Definition: MuonPath.h:100
short nprimitives_
Definition: MuonPath.h:83
void setZWirePos(float z, int cell)
Definition: MuonPath.h:40
constexpr int NUM_LAYERS_2SL
Definition: constants.h:254
float phi_
Definition: MuonPath.h:118
int bxTimeValue_
Definition: MuonPath.h:103
float chiSquare_
Definition: MuonPath.h:117
cmsdt::MP_QUALITY quality_
Definition: MuonPath.h:97
MuonPath::MuonPath ( DTPrimitives ptrPrimitive,
int  prup = 0,
int  prdw = 0 
)

Definition at line 63 of file MuonPath.cc.

References mps_fire::i, cmsdt::LEFT, cmsdt::NOPATH, cmsdt::NUM_LAYERS, and cmsdt::NUM_LAYERS_2SL.

63  {
64  if (nprimUp > 0 || nprimDown > 0)
65  nprimitives_ = NUM_LAYERS_2SL; //Instead of nprimUp + nprimDown;
66  else {
68  }
69  nprimitivesUp_ = nprimUp;
70  nprimitivesDown_ = nprimDown;
71  rawId_ = 0;
72  quality_ = NOPATH;
73  baseChannelId_ = -1;
74  bxTimeValue_ = -1;
75  bxNumId_ = -1;
76  tanPhi_ = 0;
77  horizPos_ = 0;
78  chiSquare_ = 0;
79  phi_ = 0;
80  phiB_ = 0;
81  phicmssw_ = 0;
82  phiBcmssw_ = 0;
83 
84  for (short i = 0; i < nprimitives_; i++) {
85  lateralComb_[i] = LEFT;
86  prim_.push_back(std::make_shared<DTPrimitive>(ptrPrimitive[i]));
87 
88  setXCoorCell(0, i);
89  setDriftDistance(0, i);
90  setXWirePos(0, i);
91  setZWirePos(0, i);
92  setTWireTDC(0, i);
93  }
94 }
void setXWirePos(float x, int cell)
Definition: MuonPath.h:39
void setXCoorCell(float x, int cell)
Definition: MuonPath.h:37
float phiBcmssw_
Definition: MuonPath.h:121
void setTWireTDC(float t, int cell)
Definition: MuonPath.h:41
float phiB_
Definition: MuonPath.h:119
short nprimitivesUp_
Definition: MuonPath.h:84
float phicmssw_
Definition: MuonPath.h:120
int bxNumId_
Definition: MuonPath.h:106
float horizPos_
Definition: MuonPath.h:116
short nprimitivesDown_
Definition: MuonPath.h:85
void setDriftDistance(float dx, int cell)
Definition: MuonPath.h:38
DTPrimitivePtrs prim_
Definition: MuonPath.h:82
float tanPhi_
Definition: MuonPath.h:115
int baseChannelId_
Definition: MuonPath.h:91
uint32_t rawId_
Definition: MuonPath.h:123
cmsdt::LATERAL_CASES lateralComb_[cmsdt::NUM_LAYERS]
Definition: MuonPath.h:100
short nprimitives_
Definition: MuonPath.h:83
void setZWirePos(float z, int cell)
Definition: MuonPath.h:40
constexpr int NUM_LAYERS_2SL
Definition: constants.h:254
float phi_
Definition: MuonPath.h:118
int bxTimeValue_
Definition: MuonPath.h:103
float chiSquare_
Definition: MuonPath.h:117
cmsdt::MP_QUALITY quality_
Definition: MuonPath.h:97
MuonPath::MuonPath ( std::shared_ptr< MuonPath > &  ptr)

Definition at line 96 of file MuonPath.cc.

References mps_fire::i.

96  {
97  setRawId(ptr->rawId());
98  setPhi(ptr->phi());
99  setPhiB(ptr->phiB());
100  setPhiCMSSW(ptr->phi_cmssw());
101  setPhiBCMSSW(ptr->phiB_cmssw());
102  setQuality(ptr->quality());
103  setBaseChannelId(ptr->baseChannelId());
104  setCellHorizontalLayout(ptr->cellLayout());
105  setNPrimitives(ptr->nprimitives());
106 
107  setLateralComb(ptr->lateralComb());
108  setBxTimeValue(ptr->bxTimeValue());
109  setTanPhi(ptr->tanPhi());
110  setHorizPos(ptr->horizPos());
111  setChiSquare(ptr->chiSquare());
112 
113  for (int i = 0; i < ptr->nprimitives(); i++) {
114  prim_.push_back(ptr->primitive(i));
115 
116  setXCoorCell(ptr->xCoorCell(i), i);
117  setDriftDistance(ptr->xDriftDistance(i), i);
118  setXWirePos(ptr->xWirePos(i), i);
119  setZWirePos(ptr->zWirePos(i), i);
120  setTWireTDC(ptr->tWireTDC(i), i);
121  }
122 }
void setXWirePos(float x, int cell)
Definition: MuonPath.h:39
void setPhiCMSSW(float phi_cmssw)
Definition: MuonPath.h:35
void setPhi(float phi)
Definition: MuonPath.h:33
void setXCoorCell(float x, int cell)
Definition: MuonPath.h:37
void setTWireTDC(float t, int cell)
Definition: MuonPath.h:41
void setCellHorizontalLayout(int layout[4])
Definition: MuonPath.cc:133
void setNPrimitives(short nprim)
Definition: MuonPath.h:18
void setDriftDistance(float dx, int cell)
Definition: MuonPath.h:38
void setHorizPos(float pos)
Definition: MuonPath.h:30
DTPrimitivePtrs prim_
Definition: MuonPath.h:82
void setBaseChannelId(int bch)
Definition: MuonPath.h:23
void setRawId(uint32_t id)
Definition: MuonPath.h:42
void setChiSquare(float chi)
Definition: MuonPath.h:32
void setLateralComb(cmsdt::LATERAL_CASES latComb[4])
Definition: MuonPath.cc:202
void setZWirePos(float z, int cell)
Definition: MuonPath.h:40
void setQuality(cmsdt::MP_QUALITY qty)
Definition: MuonPath.h:24
void setBxTimeValue(int time)
Definition: MuonPath.cc:185
void setTanPhi(float tanPhi)
Definition: MuonPath.h:31
void setPhiBCMSSW(float phib_cmssw)
Definition: MuonPath.h:36
void setPhiB(float phib)
Definition: MuonPath.h:34
virtual MuonPath::~MuonPath ( )
inlinevirtual

Definition at line 14 of file MuonPath.h.

14 {}

Member Function Documentation

int MuonPath::baseChannelId ( ) const
inline

Definition at line 50 of file MuonPath.h.

References baseChannelId_.

50 { return baseChannelId_; }
int baseChannelId_
Definition: MuonPath.h:91
int MuonPath::bxNumId ( ) const
inline

Definition at line 53 of file MuonPath.h.

References bxNumId_.

53 { return bxNumId_; }
int bxNumId_
Definition: MuonPath.h:106
int MuonPath::bxTimeValue ( ) const
inline

Definition at line 52 of file MuonPath.h.

References bxTimeValue_.

52 { return bxTimeValue_; }
int bxTimeValue_
Definition: MuonPath.h:103
const int* MuonPath::cellLayout ( ) const
inline

Definition at line 49 of file MuonPath.h.

References cellLayout_.

49 { return cellLayout_; }
int cellLayout_[cmsdt::NUM_LAYERS]
Definition: MuonPath.h:90
float MuonPath::chiSquare ( ) const
inline

Definition at line 57 of file MuonPath.h.

References chiSquare_.

57 { return chiSquare_; }
float chiSquare_
Definition: MuonPath.h:117
bool MuonPath::completeMP ( )

Definition at line 181 of file MuonPath.cc.

181  {
182  return (prim_[0]->isValidTime() && prim_[1]->isValidTime() && prim_[2]->isValidTime() && prim_[3]->isValidTime());
183 }
DTPrimitivePtrs prim_
Definition: MuonPath.h:82
float MuonPath::horizPos ( ) const
inline

Definition at line 56 of file MuonPath.h.

References horizPos_.

56 { return horizPos_; }
float horizPos_
Definition: MuonPath.h:116
bool MuonPath::isAnalyzable ( )

Definition at line 167 of file MuonPath.cc.

References mps_fire::i, and funct::primitive().

167  {
168  short countValidHits = 0;
169  for (int i = 0; i < this->nprimitives(); i++) {
170  // if (!this->primitive(i))
171  // continue;
172  if (this->primitive(i)->isValidTime())
173  countValidHits++;
174  }
175 
176  if (countValidHits >= 3)
177  return true;
178  return false;
179 }
DTPrimitivePtr primitive(int layer) const
Definition: MuonPath.h:45
short nprimitives() const
Definition: MuonPath.h:46
bool MuonPath::isEqualTo ( MuonPath ptr)

Definition at line 143 of file MuonPath.cc.

References mps_fire::i, lateralComb(), nprimitives(), funct::primitive(), and primitive().

143  {
144  for (int i = 0; i < ptr->nprimitives(); i++) {
145  if (this->primitive(i)->isValidTime() && ptr->primitive(i)->isValidTime()) {
146  if (ptr->primitive(i)->superLayerId() != this->primitive(i)->superLayerId() ||
147 
148  ptr->primitive(i)->channelId() != this->primitive(i)->channelId() ||
149 
150  ptr->primitive(i)->tdcTimeStamp() != this->primitive(i)->tdcTimeStamp() ||
151 
152  ptr->primitive(i)->orbit() != this->primitive(i)->orbit() ||
153  (ptr->lateralComb())[i] != (this->lateralComb())[i])
154  return false;
155  } else {
156  if (!this->primitive(i)->isValidTime() && !ptr->primitive(i)->isValidTime())
157  continue;
158 
159  else
160  return false;
161  }
162  }
163 
164  return true;
165 }
const cmsdt::LATERAL_CASES * lateralComb() const
Definition: MuonPath.h:55
DTPrimitivePtr primitive(int layer) const
Definition: MuonPath.h:45
short nprimitives() const
Definition: MuonPath.h:46
const cmsdt::LATERAL_CASES* MuonPath::lateralComb ( ) const
inline

Definition at line 55 of file MuonPath.h.

References lateralComb_.

Referenced by isEqualTo().

55 { return (lateralComb_); }
cmsdt::LATERAL_CASES lateralComb_[cmsdt::NUM_LAYERS]
Definition: MuonPath.h:100
short MuonPath::nprimitives ( ) const
inline

Definition at line 46 of file MuonPath.h.

References nprimitives_.

Referenced by isEqualTo().

46 { return nprimitives_; }
short nprimitives_
Definition: MuonPath.h:83
short MuonPath::nprimitivesDown ( ) const
inline

Definition at line 47 of file MuonPath.h.

References nprimitivesDown_.

47 { return nprimitivesDown_; }
short nprimitivesDown_
Definition: MuonPath.h:85
short MuonPath::nprimitivesUp ( ) const
inline

Definition at line 48 of file MuonPath.h.

References nprimitivesUp_.

48 { return nprimitivesUp_; }
short nprimitivesUp_
Definition: MuonPath.h:84
float MuonPath::phi ( void  ) const
inline

Definition at line 58 of file MuonPath.h.

References phi_.

Referenced by Particle.Particle::__str__(), ntupleDataFormat.Track::phiPull(), and setPhi().

58 { return phi_; }
float phi_
Definition: MuonPath.h:118
float MuonPath::phi_cmssw ( ) const
inline

Definition at line 60 of file MuonPath.h.

References phicmssw_.

Referenced by setPhiCMSSW().

60 { return phicmssw_; }
float phicmssw_
Definition: MuonPath.h:120
float MuonPath::phiB ( ) const
inline

Definition at line 59 of file MuonPath.h.

References phiB_.

59 { return phiB_; }
float phiB_
Definition: MuonPath.h:119
float MuonPath::phiB_cmssw ( ) const
inline

Definition at line 61 of file MuonPath.h.

References phiBcmssw_.

61 { return phiBcmssw_; }
float phiBcmssw_
Definition: MuonPath.h:121
DTPrimitivePtr MuonPath::primitive ( int  layer) const
inline

Definition at line 45 of file MuonPath.h.

References phase1PixelTopology::layer, and prim_.

Referenced by isEqualTo().

45 { return prim_[layer]; }
constexpr std::array< uint8_t, layerIndexSize > layer
DTPrimitivePtrs prim_
Definition: MuonPath.h:82
cmsdt::MP_QUALITY MuonPath::quality ( void  ) const
inline

Definition at line 51 of file MuonPath.h.

References quality_.

51 { return quality_; }
cmsdt::MP_QUALITY quality_
Definition: MuonPath.h:97
uint32_t MuonPath::rawId ( ) const
inline

Definition at line 67 of file MuonPath.h.

References rawId_.

67 { return rawId_; }
uint32_t rawId_
Definition: MuonPath.h:123
void MuonPath::setBaseChannelId ( int  bch)
inline

Definition at line 23 of file MuonPath.h.

References baseChannelId_.

23 { baseChannelId_ = bch; }
int baseChannelId_
Definition: MuonPath.h:91
void MuonPath::setBxTimeValue ( int  time)

Definition at line 185 of file MuonPath.cc.

References cmsdt::LHC_CLK_FREQ.

185  {
186  bxTimeValue_ = time;
187 
188  float auxBxId = float(time) / LHC_CLK_FREQ;
189  bxNumId_ = int(auxBxId);
190  if ((auxBxId - int(auxBxId)) >= 0.5)
191  bxNumId_ = int(bxNumId_ + 1);
192 }
int bxNumId_
Definition: MuonPath.h:106
constexpr int LHC_CLK_FREQ
Definition: constants.h:176
int bxTimeValue_
Definition: MuonPath.h:103
void MuonPath::setCellHorizontalLayout ( int  layout[4])

Definition at line 133 of file MuonPath.cc.

References mps_fire::i, and cmsdt::NUM_LAYERS.

133  {
134  for (int i = 0; i < NUM_LAYERS; i++)
135  cellLayout_[i] = layout[i];
136 }
int cellLayout_[cmsdt::NUM_LAYERS]
Definition: MuonPath.h:90
void MuonPath::setCellHorizontalLayout ( const int *  layout)

Definition at line 138 of file MuonPath.cc.

References mps_fire::i, and cmsdt::NUM_LAYERS.

138  {
139  for (int i = 0; i < NUM_LAYERS; i++)
140  cellLayout_[i] = layout[i];
141 }
int cellLayout_[cmsdt::NUM_LAYERS]
Definition: MuonPath.h:90
void MuonPath::setChiSquare ( float  chi)
inline

Definition at line 32 of file MuonPath.h.

References chiSquare_.

32 { chiSquare_ = chi; }
float chiSquare_
Definition: MuonPath.h:117
void MuonPath::setDriftDistance ( float  dx,
int  cell 
)
inline

Definition at line 38 of file MuonPath.h.

References PVValHelper::dx, and xDriftDistance_.

38 { xDriftDistance_[cell] = dx; }
float xDriftDistance_[cmsdt::NUM_LAYERS_2SL]
Definition: MuonPath.h:110
void MuonPath::setHorizPos ( float  pos)
inline

Definition at line 30 of file MuonPath.h.

References horizPos_.

30 { horizPos_ = pos; }
float horizPos_
Definition: MuonPath.h:116
void MuonPath::setLateralComb ( cmsdt::LATERAL_CASES  latComb[4])

Definition at line 202 of file MuonPath.cc.

References mps_fire::i, and cmsdt::NUM_LAYERS.

202  {
203  for (int i = 0; i < NUM_LAYERS; i++)
204  lateralComb_[i] = latComb[i];
205 }
cmsdt::LATERAL_CASES lateralComb_[cmsdt::NUM_LAYERS]
Definition: MuonPath.h:100
void MuonPath::setLateralComb ( const cmsdt::LATERAL_CASES latComb)

Definition at line 207 of file MuonPath.cc.

References mps_fire::i, and cmsdt::NUM_LAYERS.

207  {
208  for (int i = 0; i < NUM_LAYERS; i++)
209  lateralComb_[i] = latComb[i];
210 }
cmsdt::LATERAL_CASES lateralComb_[cmsdt::NUM_LAYERS]
Definition: MuonPath.h:100
void MuonPath::setLateralCombFromPrimitives ( void  )

Definition at line 194 of file MuonPath.cc.

References mps_fire::i, and funct::primitive().

194  {
195  for (int i = 0; i < nprimitives_; i++) {
196  if (!this->primitive(i)->isValidTime())
197  continue;
198  lateralComb_[i] = this->primitive(i)->laterality();
199  }
200 }
DTPrimitivePtr primitive(int layer) const
Definition: MuonPath.h:45
cmsdt::LATERAL_CASES lateralComb_[cmsdt::NUM_LAYERS]
Definition: MuonPath.h:100
short nprimitives_
Definition: MuonPath.h:83
void MuonPath::setNPrimitives ( short  nprim)
inline

Definition at line 18 of file MuonPath.h.

References nprimitives_.

18 { nprimitives_ = nprim; }
short nprimitives_
Definition: MuonPath.h:83
void MuonPath::setNPrimitivesDown ( short  nprim)
inline

Definition at line 20 of file MuonPath.h.

References nprimitivesDown_.

20 { nprimitivesDown_ = nprim; }
short nprimitivesDown_
Definition: MuonPath.h:85
void MuonPath::setNPrimitivesUp ( short  nprim)
inline

Definition at line 19 of file MuonPath.h.

References nprimitivesUp_.

19 { nprimitivesUp_ = nprim; }
short nprimitivesUp_
Definition: MuonPath.h:84
void MuonPath::setPhi ( float  phi)
inline

Definition at line 33 of file MuonPath.h.

References phi(), and phi_.

33 { phi_ = phi; }
float phi() const
Definition: MuonPath.h:58
float phi_
Definition: MuonPath.h:118
void MuonPath::setPhiB ( float  phib)
inline

Definition at line 34 of file MuonPath.h.

References phiB_.

34 { phiB_ = phib; }
float phiB_
Definition: MuonPath.h:119
void MuonPath::setPhiBCMSSW ( float  phib_cmssw)
inline

Definition at line 36 of file MuonPath.h.

References phiBcmssw_.

36 { phiBcmssw_ = phib_cmssw; }
float phiBcmssw_
Definition: MuonPath.h:121
void MuonPath::setPhiCMSSW ( float  phi_cmssw)
inline

Definition at line 35 of file MuonPath.h.

References phi_cmssw(), and phicmssw_.

35 { phicmssw_ = phi_cmssw; }
float phicmssw_
Definition: MuonPath.h:120
float phi_cmssw() const
Definition: MuonPath.h:60
void MuonPath::setPrimitive ( DTPrimitivePtr ptr,
int  layer 
)

Definition at line 127 of file MuonPath.cc.

References gather_cfg::cout, phase1PixelTopology::layer, and eostools::move().

127  {
128  if (ptr == nullptr)
129  std::cout << "NULL 'Primitive'." << std::endl;
130  prim_[layer] = std::move(ptr);
131 }
constexpr std::array< uint8_t, layerIndexSize > layer
DTPrimitivePtrs prim_
Definition: MuonPath.h:82
def move
Definition: eostools.py:511
tuple cout
Definition: gather_cfg.py:144
void MuonPath::setQuality ( cmsdt::MP_QUALITY  qty)
inline

Definition at line 24 of file MuonPath.h.

References quality_.

24 { quality_ = qty; }
cmsdt::MP_QUALITY quality_
Definition: MuonPath.h:97
void MuonPath::setRawId ( uint32_t  id)
inline

Definition at line 42 of file MuonPath.h.

References gpuClustering::id, and rawId_.

42 { rawId_ = id; }
uint16_t *__restrict__ id
uint32_t rawId_
Definition: MuonPath.h:123
void MuonPath::setTanPhi ( float  tanPhi)
inline

Definition at line 31 of file MuonPath.h.

References tanPhi(), and tanPhi_.

31 { tanPhi_ = tanPhi; }
float tanPhi() const
Definition: MuonPath.h:54
float tanPhi_
Definition: MuonPath.h:115
void MuonPath::setTWireTDC ( float  t,
int  cell 
)
inline

Definition at line 41 of file MuonPath.h.

References submitPVValidationJobs::t, and tWireTDC_.

41 { tWireTDC_[cell] = t; }
float tWireTDC_[cmsdt::NUM_LAYERS_2SL]
Definition: MuonPath.h:113
void MuonPath::setXCoorCell ( float  x,
int  cell 
)
inline

Definition at line 37 of file MuonPath.h.

References x, and xCoorCell_.

37 { xCoorCell_[cell] = x; }
float xCoorCell_[cmsdt::NUM_LAYERS_2SL]
Definition: MuonPath.h:109
void MuonPath::setXWirePos ( float  x,
int  cell 
)
inline

Definition at line 39 of file MuonPath.h.

References x, and xWirePos_.

39 { xWirePos_[cell] = x; }
float xWirePos_[cmsdt::NUM_LAYERS_2SL]
Definition: MuonPath.h:111
void MuonPath::setZWirePos ( float  z,
int  cell 
)
inline

Definition at line 40 of file MuonPath.h.

References z, and zWirePos_.

40 { zWirePos_[cell] = z; }
float zWirePos_[cmsdt::NUM_LAYERS_2SL]
Definition: MuonPath.h:112
float MuonPath::tanPhi ( ) const
inline

Definition at line 54 of file MuonPath.h.

References tanPhi_.

Referenced by setTanPhi().

54 { return tanPhi_; }
float tanPhi_
Definition: MuonPath.h:115
float MuonPath::tWireTDC ( int  cell) const
inline

Definition at line 66 of file MuonPath.h.

References tWireTDC_.

66 { return tWireTDC_[cell]; }
float tWireTDC_[cmsdt::NUM_LAYERS_2SL]
Definition: MuonPath.h:113
float MuonPath::xCoorCell ( int  cell) const
inline

Definition at line 62 of file MuonPath.h.

References xCoorCell_.

62 { return xCoorCell_[cell]; }
float xCoorCell_[cmsdt::NUM_LAYERS_2SL]
Definition: MuonPath.h:109
float MuonPath::xDriftDistance ( int  cell) const
inline

Definition at line 63 of file MuonPath.h.

References xDriftDistance_.

63 { return xDriftDistance_[cell]; }
float xDriftDistance_[cmsdt::NUM_LAYERS_2SL]
Definition: MuonPath.h:110
float MuonPath::xWirePos ( int  cell) const
inline

Definition at line 64 of file MuonPath.h.

References xWirePos_.

64 { return xWirePos_[cell]; }
float xWirePos_[cmsdt::NUM_LAYERS_2SL]
Definition: MuonPath.h:111
float MuonPath::zWirePos ( int  cell) const
inline

Definition at line 65 of file MuonPath.h.

References zWirePos_.

65 { return zWirePos_[cell]; }
float zWirePos_[cmsdt::NUM_LAYERS_2SL]
Definition: MuonPath.h:112

Member Data Documentation

int MuonPath::baseChannelId_
private

Definition at line 91 of file MuonPath.h.

Referenced by baseChannelId(), and setBaseChannelId().

int MuonPath::bxNumId_
private

Definition at line 106 of file MuonPath.h.

Referenced by bxNumId().

int MuonPath::bxTimeValue_
private

Definition at line 103 of file MuonPath.h.

Referenced by bxTimeValue().

int MuonPath::cellLayout_[cmsdt::NUM_LAYERS]
private

Definition at line 90 of file MuonPath.h.

Referenced by cellLayout().

float MuonPath::chiSquare_
private

Definition at line 117 of file MuonPath.h.

Referenced by chiSquare(), and setChiSquare().

float MuonPath::horizPos_
private

Definition at line 116 of file MuonPath.h.

Referenced by horizPos(), and setHorizPos().

cmsdt::LATERAL_CASES MuonPath::lateralComb_[cmsdt::NUM_LAYERS]
private

Definition at line 100 of file MuonPath.h.

Referenced by lateralComb().

short MuonPath::nprimitives_
private

Definition at line 83 of file MuonPath.h.

Referenced by nprimitives(), and setNPrimitives().

short MuonPath::nprimitivesDown_
private

Definition at line 85 of file MuonPath.h.

Referenced by nprimitivesDown(), and setNPrimitivesDown().

short MuonPath::nprimitivesUp_
private

Definition at line 84 of file MuonPath.h.

Referenced by nprimitivesUp(), and setNPrimitivesUp().

float MuonPath::phi_
private

Definition at line 118 of file MuonPath.h.

Referenced by phi(), and setPhi().

float MuonPath::phiB_
private

Definition at line 119 of file MuonPath.h.

Referenced by phiB(), and setPhiB().

float MuonPath::phiBcmssw_
private

Definition at line 121 of file MuonPath.h.

Referenced by phiB_cmssw(), and setPhiBCMSSW().

float MuonPath::phicmssw_
private

Definition at line 120 of file MuonPath.h.

Referenced by phi_cmssw(), and setPhiCMSSW().

DTPrimitivePtrs MuonPath::prim_
private

Definition at line 82 of file MuonPath.h.

Referenced by primitive().

cmsdt::MP_QUALITY MuonPath::quality_
private

Definition at line 97 of file MuonPath.h.

Referenced by quality(), and setQuality().

uint32_t MuonPath::rawId_
private

Definition at line 123 of file MuonPath.h.

Referenced by rawId(), and setRawId().

float MuonPath::tanPhi_
private

Definition at line 115 of file MuonPath.h.

Referenced by setTanPhi(), and tanPhi().

float MuonPath::tWireTDC_[cmsdt::NUM_LAYERS_2SL]
private

Definition at line 113 of file MuonPath.h.

Referenced by setTWireTDC(), and tWireTDC().

float MuonPath::xCoorCell_[cmsdt::NUM_LAYERS_2SL]
private

Definition at line 109 of file MuonPath.h.

Referenced by setXCoorCell(), and xCoorCell().

float MuonPath::xDriftDistance_[cmsdt::NUM_LAYERS_2SL]
private

Definition at line 110 of file MuonPath.h.

Referenced by setDriftDistance(), and xDriftDistance().

float MuonPath::xWirePos_[cmsdt::NUM_LAYERS_2SL]
private

Definition at line 111 of file MuonPath.h.

Referenced by setXWirePos(), and xWirePos().

float MuonPath::zWirePos_[cmsdt::NUM_LAYERS_2SL]
private

Definition at line 112 of file MuonPath.h.

Referenced by setZWirePos(), and zWirePos().