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

Constructor & Destructor Documentation

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

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

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

Referenced by ShallowClustersProducer::produce().

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

Definition at line 26 of file ShallowClustersProducer.h.

Referenced by ShallowClustersProducer::produce().

int ShallowClustersProducer::moduleVars::side

Definition at line 26 of file ShallowClustersProducer.h.

Referenced by ShallowClustersProducer::produce().

int ShallowClustersProducer::moduleVars::stereo

Definition at line 26 of file ShallowClustersProducer.h.

Referenced by ShallowClustersProducer::produce().

int ShallowClustersProducer::moduleVars::stringringrod

Definition at line 26 of file ShallowClustersProducer.h.

Referenced by ShallowClustersProducer::produce().

int ShallowClustersProducer::moduleVars::subdetid

Definition at line 26 of file ShallowClustersProducer.h.

Referenced by ShallowClustersProducer::produce().