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)
 

Public Attributes

int layerwheel
 
uint32_t module
 
int petal
 
int side
 
int stereo
 
int stringringrod
 
int subdetid
 

Detailed Description

Definition at line 23 of file ShallowClustersProducer.h.

Constructor & Destructor Documentation

ShallowClustersProducer::moduleVars::moduleVars ( uint32_t  detid)

Definition at line 218 of file ShallowClustersProducer.cc.

References TOBDetId::isStereo(), TIBDetId::isStereo(), TIDDetId::isStereo(), TECDetId::isStereo(), TOBDetId::isZMinusSide(), TIBDetId::isZMinusSide(), TIDDetId::isZMinusSide(), TECDetId::isZMinusSide(), TOBDetId::layer(), TIBDetId::layer(), TOBDetId::module(), TIBDetId::module(), TECDetId::module(), TIDDetId::moduleNumber(), TECDetId::petalNumber(), TIDDetId::ringNumber(), TECDetId::ringNumber(), TOBDetId::rodNumber(), TIBDetId::stringNumber(), SiStripDetId::subDetector(), SiStripDetId::TEC, SiStripDetId::TIB, SiStripDetId::TID, SiStripDetId::TOB, TIDDetId::wheel(), and TECDetId::wheel().

218  {
219  SiStripDetId subdet(detid);
220  subdetid = subdet.subDetector();
221  if( SiStripDetId::TIB == subdetid ) {
222  TIBDetId tib(detid);
223  module = tib.module();
224  side = (tib.isZMinusSide())?-1:1;
225  layerwheel = tib.layer();
226  stringringrod = tib.stringNumber();
227  stereo = tib.isStereo() ? 1 : 0;
228  } else
229  if( SiStripDetId::TID == subdetid ) {
230  TIDDetId tid(detid);
231  module = tid.moduleNumber();
232  side = (tid.isZMinusSide())?-1:1;
233  layerwheel = tid.wheel();
234  stringringrod = tid.ringNumber();
235  stereo = tid.isStereo() ? 1 : 0;
236  } else
237  if( SiStripDetId::TOB == subdetid ) {
238  TOBDetId tob(detid);
239  module = tob.module();
240  side = (tob.isZMinusSide())?-1:1;
241  layerwheel = tob.layer();
242  stringringrod = tob.rodNumber();
243  stereo = tob.isStereo() ? 1 : 0;
244  } else
245  if( SiStripDetId::TEC == subdetid ) {
246  TECDetId tec(detid);
247  module = tec.module();
248  side = (tec.isZMinusSide())?-1:1;
249  layerwheel = tec.wheel();
250  stringringrod = tec.ringNumber();
251  petal = tec.petalNumber();
252  stereo = tec.isStereo() ? 1 : 0;
253  } else {
254  module = 0;
255  side = 0;
256  layerwheel=-1;
257  stringringrod = -1;
258  petal=-1;
259  }
260 }
module()
Definition: vlib.cc:994
Detector identifier class for the strip tracker.
Definition: SiStripDetId.h:17
Definition: vlib.h:209

Member Data Documentation

int ShallowClustersProducer::moduleVars::layerwheel

Definition at line 25 of file ShallowClustersProducer.h.

Referenced by ShallowClustersProducer::produce().

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

Definition at line 25 of file ShallowClustersProducer.h.

Referenced by ShallowClustersProducer::produce().

int ShallowClustersProducer::moduleVars::side

Definition at line 25 of file ShallowClustersProducer.h.

Referenced by ShallowClustersProducer::produce().

int ShallowClustersProducer::moduleVars::stereo

Definition at line 25 of file ShallowClustersProducer.h.

Referenced by ShallowClustersProducer::produce().

int ShallowClustersProducer::moduleVars::stringringrod

Definition at line 25 of file ShallowClustersProducer.h.

Referenced by ShallowClustersProducer::produce().

int ShallowClustersProducer::moduleVars::subdetid

Definition at line 25 of file ShallowClustersProducer.h.

Referenced by ShallowClustersProducer::produce().