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
 
int missingLayer () 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 setMissingLayer (int layer)
 
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]
 
int missingLayer_
 
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:38
int bxNumId_
Definition: MuonPath.h:110
float horizPos_
Definition: MuonPath.h:120
void setDriftDistance(float dx, int cell)
Definition: MuonPath.h:39
DTPrimitivePtrs prim_
Definition: MuonPath.h:84
float tanPhi_
Definition: MuonPath.h:119
int baseChannelId_
Definition: MuonPath.h:93
cmsdt::LATERAL_CASES lateralComb_[cmsdt::NUM_LAYERS]
Definition: MuonPath.h:104
short nprimitives_
Definition: MuonPath.h:85
constexpr int NUM_LAYERS_2SL
Definition: constants.h:393
int bxTimeValue_
Definition: MuonPath.h:107
float chiSquare_
Definition: MuonPath.h:121
cmsdt::MP_QUALITY quality_
Definition: MuonPath.h:101

◆ 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:40
void setXCoorCell(float x, int cell)
Definition: MuonPath.h:38
float phiBcmssw_
Definition: MuonPath.h:125
void setTWireTDC(float t, int cell)
Definition: MuonPath.h:42
float phiB_
Definition: MuonPath.h:123
short nprimitivesUp_
Definition: MuonPath.h:86
float phicmssw_
Definition: MuonPath.h:124
int bxNumId_
Definition: MuonPath.h:110
float horizPos_
Definition: MuonPath.h:120
short nprimitivesDown_
Definition: MuonPath.h:87
void setDriftDistance(float dx, int cell)
Definition: MuonPath.h:39
DTPrimitivePtrs prim_
Definition: MuonPath.h:84
float tanPhi_
Definition: MuonPath.h:119
int baseChannelId_
Definition: MuonPath.h:93
uint32_t rawId_
Definition: MuonPath.h:127
cmsdt::LATERAL_CASES lateralComb_[cmsdt::NUM_LAYERS]
Definition: MuonPath.h:104
short nprimitives_
Definition: MuonPath.h:85
void setZWirePos(float z, int cell)
Definition: MuonPath.h:41
constexpr int NUM_LAYERS_2SL
Definition: constants.h:393
float phi_
Definition: MuonPath.h:122
int bxTimeValue_
Definition: MuonPath.h:107
float chiSquare_
Definition: MuonPath.h:121
cmsdt::MP_QUALITY quality_
Definition: MuonPath.h:101

◆ 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:40
void setXCoorCell(float x, int cell)
Definition: MuonPath.h:38
float phiBcmssw_
Definition: MuonPath.h:125
void setTWireTDC(float t, int cell)
Definition: MuonPath.h:42
float phiB_
Definition: MuonPath.h:123
short nprimitivesUp_
Definition: MuonPath.h:86
float phicmssw_
Definition: MuonPath.h:124
int bxNumId_
Definition: MuonPath.h:110
float horizPos_
Definition: MuonPath.h:120
short nprimitivesDown_
Definition: MuonPath.h:87
void setDriftDistance(float dx, int cell)
Definition: MuonPath.h:39
DTPrimitivePtrs prim_
Definition: MuonPath.h:84
float tanPhi_
Definition: MuonPath.h:119
int baseChannelId_
Definition: MuonPath.h:93
uint32_t rawId_
Definition: MuonPath.h:127
cmsdt::LATERAL_CASES lateralComb_[cmsdt::NUM_LAYERS]
Definition: MuonPath.h:104
short nprimitives_
Definition: MuonPath.h:85
void setZWirePos(float z, int cell)
Definition: MuonPath.h:41
constexpr int NUM_LAYERS_2SL
Definition: constants.h:393
float phi_
Definition: MuonPath.h:122
int bxTimeValue_
Definition: MuonPath.h:107
float chiSquare_
Definition: MuonPath.h:121
cmsdt::MP_QUALITY quality_
Definition: MuonPath.h:101

◆ 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:40
void setPhiCMSSW(float phi_cmssw)
Definition: MuonPath.h:36
void setPhi(float phi)
Definition: MuonPath.h:34
void setXCoorCell(float x, int cell)
Definition: MuonPath.h:38
void setTWireTDC(float t, int cell)
Definition: MuonPath.h:42
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:39
void setHorizPos(float pos)
Definition: MuonPath.h:31
DTPrimitivePtrs prim_
Definition: MuonPath.h:84
void setBaseChannelId(int bch)
Definition: MuonPath.h:23
void setRawId(uint32_t id)
Definition: MuonPath.h:43
void setChiSquare(float chi)
Definition: MuonPath.h:33
void setLateralComb(cmsdt::LATERAL_CASES latComb[4])
Definition: MuonPath.cc:198
void setZWirePos(float z, int cell)
Definition: MuonPath.h:41
void setQuality(cmsdt::MP_QUALITY qty)
Definition: MuonPath.h:25
void setBxTimeValue(int time)
Definition: MuonPath.cc:181
void setTanPhi(float tanPhi)
Definition: MuonPath.h:32
void setPhiBCMSSW(float phib_cmssw)
Definition: MuonPath.h:37
void setPhiB(float phib)
Definition: MuonPath.h:35

◆ ~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 51 of file MuonPath.h.

References baseChannelId_.

51 { return baseChannelId_; }
int baseChannelId_
Definition: MuonPath.h:93

◆ bxNumId()

int MuonPath::bxNumId ( ) const
inline

Definition at line 55 of file MuonPath.h.

References bxNumId_.

55 { return bxNumId_; }
int bxNumId_
Definition: MuonPath.h:110

◆ bxTimeValue()

int MuonPath::bxTimeValue ( ) const
inline

Definition at line 54 of file MuonPath.h.

References bxTimeValue_.

54 { return bxTimeValue_; }
int bxTimeValue_
Definition: MuonPath.h:107

◆ cellLayout()

const int* MuonPath::cellLayout ( ) const
inline

Definition at line 50 of file MuonPath.h.

References cellLayout_.

50 { return cellLayout_; }
int cellLayout_[cmsdt::NUM_LAYERS]
Definition: MuonPath.h:92

◆ chiSquare()

float MuonPath::chiSquare ( ) const
inline

Definition at line 59 of file MuonPath.h.

References chiSquare_.

59 { return chiSquare_; }
float chiSquare_
Definition: MuonPath.h:121

◆ 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:84

◆ horizPos()

float MuonPath::horizPos ( ) const
inline

Definition at line 58 of file MuonPath.h.

References horizPos_.

58 { return horizPos_; }
float horizPos_
Definition: MuonPath.h:120

◆ 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:46
short nprimitives() const
Definition: MuonPath.h:47

◆ 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:46
short nprimitives() const
Definition: MuonPath.h:47
const cmsdt::LATERAL_CASES * lateralComb() const
Definition: MuonPath.h:57

◆ lateralComb()

const cmsdt::LATERAL_CASES* MuonPath::lateralComb ( ) const
inline

Definition at line 57 of file MuonPath.h.

References lateralComb_.

Referenced by isEqualTo().

57 { return (lateralComb_); }
cmsdt::LATERAL_CASES lateralComb_[cmsdt::NUM_LAYERS]
Definition: MuonPath.h:104

◆ missingLayer()

int MuonPath::missingLayer ( ) const
inline

Definition at line 52 of file MuonPath.h.

References missingLayer_.

52 { return missingLayer_; }
int missingLayer_
Definition: MuonPath.h:95

◆ nprimitives()

short MuonPath::nprimitives ( ) const
inline

Definition at line 47 of file MuonPath.h.

References nprimitives_.

Referenced by isEqualTo().

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

◆ nprimitivesDown()

short MuonPath::nprimitivesDown ( ) const
inline

Definition at line 48 of file MuonPath.h.

References nprimitivesDown_.

48 { return nprimitivesDown_; }
short nprimitivesDown_
Definition: MuonPath.h:87

◆ nprimitivesUp()

short MuonPath::nprimitivesUp ( ) const
inline

Definition at line 49 of file MuonPath.h.

References nprimitivesUp_.

49 { return nprimitivesUp_; }
short nprimitivesUp_
Definition: MuonPath.h:86

◆ phi()

float MuonPath::phi ( void  ) const
inline

Definition at line 60 of file MuonPath.h.

References phi_.

Referenced by Particle.Particle::__str__(), datamodel.Object::DeltaR(), datamodel.Object::p4(), ntupleDataFormat.Track::phiPull(), and setPhi().

60 { return phi_; }
float phi_
Definition: MuonPath.h:122

◆ phi_cmssw()

float MuonPath::phi_cmssw ( ) const
inline

Definition at line 62 of file MuonPath.h.

References phicmssw_.

Referenced by setPhiCMSSW().

62 { return phicmssw_; }
float phicmssw_
Definition: MuonPath.h:124

◆ phiB()

float MuonPath::phiB ( ) const
inline

Definition at line 61 of file MuonPath.h.

References phiB_.

61 { return phiB_; }
float phiB_
Definition: MuonPath.h:123

◆ phiB_cmssw()

float MuonPath::phiB_cmssw ( ) const
inline

Definition at line 63 of file MuonPath.h.

References phiBcmssw_.

63 { return phiBcmssw_; }
float phiBcmssw_
Definition: MuonPath.h:125

◆ primitive()

DTPrimitivePtr MuonPath::primitive ( int  layer) const
inline

Definition at line 46 of file MuonPath.h.

References nano_mu_digi_cff::layer, and prim_.

Referenced by isEqualTo().

46 { return prim_[layer]; }
DTPrimitivePtrs prim_
Definition: MuonPath.h:84

◆ quality()

cmsdt::MP_QUALITY MuonPath::quality ( void  ) const
inline

Definition at line 53 of file MuonPath.h.

References quality_.

53 { return quality_; }
cmsdt::MP_QUALITY quality_
Definition: MuonPath.h:101

◆ rawId()

uint32_t MuonPath::rawId ( ) const
inline

Definition at line 69 of file MuonPath.h.

References rawId_.

69 { return rawId_; }
uint32_t rawId_
Definition: MuonPath.h:127

◆ 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:93

◆ setBxTimeValue()

void MuonPath::setBxTimeValue ( int  time)

Definition at line 181 of file MuonPath.cc.

References nano_mu_digi_cff::float, createfilelist::int, cmsdt::LHC_CLK_FREQ, and hcalRecHitTable_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:110
constexpr int LHC_CLK_FREQ
Definition: constants.h:222
int bxTimeValue_
Definition: MuonPath.h:107

◆ 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:92

◆ 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:92

◆ setChiSquare()

void MuonPath::setChiSquare ( float  chi)
inline

Definition at line 33 of file MuonPath.h.

References chiSquare_.

33 { chiSquare_ = chi; }
float chiSquare_
Definition: MuonPath.h:121

◆ setDriftDistance()

void MuonPath::setDriftDistance ( float  dx,
int  cell 
)
inline

Definition at line 39 of file MuonPath.h.

References PVValHelper::dx, and xDriftDistance_.

39 { xDriftDistance_[cell] = dx; }
float xDriftDistance_[cmsdt::NUM_LAYERS_2SL]
Definition: MuonPath.h:114

◆ setHorizPos()

void MuonPath::setHorizPos ( float  pos)
inline

Definition at line 31 of file MuonPath.h.

References horizPos_.

31 { horizPos_ = pos; }
float horizPos_
Definition: MuonPath.h:120

◆ 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:104

◆ 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:104

◆ 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:46
cmsdt::LATERAL_CASES lateralComb_[cmsdt::NUM_LAYERS]
Definition: MuonPath.h:104
short nprimitives_
Definition: MuonPath.h:85

◆ setMissingLayer()

void MuonPath::setMissingLayer ( int  layer)
inline

Definition at line 24 of file MuonPath.h.

References nano_mu_digi_cff::layer, and missingLayer_.

◆ 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:85

◆ 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:87

◆ 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:86

◆ setPhi()

void MuonPath::setPhi ( float  phi)
inline

Definition at line 34 of file MuonPath.h.

References phi(), and phi_.

34 { phi_ = phi; }
float phi_
Definition: MuonPath.h:122
float phi() const
Definition: MuonPath.h:60

◆ setPhiB()

void MuonPath::setPhiB ( float  phib)
inline

Definition at line 35 of file MuonPath.h.

References phiB_.

35 { phiB_ = phib; }
float phiB_
Definition: MuonPath.h:123

◆ setPhiBCMSSW()

void MuonPath::setPhiBCMSSW ( float  phib_cmssw)
inline

Definition at line 37 of file MuonPath.h.

References phiBcmssw_.

37 { phiBcmssw_ = phib_cmssw; }
float phiBcmssw_
Definition: MuonPath.h:125

◆ setPhiCMSSW()

void MuonPath::setPhiCMSSW ( float  phi_cmssw)
inline

Definition at line 36 of file MuonPath.h.

References phi_cmssw(), and phicmssw_.

36 { phicmssw_ = phi_cmssw; }
float phicmssw_
Definition: MuonPath.h:124
float phi_cmssw() const
Definition: MuonPath.h:62

◆ setPrimitive()

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

Definition at line 127 of file MuonPath.cc.

References eostools::move().

127 { prim_[layer] = std::move(ptr); }
DTPrimitivePtrs prim_
Definition: MuonPath.h:84
def move(src, dest)
Definition: eostools.py:511

◆ setQuality()

void MuonPath::setQuality ( cmsdt::MP_QUALITY  qty)
inline

Definition at line 25 of file MuonPath.h.

References quality_.

25 { quality_ = qty; }
cmsdt::MP_QUALITY quality_
Definition: MuonPath.h:101

◆ setRawId()

void MuonPath::setRawId ( uint32_t  id)
inline

Definition at line 43 of file MuonPath.h.

References l1ctLayer2EG_cff::id, and rawId_.

43 { rawId_ = id; }
uint32_t rawId_
Definition: MuonPath.h:127

◆ setTanPhi()

void MuonPath::setTanPhi ( float  tanPhi)
inline

Definition at line 32 of file MuonPath.h.

References tanPhi(), and tanPhi_.

32 { tanPhi_ = tanPhi; }
float tanPhi() const
Definition: MuonPath.h:56
float tanPhi_
Definition: MuonPath.h:119

◆ setTWireTDC()

void MuonPath::setTWireTDC ( float  t,
int  cell 
)
inline

Definition at line 42 of file MuonPath.h.

References submitPVValidationJobs::t, and tWireTDC_.

42 { tWireTDC_[cell] = t; }
float tWireTDC_[cmsdt::NUM_LAYERS_2SL]
Definition: MuonPath.h:117

◆ setXCoorCell()

void MuonPath::setXCoorCell ( float  x,
int  cell 
)
inline

Definition at line 38 of file MuonPath.h.

References x, and xCoorCell_.

38 { xCoorCell_[cell] = x; }
float xCoorCell_[cmsdt::NUM_LAYERS_2SL]
Definition: MuonPath.h:113

◆ setXWirePos()

void MuonPath::setXWirePos ( float  x,
int  cell 
)
inline

Definition at line 40 of file MuonPath.h.

References x, and xWirePos_.

40 { xWirePos_[cell] = x; }
float xWirePos_[cmsdt::NUM_LAYERS_2SL]
Definition: MuonPath.h:115

◆ setZWirePos()

void MuonPath::setZWirePos ( float  z,
int  cell 
)
inline

Definition at line 41 of file MuonPath.h.

References z, and zWirePos_.

41 { zWirePos_[cell] = z; }
float zWirePos_[cmsdt::NUM_LAYERS_2SL]
Definition: MuonPath.h:116

◆ tanPhi()

float MuonPath::tanPhi ( ) const
inline

Definition at line 56 of file MuonPath.h.

References tanPhi_.

Referenced by setTanPhi().

56 { return tanPhi_; }
float tanPhi_
Definition: MuonPath.h:119

◆ tWireTDC()

float MuonPath::tWireTDC ( int  cell) const
inline

Definition at line 68 of file MuonPath.h.

References tWireTDC_.

68 { return tWireTDC_[cell]; }
float tWireTDC_[cmsdt::NUM_LAYERS_2SL]
Definition: MuonPath.h:117

◆ xCoorCell()

float MuonPath::xCoorCell ( int  cell) const
inline

Definition at line 64 of file MuonPath.h.

References xCoorCell_.

64 { return xCoorCell_[cell]; }
float xCoorCell_[cmsdt::NUM_LAYERS_2SL]
Definition: MuonPath.h:113

◆ xDriftDistance()

float MuonPath::xDriftDistance ( int  cell) const
inline

Definition at line 65 of file MuonPath.h.

References xDriftDistance_.

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

◆ xWirePos()

float MuonPath::xWirePos ( int  cell) const
inline

Definition at line 66 of file MuonPath.h.

References xWirePos_.

66 { return xWirePos_[cell]; }
float xWirePos_[cmsdt::NUM_LAYERS_2SL]
Definition: MuonPath.h:115

◆ zWirePos()

float MuonPath::zWirePos ( int  cell) const
inline

Definition at line 67 of file MuonPath.h.

References zWirePos_.

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

Member Data Documentation

◆ baseChannelId_

int MuonPath::baseChannelId_
private

Definition at line 93 of file MuonPath.h.

Referenced by baseChannelId(), and setBaseChannelId().

◆ bxNumId_

int MuonPath::bxNumId_
private

Definition at line 110 of file MuonPath.h.

Referenced by bxNumId().

◆ bxTimeValue_

int MuonPath::bxTimeValue_
private

Definition at line 107 of file MuonPath.h.

Referenced by bxTimeValue().

◆ cellLayout_

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

Definition at line 92 of file MuonPath.h.

Referenced by cellLayout().

◆ chiSquare_

float MuonPath::chiSquare_
private

Definition at line 121 of file MuonPath.h.

Referenced by chiSquare(), and setChiSquare().

◆ horizPos_

float MuonPath::horizPos_
private

Definition at line 120 of file MuonPath.h.

Referenced by horizPos(), and setHorizPos().

◆ lateralComb_

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

Definition at line 104 of file MuonPath.h.

Referenced by lateralComb().

◆ missingLayer_

int MuonPath::missingLayer_
private

Definition at line 95 of file MuonPath.h.

Referenced by missingLayer(), and setMissingLayer().

◆ nprimitives_

short MuonPath::nprimitives_
private

Definition at line 85 of file MuonPath.h.

Referenced by nprimitives(), and setNPrimitives().

◆ nprimitivesDown_

short MuonPath::nprimitivesDown_
private

Definition at line 87 of file MuonPath.h.

Referenced by nprimitivesDown(), and setNPrimitivesDown().

◆ nprimitivesUp_

short MuonPath::nprimitivesUp_
private

Definition at line 86 of file MuonPath.h.

Referenced by nprimitivesUp(), and setNPrimitivesUp().

◆ phi_

float MuonPath::phi_
private

Definition at line 122 of file MuonPath.h.

Referenced by phi(), and setPhi().

◆ phiB_

float MuonPath::phiB_
private

Definition at line 123 of file MuonPath.h.

Referenced by phiB(), and setPhiB().

◆ phiBcmssw_

float MuonPath::phiBcmssw_
private

Definition at line 125 of file MuonPath.h.

Referenced by phiB_cmssw(), and setPhiBCMSSW().

◆ phicmssw_

float MuonPath::phicmssw_
private

Definition at line 124 of file MuonPath.h.

Referenced by phi_cmssw(), and setPhiCMSSW().

◆ prim_

DTPrimitivePtrs MuonPath::prim_
private

Definition at line 84 of file MuonPath.h.

Referenced by primitive().

◆ quality_

cmsdt::MP_QUALITY MuonPath::quality_
private

Definition at line 101 of file MuonPath.h.

Referenced by quality(), and setQuality().

◆ rawId_

uint32_t MuonPath::rawId_
private

Definition at line 127 of file MuonPath.h.

Referenced by rawId(), and setRawId().

◆ tanPhi_

float MuonPath::tanPhi_
private

Definition at line 119 of file MuonPath.h.

Referenced by setTanPhi(), and tanPhi().

◆ tWireTDC_

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

Definition at line 117 of file MuonPath.h.

Referenced by setTWireTDC(), and tWireTDC().

◆ xCoorCell_

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

Definition at line 113 of file MuonPath.h.

Referenced by setXCoorCell(), and xCoorCell().

◆ xDriftDistance_

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

Definition at line 114 of file MuonPath.h.

Referenced by setDriftDistance(), and xDriftDistance().

◆ xWirePos_

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

Definition at line 115 of file MuonPath.h.

Referenced by setXWirePos(), and xWirePos().

◆ zWirePos_

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

Definition at line 116 of file MuonPath.h.

Referenced by setZWirePos(), and zWirePos().