CMS 3D CMS Logo

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

#include <SimG4CMS/HcalTestBeam/interface/HcalTB02XtalNumberingScheme.h>

Inheritance diagram for HcalTB02XtalNumberingScheme:
HcalTB02NumberingScheme

Public Member Functions

virtual int getUnitID (const G4Step *aStep) const
 
 HcalTB02XtalNumberingScheme ()
 
virtual ~HcalTB02XtalNumberingScheme ()
 
- Public Member Functions inherited from HcalTB02NumberingScheme
 HcalTB02NumberingScheme ()
 
virtual ~HcalTB02NumberingScheme ()
 

Detailed Description

Description: Numbering scheme for the crystal calorimeter in 2002 test beam

Usage: Sets up unique identifier for crystals in 2002 test beam

Definition at line 24 of file HcalTB02XtalNumberingScheme.h.

Constructor & Destructor Documentation

HcalTB02XtalNumberingScheme::HcalTB02XtalNumberingScheme ( )

Definition at line 23 of file HcalTB02XtalNumberingScheme.cc.

23  :
25  edm::LogInfo("HcalTBSim") << "Creating HcalTB02XtalNumberingScheme";
26 }
HcalTB02XtalNumberingScheme::~HcalTB02XtalNumberingScheme ( )
virtual

Definition at line 28 of file HcalTB02XtalNumberingScheme.cc.

28  {
29  edm::LogInfo("HcalTBSim") << "Deleting HcalTB02XtalNumberingScheme";
30 }

Member Function Documentation

int HcalTB02XtalNumberingScheme::getUnitID ( const G4Step *  aStep) const
virtual

Implements HcalTB02NumberingScheme.

Definition at line 36 of file HcalTB02XtalNumberingScheme.cc.

References customizeTrackingMonitorSeedNumber::idx, and LogDebug.

36  {
37 
38  const G4VTouchable* touch = aStep->GetPreStepPoint()->GetTouchable();
39  int idx=touch->GetReplicaNumber(0);
40  int idl=0;
41  if (touch->GetHistoryDepth() > 0) idl = touch->GetReplicaNumber(1);
42  int idunit = idl*100 + idx;
43  LogDebug("HcalTBSim") << "HcalTB02XtalNumberingScheme:: Row " << idl
44  << " Column " << idl << " idunit = " << idunit;
45  return idunit;
46 }
#define LogDebug(id)
tuple idx
DEBUGGING if hasattr(process,&quot;trackMonIterativeTracking2012&quot;): print &quot;trackMonIterativeTracking2012 D...