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

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

Definition at line 219 of file ShallowClustersProducer.cc.

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

219  {
220  SiStripDetId subdet(detid);
221  subdetid = subdet.subDetector();
222  if (SiStripDetId::TIB == subdetid) {
223  module = tTopo->tibModule(detid);
224  side = tTopo->tibIsZMinusSide(detid) ? -1 : 1;
225  layerwheel = tTopo->tibLayer(detid);
226  stringringrod = tTopo->tibString(detid);
227  stereo = tTopo->tibIsStereo(detid) ? 1 : 0;
228  } else if (SiStripDetId::TID == subdetid) {
229  module = tTopo->tidModule(detid);
230  side = tTopo->tidIsZMinusSide(detid) ? -1 : 1;
231  layerwheel = tTopo->tidWheel(detid);
232  stringringrod = tTopo->tidRing(detid);
233  stereo = tTopo->tidIsStereo(detid) ? 1 : 0;
234  } else if (SiStripDetId::TOB == subdetid) {
235  module = tTopo->tobModule(detid);
236  side = tTopo->tobIsZMinusSide(detid) ? -1 : 1;
237  layerwheel = tTopo->tobLayer(detid);
238  stringringrod = tTopo->tobRod(detid);
239  stereo = tTopo->tobIsStereo(detid) ? 1 : 0;
240  } else if (SiStripDetId::TEC == subdetid) {
241  module = tTopo->tecModule(detid);
242  side = tTopo->tecIsZMinusSide(detid) ? -1 : 1;
243  layerwheel = tTopo->tecWheel(detid);
244  stringringrod = tTopo->tecRing(detid);
245  petal = tTopo->tecPetalNumber(detid);
246  stereo = tTopo->tecIsStereo(detid) ? 1 : 0;
247  } else {
248  module = 0;
249  side = 0;
250  layerwheel = -1;
251  stringringrod = -1;
252  petal = -1;
253  }
254 }
unsigned int tibLayer(const DetId &id) const
unsigned int tibString(const DetId &id) const
unsigned int tidRing(const DetId &id) const
bool tobIsStereo(const DetId &id) const
static constexpr auto TID
Definition: SiStripDetId.h:38
unsigned int tecRing(const DetId &id) const
ring id
unsigned int tidWheel(const DetId &id) const
bool tecIsZMinusSide(const DetId &id) const
bool tidIsStereo(const DetId &id) const
bool tidIsZMinusSide(const DetId &id) const
bool tecIsStereo(const DetId &id) const
bool tibIsZMinusSide(const DetId &id) const
unsigned int tidModule(const DetId &id) const
bool tobIsZMinusSide(const DetId &id) const
static constexpr auto TOB
Definition: SiStripDetId.h:39
unsigned int tibModule(const DetId &id) const
unsigned int tecModule(const DetId &id) const
Detector identifier class for the strip tracker.
Definition: SiStripDetId.h:18
bool tibIsStereo(const DetId &id) const
static constexpr auto TIB
Definition: SiStripDetId.h:37
unsigned int tobModule(const DetId &id) const
unsigned int tecPetalNumber(const DetId &id) const
unsigned int tobRod(const DetId &id) const
unsigned int tecWheel(const DetId &id) const
Definition: vlib.h:198
static constexpr auto TEC
Definition: SiStripDetId.h:40
unsigned int tobLayer(const DetId &id) const

Member Data Documentation

int ShallowClustersProducer::moduleVars::layerwheel

Definition at line 28 of file ShallowClustersProducer.h.

Referenced by ShallowClustersProducer::produce().

uint32_t ShallowClustersProducer::moduleVars::module
int ShallowClustersProducer::moduleVars::petal

Definition at line 28 of file ShallowClustersProducer.h.

Referenced by ShallowClustersProducer::produce().

int ShallowClustersProducer::moduleVars::side

Definition at line 28 of file ShallowClustersProducer.h.

Referenced by ShallowClustersProducer::produce().

int ShallowClustersProducer::moduleVars::stereo

Definition at line 28 of file ShallowClustersProducer.h.

Referenced by ShallowClustersProducer::produce().

int ShallowClustersProducer::moduleVars::stringringrod

Definition at line 28 of file ShallowClustersProducer.h.

Referenced by ShallowClustersProducer::produce().

int ShallowClustersProducer::moduleVars::subdetid

Definition at line 28 of file ShallowClustersProducer.h.

Referenced by ShallowClustersProducer::produce().