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.

References ALCARECOPPSCalTrackBasedSel_cff::detid, ALPAKA_ACCELERATOR_NAMESPACE::ecal::reconstruction::internal::barrel::side(), 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().

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 }
unsigned int tecPetalNumber(const DetId &id) const
unsigned int tobLayer(const DetId &id) const
bool tobIsZMinusSide(const DetId &id) const
static constexpr auto TID
Definition: SiStripDetId.h:39
unsigned int tibModule(const DetId &id) const
unsigned int tidWheel(const DetId &id) const
bool tibIsZMinusSide(const DetId &id) const
unsigned int tecWheel(const DetId &id) const
unsigned int tibString(const DetId &id) const
bool tecIsZMinusSide(const DetId &id) const
unsigned int tecRing(const DetId &id) const
ring id
bool tibIsStereo(const DetId &id) const
bool tidIsZMinusSide(const DetId &id) const
bool tobIsStereo(const DetId &id) const
unsigned int tidModule(const DetId &id) const
unsigned int tecModule(const DetId &id) const
static constexpr auto TOB
Definition: SiStripDetId.h:40
Detector identifier class for the strip tracker.
Definition: SiStripDetId.h:19
bool tecIsStereo(const DetId &id) const
unsigned int tobRod(const DetId &id) const
static constexpr auto TIB
Definition: SiStripDetId.h:38
bool tidIsStereo(const DetId &id) const
unsigned int tidRing(const DetId &id) const
unsigned int tibLayer(const DetId &id) const
unsigned int tobModule(const DetId &id) const
static constexpr auto TEC
Definition: SiStripDetId.h:41

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().