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 26 of file ShallowClustersProducer.h.

Constructor & Destructor Documentation

◆ moduleVars()

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

Definition at line 221 of file ShallowClustersProducer.cc.

221  {
222  SiStripDetId subdet(detid);
223  subdetid = subdet.subDetector();
224  if (SiStripDetId::TIB == subdetid) {
225  module = tTopo->tibModule(detid);
226  side = tTopo->tibIsZMinusSide(detid) ? -1 : 1;
227  layerwheel = tTopo->tibLayer(detid);
228  stringringrod = tTopo->tibString(detid);
229  stereo = tTopo->tibIsStereo(detid) ? 1 : 0;
230  } else if (SiStripDetId::TID == subdetid) {
231  module = tTopo->tidModule(detid);
232  side = tTopo->tidIsZMinusSide(detid) ? -1 : 1;
233  layerwheel = tTopo->tidWheel(detid);
234  stringringrod = tTopo->tidRing(detid);
235  stereo = tTopo->tidIsStereo(detid) ? 1 : 0;
236  } else if (SiStripDetId::TOB == subdetid) {
237  module = tTopo->tobModule(detid);
238  side = tTopo->tobIsZMinusSide(detid) ? -1 : 1;
239  layerwheel = tTopo->tobLayer(detid);
240  stringringrod = tTopo->tobRod(detid);
241  stereo = tTopo->tobIsStereo(detid) ? 1 : 0;
242  } else if (SiStripDetId::TEC == subdetid) {
243  module = tTopo->tecModule(detid);
244  side = tTopo->tecIsZMinusSide(detid) ? -1 : 1;
245  layerwheel = tTopo->tecWheel(detid);
246  stringringrod = tTopo->tecRing(detid);
247  petal = tTopo->tecPetalNumber(detid);
248  stereo = tTopo->tecIsStereo(detid) ? 1 : 0;
249  } else {
250  module = 0;
251  side = 0;
252  layerwheel = -1;
253  stringringrod = -1;
254  petal = -1;
255  }
256 }

References 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 28 of file ShallowClustersProducer.h.

Referenced by ShallowClustersProducer::produce().

◆ module

uint32_t ShallowClustersProducer::moduleVars::module

◆ petal

int ShallowClustersProducer::moduleVars::petal

Definition at line 28 of file ShallowClustersProducer.h.

Referenced by ShallowClustersProducer::produce().

◆ side

int ShallowClustersProducer::moduleVars::side

Definition at line 28 of file ShallowClustersProducer.h.

Referenced by ShallowClustersProducer::produce().

◆ stereo

int ShallowClustersProducer::moduleVars::stereo

Definition at line 28 of file ShallowClustersProducer.h.

Referenced by ShallowClustersProducer::produce().

◆ stringringrod

int ShallowClustersProducer::moduleVars::stringringrod

Definition at line 28 of file ShallowClustersProducer.h.

Referenced by ShallowClustersProducer::produce().

◆ subdetid

int ShallowClustersProducer::moduleVars::subdetid

Definition at line 28 of file ShallowClustersProducer.h.

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.h:28
ShallowClustersProducer::moduleVars::layerwheel
int layerwheel
Definition: ShallowClustersProducer.h:28
ShallowClustersProducer::moduleVars::side
int side
Definition: ShallowClustersProducer.h:28
TrackerTopology::tecIsStereo
bool tecIsStereo(const DetId &id) const
Definition: TrackerTopology.h:265
ShallowClustersProducer::moduleVars::subdetid
int subdetid
Definition: ShallowClustersProducer.h:28
ShallowClustersProducer::moduleVars::stereo
int stereo
Definition: ShallowClustersProducer.h:28
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.h:28
module
Definition: vlib.h:198
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
TrackerTopology::tibLayer
unsigned int tibLayer(const DetId &id) const
Definition: TrackerTopology.h:150