CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
HcalTestNumberingScheme Class Reference

#include <HcalTestNumberingScheme.h>

Inheritance diagram for HcalTestNumberingScheme:
HcalNumberingScheme CaloNumberingScheme

Public Member Functions

virtual uint32_t getUnitID (const HcalNumberingFromDDD::HcalID &id)
 
 HcalTestNumberingScheme (bool forTB)
 
virtual ~HcalTestNumberingScheme ()
 
- Public Member Functions inherited from HcalNumberingScheme
 HcalNumberingScheme ()
 
virtual ~HcalNumberingScheme ()
 
- Public Member Functions inherited from CaloNumberingScheme
 CaloNumberingScheme (int iv=0)
 Constructor with optional verbosity control. More...
 
void setVerbosity (const int)
 Verbosity setting. More...
 
virtual ~CaloNumberingScheme ()
 

Static Public Member Functions

static uint32_t packHcalIndex (int det, int z, int depth, int eta, int phi, int lay)
 
static void unpackHcalIndex (const uint32_t &idx, int &det, int &z, int &depth, int &eta, int &phi, int &lay)
 

Private Member Functions

 HcalTestNumberingScheme ()
 

Private Attributes

bool forTBH2
 

Additional Inherited Members

- Protected Attributes inherited from CaloNumberingScheme
int verbosity
 Verbosity field: Zero = quiet, increasing integers mean more output. More...
 

Detailed Description

Definition at line 11 of file HcalTestNumberingScheme.h.

Constructor & Destructor Documentation

HcalTestNumberingScheme::HcalTestNumberingScheme ( bool  forTB)

Definition at line 13 of file HcalTestNumberingScheme.cc.

References forTBH2.

13  :
14  HcalNumberingScheme(), forTBH2(forTB) {
15  edm::LogInfo("HcalSim") << "Creating HcalTestNumberingScheme with TB Flag "
16  << forTBH2;
17 }
HcalTestNumberingScheme::~HcalTestNumberingScheme ( )
virtual

Definition at line 19 of file HcalTestNumberingScheme.cc.

19  {
20  edm::LogInfo("HcalSim") << "Deleting HcalTestNumberingScheme";
21 }
HcalTestNumberingScheme::HcalTestNumberingScheme ( )
private

Member Function Documentation

uint32_t HcalTestNumberingScheme::getUnitID ( const HcalNumberingFromDDD::HcalID id)
virtual

Reimplemented from HcalNumberingScheme.

Definition at line 23 of file HcalTestNumberingScheme.cc.

References TauDecayModes::dec, HLT_FULL_cff::depth, forTBH2, HcalBarrel, cmsHarvester::index, HcalTestNumbering::packHcalIndex(), phi, DetId::rawId(), and ecaldqm::zside().

Referenced by HcalTestAnalysis::fill(), SimG4HcalValidation::fill(), and HcalTestAnalysis::qieAnalysis().

24  {
25 
26  //pack it into an integer
27  uint32_t index = 0;
28  if (forTBH2) {
29  // TB H2 Case
30  int etaR = id.etaR;
31  int phi = id.phis;
32  HcalSubdetector subdet = (HcalSubdetector)(id.subdet);
33  if (subdet == HcalBarrel && phi > 4) { // HB2
34  if (etaR > 4 && etaR < 10)
35  index = HcalDetId(subdet,id.lay,id.phis,1).rawId();
36  } else { // HB1
37  index = HcalDetId(subdet,etaR,id.phis,id.depth).rawId();
38  }
39  } else {
40  // Test case
41  index = HcalTestNumbering::packHcalIndex(id.subdet, id.zside, id.depth,
42  id.etaR, id.phis, id.lay);
43  }
44 #ifdef DebugLog
45  edm::LogInfo("HcalSim") << "HcalTestNumberingScheme det = " << id.subdet
46  << " depth/lay = " << id.depth << "/" << id.lay
47  << " zside = " << id.zside << " eta/R = " << id.etaR
48  << " phi = " << id.phis << " packed index = 0x"
49  << std::hex << index << std::dec << std::endl;
50 #endif
51  return index;
52 
53 }
int zside(DetId const &)
uint32_t rawId() const
get the raw id
Definition: DetId.h:43
static uint32_t packHcalIndex(int det, int z, int depth, int eta, int phi, int lay)
HcalSubdetector
Definition: HcalAssistant.h:31
uint32_t HcalTestNumberingScheme::packHcalIndex ( int  det,
int  z,
int  depth,
int  eta,
int  phi,
int  lay 
)
static

Definition at line 55 of file HcalTestNumberingScheme.cc.

References HcalTestNumbering::packHcalIndex().

Referenced by HcalTestAnalysis::fill(), and SimG4HcalValidation::fill().

56  {
57 
58  return HcalTestNumbering::packHcalIndex(det, z, depth, eta, phi, lay);
59 }
static uint32_t packHcalIndex(int det, int z, int depth, int eta, int phi, int lay)
void HcalTestNumberingScheme::unpackHcalIndex ( const uint32_t &  idx,
int &  det,
int &  z,
int &  depth,
int &  eta,
int &  phi,
int &  lay 
)
static

Definition at line 61 of file HcalTestNumberingScheme.cc.

References HcalTestNumbering::unpackHcalIndex().

Referenced by HcalTestAnalysis::fill(), SimG4HcalValidation::fill(), and HcalTestAnalysis::qieAnalysis().

64  {
65 
67 }
static void unpackHcalIndex(const uint32_t &idx, int &det, int &z, int &depth, int &eta, int &phi, int &lay)
tuple idx
DEBUGGING if hasattr(process,&quot;trackMonIterativeTracking2012&quot;): print &quot;trackMonIterativeTracking2012 D...

Member Data Documentation

bool HcalTestNumberingScheme::forTBH2
private

Definition at line 25 of file HcalTestNumberingScheme.h.

Referenced by getUnitID(), and HcalTestNumberingScheme().