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 25 of file HcalTB02XtalNumberingScheme.h.

Constructor & Destructor Documentation

HcalTB02XtalNumberingScheme::HcalTB02XtalNumberingScheme ( )

Definition at line 24 of file HcalTB02XtalNumberingScheme.cc.

24  :
26  edm::LogInfo("HcalTBSim") << "Creating HcalTB02XtalNumberingScheme";
27 }
HcalTB02XtalNumberingScheme::~HcalTB02XtalNumberingScheme ( )
virtual

Definition at line 29 of file HcalTB02XtalNumberingScheme.cc.

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

Member Function Documentation

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

Implements HcalTB02NumberingScheme.

Definition at line 37 of file HcalTB02XtalNumberingScheme.cc.

References customizeTrackingMonitorSeedNumber::idx, and LogDebug.

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