Main Page
Namespaces
Classes
Package Documentation
SimG4CMS
HcalTestBeam
src
HcalTB02XtalNumberingScheme.cc
Go to the documentation of this file.
1
// -*- C++ -*-
2
//
3
// Package: HcalTestBeam
4
// Class : HcalTB02XtalNumberingScheme
5
//
6
// Implementation:
7
// Numbering scheme for crystal calorimeter in 2002 test beam
8
//
9
// Original Author:
10
// Created: Sun 21 10:14:34 CEST 2006
11
//
12
13
// system include files
14
15
// user include files
16
#include "
SimG4CMS/HcalTestBeam/interface/HcalTB02XtalNumberingScheme.h
"
17
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
18
19
//
20
// constructors and destructor
21
//
22
23
HcalTB02XtalNumberingScheme::HcalTB02XtalNumberingScheme
() :
24
HcalTB02NumberingScheme
() {
25
edm::LogInfo
(
"HcalTBSim"
) <<
"Creating HcalTB02XtalNumberingScheme"
;
26
}
27
28
HcalTB02XtalNumberingScheme::~HcalTB02XtalNumberingScheme
() {
29
edm::LogInfo
(
"HcalTBSim"
) <<
"Deleting HcalTB02XtalNumberingScheme"
;
30
}
31
32
//
33
// member functions
34
//
35
36
int
HcalTB02XtalNumberingScheme::getUnitID
(
const
G4Step* aStep)
const
{
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
}
LogDebug
#define LogDebug(id)
Definition:
PFTrackAlgoTools.cc:503
MessageLogger.h
HcalTB02XtalNumberingScheme::~HcalTB02XtalNumberingScheme
virtual ~HcalTB02XtalNumberingScheme()
Definition:
HcalTB02XtalNumberingScheme.cc:28
HcalTB02XtalNumberingScheme.h
HcalTB02XtalNumberingScheme::HcalTB02XtalNumberingScheme
HcalTB02XtalNumberingScheme()
Definition:
HcalTB02XtalNumberingScheme.cc:23
HcalTB02NumberingScheme
Definition:
HcalTB02NumberingScheme.h:24
edm::LogInfo
Definition:
MessageLogger.h:216
training_settings.idx
idx
Definition:
training_settings.py:16
HcalTB02XtalNumberingScheme::getUnitID
virtual int getUnitID(const G4Step *aStep) const
Definition:
HcalTB02XtalNumberingScheme.cc:36
Generated for CMSSW Reference Manual by
1.8.11