CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
ShallowClustersProducer::moduleVars Struct Reference

Public Member Functions

 moduleVars (uint32_t, const TrackerTopology *)
 

Public Attributes

int layerwheel
 
uint32_t module
 
int petal
 
int side
 
int stereo
 
int stringringrod
 
int subdetid
 

Detailed Description

Definition at line 27 of file ShallowClustersProducer.cc.

Constructor & Destructor Documentation

◆ moduleVars()

ShallowClustersProducer::moduleVars::moduleVars ( uint32_t  detid,
const TrackerTopology tTopo 
)

Definition at line 262 of file ShallowClustersProducer.cc.

262  {
263  SiStripDetId subdet(detid);
264  subdetid = subdet.subDetector();
265  if (SiStripDetId::TIB == subdetid) {
266  module = tTopo->tibModule(detid);
267  side = tTopo->tibIsZMinusSide(detid) ? -1 : 1;
268  layerwheel = tTopo->tibLayer(detid);
269  stringringrod = tTopo->tibString(detid);
270  stereo = tTopo->tibIsStereo(detid) ? 1 : 0;
271  } else if (SiStripDetId::TID == subdetid) {
272  module = tTopo->tidModule(detid);
273  side = tTopo->tidIsZMinusSide(detid) ? -1 : 1;
274  layerwheel = tTopo->tidWheel(detid);
275  stringringrod = tTopo->tidRing(detid);
276  stereo = tTopo->tidIsStereo(detid) ? 1 : 0;
277  } else if (SiStripDetId::TOB == subdetid) {
278  module = tTopo->tobModule(detid);
279  side = tTopo->tobIsZMinusSide(detid) ? -1 : 1;
280  layerwheel = tTopo->tobLayer(detid);
281  stringringrod = tTopo->tobRod(detid);
282  stereo = tTopo->tobIsStereo(detid) ? 1 : 0;
283  } else if (SiStripDetId::TEC == subdetid) {
284  module = tTopo->tecModule(detid);
285  side = tTopo->tecIsZMinusSide(detid) ? -1 : 1;
286  layerwheel = tTopo->tecWheel(detid);
287  stringringrod = tTopo->tecRing(detid);
288  petal = tTopo->tecPetalNumber(detid);
289  stereo = tTopo->tecIsStereo(detid) ? 1 : 0;
290  } else {
291  module = 0;
292  side = 0;
293  layerwheel = -1;
294  stringringrod = -1;
295  petal = -1;
296  }
297 }

References callgraph::module, SiStripDetId::subDetector(), SiStripDetId::TEC, TrackerTopology::tecIsStereo(), TrackerTopology::tecIsZMinusSide(), TrackerTopology::tecModule(), TrackerTopology::tecPetalNumber(), TrackerTopology::tecRing(), TrackerTopology::tecWheel(), SiStripDetId::TIB, TrackerTopology::tibIsStereo(), TrackerTopology::tibIsZMinusSide(), TrackerTopology::tibLayer(), TrackerTopology::tibModule(), TrackerTopology::tibString(), SiStripDetId::TID, TrackerTopology::tidIsStereo(), TrackerTopology::tidIsZMinusSide(), TrackerTopology::tidModule(), TrackerTopology::tidRing(), TrackerTopology::tidWheel(), SiStripDetId::TOB, TrackerTopology::tobIsStereo(), TrackerTopology::tobIsZMinusSide(), TrackerTopology::tobLayer(), TrackerTopology::tobModule(), and TrackerTopology::tobRod().

Member Data Documentation

◆ layerwheel

int ShallowClustersProducer::moduleVars::layerwheel

Definition at line 29 of file ShallowClustersProducer.cc.

Referenced by ShallowClustersProducer::produce().

◆ module

uint32_t ShallowClustersProducer::moduleVars::module

◆ petal

int ShallowClustersProducer::moduleVars::petal

Definition at line 29 of file ShallowClustersProducer.cc.

Referenced by ShallowClustersProducer::produce().

◆ side

int ShallowClustersProducer::moduleVars::side

Definition at line 29 of file ShallowClustersProducer.cc.

Referenced by ShallowClustersProducer::produce().

◆ stereo

int ShallowClustersProducer::moduleVars::stereo

Definition at line 29 of file ShallowClustersProducer.cc.

Referenced by ShallowClustersProducer::produce().

◆ stringringrod

int ShallowClustersProducer::moduleVars::stringringrod

Definition at line 29 of file ShallowClustersProducer.cc.

Referenced by ShallowClustersProducer::produce().

◆ subdetid

int ShallowClustersProducer::moduleVars::subdetid

Definition at line 29 of file ShallowClustersProducer.cc.

Referenced by ShallowClustersProducer::produce().

TrackerTopology::tidIsZMinusSide
bool tidIsZMinusSide(const DetId &id) const
Definition: TrackerTopology.h:259
TrackerTopology::tobIsStereo
bool tobIsStereo(const DetId &id) const
Definition: TrackerTopology.h:264
TrackerTopology::tecIsZMinusSide
bool tecIsZMinusSide(const DetId &id) const
Definition: TrackerTopology.h:262
ShallowClustersProducer::moduleVars::petal
int petal
Definition: ShallowClustersProducer.cc:29
ShallowClustersProducer::moduleVars::layerwheel
int layerwheel
Definition: ShallowClustersProducer.cc:29
ShallowClustersProducer::moduleVars::side
int side
Definition: ShallowClustersProducer.cc:29
TrackerTopology::tecIsStereo
bool tecIsStereo(const DetId &id) const
Definition: TrackerTopology.h:265
ShallowClustersProducer::moduleVars::subdetid
int subdetid
Definition: ShallowClustersProducer.cc:29
ShallowClustersProducer::moduleVars::stereo
int stereo
Definition: ShallowClustersProducer.cc:29
TrackerTopology::tidModule
unsigned int tidModule(const DetId &id) const
Definition: TrackerTopology.h:175
TrackerTopology::tidRing
unsigned int tidRing(const DetId &id) const
Definition: TrackerTopology.h:218
TrackerTopology::tobRod
unsigned int tobRod(const DetId &id) const
Definition: TrackerTopology.h:195
TrackerTopology::tidWheel
unsigned int tidWheel(const DetId &id) const
Definition: TrackerTopology.h:201
TrackerTopology::tidIsStereo
bool tidIsStereo(const DetId &id) const
Definition: TrackerTopology.h:267
TrackerTopology::tibIsStereo
bool tibIsStereo(const DetId &id) const
Definition: TrackerTopology.h:266
SiStripDetId::TEC
static constexpr auto TEC
Definition: SiStripDetId.h:40
TrackerTopology::tibString
unsigned int tibString(const DetId &id) const
Definition: TrackerTopology.h:419
TrackerTopology::tecPetalNumber
unsigned int tecPetalNumber(const DetId &id) const
Definition: TrackerTopology.h:221
TrackerTopology::tobIsZMinusSide
bool tobIsZMinusSide(const DetId &id) const
Definition: TrackerTopology.h:253
TrackerTopology::tibModule
unsigned int tibModule(const DetId &id) const
Definition: TrackerTopology.h:172
TrackerTopology::tecRing
unsigned int tecRing(const DetId &id) const
ring id
Definition: TrackerTopology.h:217
SiStripDetId::TOB
static constexpr auto TOB
Definition: SiStripDetId.h:39
ShallowClustersProducer::moduleVars::stringringrod
int stringringrod
Definition: ShallowClustersProducer.cc:29
SiStripDetId::TID
static constexpr auto TID
Definition: SiStripDetId.h:38
TrackerTopology::tobLayer
unsigned int tobLayer(const DetId &id) const
Definition: TrackerTopology.h:147
TrackerTopology::tobModule
unsigned int tobModule(const DetId &id) const
Definition: TrackerTopology.h:166
SiStripDetId::TIB
static constexpr auto TIB
Definition: SiStripDetId.h:37
TrackerTopology::tecModule
unsigned int tecModule(const DetId &id) const
Definition: TrackerTopology.h:169
SiStripDetId
Detector identifier class for the strip tracker.
Definition: SiStripDetId.h:18
TrackerTopology::tibIsZMinusSide
bool tibIsZMinusSide(const DetId &id) const
Definition: TrackerTopology.h:256
TrackerTopology::tecWheel
unsigned int tecWheel(const DetId &id) const
Definition: TrackerTopology.h:198
ShallowClustersProducer::moduleVars::module
uint32_t module
Definition: ShallowClustersProducer.cc:30
TrackerTopology::tibLayer
unsigned int tibLayer(const DetId &id) const
Definition: TrackerTopology.h:150