CMS 3D CMS Logo

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() [1/4]

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() [2/4]

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() [3/4]

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() [4/4]

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:129
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:198
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:181
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

◆ ~MuonPath()

virtual MuonPath::~MuonPath ( )
inlinevirtual

Definition at line 14 of file MuonPath.h.

14 {}

Member Function Documentation

◆ baseChannelId()

int MuonPath::baseChannelId ( ) const
inline

Definition at line 50 of file MuonPath.h.

References baseChannelId_.

50 { return baseChannelId_; }
int baseChannelId_
Definition: MuonPath.h:91

◆ bxNumId()

int MuonPath::bxNumId ( ) const
inline

Definition at line 53 of file MuonPath.h.

References bxNumId_.

53 { return bxNumId_; }
int bxNumId_
Definition: MuonPath.h:106

◆ bxTimeValue()

int MuonPath::bxTimeValue ( ) const
inline

Definition at line 52 of file MuonPath.h.

References bxTimeValue_.

52 { return bxTimeValue_; }
int bxTimeValue_
Definition: MuonPath.h:103

◆ cellLayout()

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

◆ chiSquare()

float MuonPath::chiSquare ( ) const
inline

Definition at line 57 of file MuonPath.h.

References chiSquare_.

57 { return chiSquare_; }
float chiSquare_
Definition: MuonPath.h:117

◆ completeMP()

bool MuonPath::completeMP ( )

Definition at line 177 of file MuonPath.cc.

177  {
178  return (prim_[0]->isValidTime() && prim_[1]->isValidTime() && prim_[2]->isValidTime() && prim_[3]->isValidTime());
179 }
DTPrimitivePtrs prim_
Definition: MuonPath.h:82

◆ horizPos()

float MuonPath::horizPos ( ) const
inline

Definition at line 56 of file MuonPath.h.

References horizPos_.

56 { return horizPos_; }
float horizPos_
Definition: MuonPath.h:116

◆ isAnalyzable()

bool MuonPath::isAnalyzable ( )

Definition at line 163 of file MuonPath.cc.

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

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

◆ isEqualTo()

bool MuonPath::isEqualTo ( MuonPath ptr)

Definition at line 139 of file MuonPath.cc.

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

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

◆ lateralComb()

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

◆ nprimitives()

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

◆ nprimitivesDown()

short MuonPath::nprimitivesDown ( ) const
inline

Definition at line 47 of file MuonPath.h.

References nprimitivesDown_.

47 { return nprimitivesDown_; }
short nprimitivesDown_
Definition: MuonPath.h:85

◆ nprimitivesUp()

short MuonPath::nprimitivesUp ( ) const
inline

Definition at line 48 of file MuonPath.h.

References nprimitivesUp_.

48 { return nprimitivesUp_; }
short nprimitivesUp_
Definition: MuonPath.h:84

◆ phi()

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

◆ phi_cmssw()

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

◆ phiB()

float MuonPath::phiB ( ) const
inline

Definition at line 59 of file MuonPath.h.

References phiB_.

59 { return phiB_; }
float phiB_
Definition: MuonPath.h:119

◆ phiB_cmssw()

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

◆ primitive()

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

◆ quality()

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

◆ rawId()

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

◆ setBaseChannelId()

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

◆ setBxTimeValue()

void MuonPath::setBxTimeValue ( int  time)

Definition at line 181 of file MuonPath.cc.

References dqmMemoryStats::float, createfilelist::int, cmsdt::LHC_CLK_FREQ, and protons_cff::time.

181  {
182  bxTimeValue_ = time;
183 
184  float auxBxId = float(time) / LHC_CLK_FREQ;
185  bxNumId_ = int(auxBxId);
186  if ((auxBxId - int(auxBxId)) >= 0.5)
187  bxNumId_ = int(bxNumId_ + 1);
188 }
int bxNumId_
Definition: MuonPath.h:106
constexpr int LHC_CLK_FREQ
Definition: constants.h:176
int bxTimeValue_
Definition: MuonPath.h:103

◆ setCellHorizontalLayout() [1/2]

void MuonPath::setCellHorizontalLayout ( int  layout[4])

Definition at line 129 of file MuonPath.cc.

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

129  {
130  for (int i = 0; i < NUM_LAYERS; i++)
131  cellLayout_[i] = layout[i];
132 }
int cellLayout_[cmsdt::NUM_LAYERS]
Definition: MuonPath.h:90

◆ setCellHorizontalLayout() [2/2]

void MuonPath::setCellHorizontalLayout ( const int *  layout)

Definition at line 134 of file MuonPath.cc.

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

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

◆ setChiSquare()

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

◆ setDriftDistance()

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

◆ setHorizPos()

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

◆ setLateralComb() [1/2]

void MuonPath::setLateralComb ( cmsdt::LATERAL_CASES  latComb[4])

Definition at line 198 of file MuonPath.cc.

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

198  {
199  for (int i = 0; i < NUM_LAYERS; i++)
200  lateralComb_[i] = latComb[i];
201 }
cmsdt::LATERAL_CASES lateralComb_[cmsdt::NUM_LAYERS]
Definition: MuonPath.h:100

◆ setLateralComb() [2/2]

void MuonPath::setLateralComb ( const cmsdt::LATERAL_CASES latComb)

Definition at line 203 of file MuonPath.cc.

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

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

◆ setLateralCombFromPrimitives()

void MuonPath::setLateralCombFromPrimitives ( void  )

Definition at line 190 of file MuonPath.cc.

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

190  {
191  for (int i = 0; i < nprimitives_; i++) {
192  if (!this->primitive(i)->isValidTime())
193  continue;
194  lateralComb_[i] = this->primitive(i)->laterality();
195  }
196 }
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

◆ setNPrimitives()

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

◆ setNPrimitivesDown()

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

◆ setNPrimitivesUp()

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

◆ setPhi()

void MuonPath::setPhi ( float  phi)
inline

Definition at line 33 of file MuonPath.h.

References phi(), and phi_.

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

◆ setPhiB()

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

◆ setPhiBCMSSW()

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

◆ setPhiCMSSW()

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

◆ setPrimitive()

void MuonPath::setPrimitive ( DTPrimitivePtr ptr,
int  layer 
)

Definition at line 127 of file MuonPath.cc.

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

127 { prim_[layer] = std::move(ptr); }
constexpr std::array< uint8_t, layerIndexSize > layer
DTPrimitivePtrs prim_
Definition: MuonPath.h:82
def move(src, dest)
Definition: eostools.py:511

◆ setQuality()

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

◆ setRawId()

void MuonPath::setRawId ( uint32_t  id)
inline

Definition at line 42 of file MuonPath.h.

References triggerObjects_cff::id, and rawId_.

42 { rawId_ = id; }
uint32_t rawId_
Definition: MuonPath.h:123

◆ setTanPhi()

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

◆ setTWireTDC()

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

◆ setXCoorCell()

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

◆ setXWirePos()

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

◆ setZWirePos()

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

◆ tanPhi()

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

◆ tWireTDC()

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

◆ xCoorCell()

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

◆ xDriftDistance()

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

◆ xWirePos()

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

◆ zWirePos()

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

◆ baseChannelId_

int MuonPath::baseChannelId_
private

Definition at line 91 of file MuonPath.h.

Referenced by baseChannelId(), and setBaseChannelId().

◆ bxNumId_

int MuonPath::bxNumId_
private

Definition at line 106 of file MuonPath.h.

Referenced by bxNumId().

◆ bxTimeValue_

int MuonPath::bxTimeValue_
private

Definition at line 103 of file MuonPath.h.

Referenced by bxTimeValue().

◆ cellLayout_

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

Definition at line 90 of file MuonPath.h.

Referenced by cellLayout().

◆ chiSquare_

float MuonPath::chiSquare_
private

Definition at line 117 of file MuonPath.h.

Referenced by chiSquare(), and setChiSquare().

◆ horizPos_

float MuonPath::horizPos_
private

Definition at line 116 of file MuonPath.h.

Referenced by horizPos(), and setHorizPos().

◆ lateralComb_

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

Definition at line 100 of file MuonPath.h.

Referenced by lateralComb().

◆ nprimitives_

short MuonPath::nprimitives_
private

Definition at line 83 of file MuonPath.h.

Referenced by nprimitives(), and setNPrimitives().

◆ nprimitivesDown_

short MuonPath::nprimitivesDown_
private

Definition at line 85 of file MuonPath.h.

Referenced by nprimitivesDown(), and setNPrimitivesDown().

◆ nprimitivesUp_

short MuonPath::nprimitivesUp_
private

Definition at line 84 of file MuonPath.h.

Referenced by nprimitivesUp(), and setNPrimitivesUp().

◆ phi_

float MuonPath::phi_
private

Definition at line 118 of file MuonPath.h.

Referenced by phi(), and setPhi().

◆ phiB_

float MuonPath::phiB_
private

Definition at line 119 of file MuonPath.h.

Referenced by phiB(), and setPhiB().

◆ phiBcmssw_

float MuonPath::phiBcmssw_
private

Definition at line 121 of file MuonPath.h.

Referenced by phiB_cmssw(), and setPhiBCMSSW().

◆ phicmssw_

float MuonPath::phicmssw_
private

Definition at line 120 of file MuonPath.h.

Referenced by phi_cmssw(), and setPhiCMSSW().

◆ prim_

DTPrimitivePtrs MuonPath::prim_
private

Definition at line 82 of file MuonPath.h.

Referenced by primitive().

◆ quality_

cmsdt::MP_QUALITY MuonPath::quality_
private

Definition at line 97 of file MuonPath.h.

Referenced by quality(), and setQuality().

◆ rawId_

uint32_t MuonPath::rawId_
private

Definition at line 123 of file MuonPath.h.

Referenced by rawId(), and setRawId().

◆ tanPhi_

float MuonPath::tanPhi_
private

Definition at line 115 of file MuonPath.h.

Referenced by setTanPhi(), and tanPhi().

◆ tWireTDC_

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

Definition at line 113 of file MuonPath.h.

Referenced by setTWireTDC(), and tWireTDC().

◆ xCoorCell_

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

Definition at line 109 of file MuonPath.h.

Referenced by setXCoorCell(), and xCoorCell().

◆ xDriftDistance_

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

Definition at line 110 of file MuonPath.h.

Referenced by setDriftDistance(), and xDriftDistance().

◆ xWirePos_

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

Definition at line 111 of file MuonPath.h.

Referenced by setXWirePos(), and xWirePos().

◆ zWirePos_

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

Definition at line 112 of file MuonPath.h.

Referenced by setZWirePos(), and zWirePos().