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

Constructor & Destructor Documentation

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

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

Referenced by ShallowClustersProducer::NearDigis::NearDigis().

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