CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 29 of file ShallowClustersProducer.h.

Constructor & Destructor Documentation

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

Definition at line 224 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().

224  {
225  SiStripDetId subdet(detid);
226  subdetid = subdet.subDetector();
227  if( SiStripDetId::TIB == subdetid ) {
228 
229  module = tTopo->tibModule(detid);
230  side = tTopo->tibIsZMinusSide(detid)?-1:1;
231  layerwheel = tTopo->tibLayer(detid);
232  stringringrod = tTopo->tibString(detid);
233  stereo = tTopo->tibIsStereo(detid) ? 1 : 0;
234  } else
235  if( SiStripDetId::TID == subdetid ) {
236 
237  module = tTopo->tidModule(detid);
238  side = tTopo->tidIsZMinusSide(detid)?-1:1;
239  layerwheel = tTopo->tidWheel(detid);
240  stringringrod = tTopo->tidRing(detid);
241  stereo = tTopo->tidIsStereo(detid) ? 1 : 0;
242  } else
243  if( SiStripDetId::TOB == subdetid ) {
244 
245  module = tTopo->tobModule(detid);
246  side = tTopo->tobIsZMinusSide(detid)?-1:1;
247  layerwheel = tTopo->tobLayer(detid);
248  stringringrod = tTopo->tobRod(detid);
249  stereo = tTopo->tobIsStereo(detid) ? 1 : 0;
250  } else
251  if( SiStripDetId::TEC == subdetid ) {
252 
253  module = tTopo->tecModule(detid);
254  side = tTopo->tecIsZMinusSide(detid)?-1:1;
255  layerwheel = tTopo->tecWheel(detid);
256  stringringrod = tTopo->tecRing(detid);
257  petal = tTopo->tecPetalNumber(detid);
258  stereo = tTopo->tecIsStereo(detid) ? 1 : 0;
259  } else {
260  module = 0;
261  side = 0;
262  layerwheel=-1;
263  stringringrod = -1;
264  petal=-1;
265  }
266 }
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
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
unsigned int tibModule(const DetId &id) const
unsigned int tecModule(const DetId &id) const
Detector identifier class for the strip tracker.
Definition: SiStripDetId.h:17
bool tibIsStereo(const DetId &id) const
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:208
unsigned int tobLayer(const DetId &id) const

Member Data Documentation

int ShallowClustersProducer::moduleVars::layerwheel

Definition at line 31 of file ShallowClustersProducer.h.

Referenced by ShallowClustersProducer::produce().

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

Definition at line 31 of file ShallowClustersProducer.h.

Referenced by ShallowClustersProducer::produce().

int ShallowClustersProducer::moduleVars::side

Definition at line 31 of file ShallowClustersProducer.h.

Referenced by ShallowClustersProducer::produce().

int ShallowClustersProducer::moduleVars::stereo

Definition at line 31 of file ShallowClustersProducer.h.

Referenced by ShallowClustersProducer::produce().

int ShallowClustersProducer::moduleVars::stringringrod

Definition at line 31 of file ShallowClustersProducer.h.

Referenced by ShallowClustersProducer::produce().

int ShallowClustersProducer::moduleVars::subdetid

Definition at line 31 of file ShallowClustersProducer.h.

Referenced by ShallowClustersProducer::produce().