Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
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
// $Id: HcalTB02XtalNumberingScheme.cc,v 1.1 2006/06/04 13:59:38 sunanda Exp $
12
//
13
14
// system include files
15
16
// user include files
17
#include "
SimG4CMS/HcalTestBeam/interface/HcalTB02XtalNumberingScheme.h
"
18
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
19
20
//
21
// constructors and destructor
22
//
23
24
HcalTB02XtalNumberingScheme::HcalTB02XtalNumberingScheme
() :
25
HcalTB02NumberingScheme
() {
26
edm::LogInfo
(
"HcalTBSim"
) <<
"Creating HcalTB02XtalNumberingScheme"
;
27
}
28
29
HcalTB02XtalNumberingScheme::~HcalTB02XtalNumberingScheme
() {
30
edm::LogInfo
(
"HcalTBSim"
) <<
"Deleting HcalTB02XtalNumberingScheme"
;
31
}
32
33
//
34
// member functions
35
//
36
37
int
HcalTB02XtalNumberingScheme::getUnitID
(
const
G4Step* aStep)
const
{
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
}
LogDebug
#define LogDebug(id)
Definition:
MessageLogger.h:501
MessageLogger.h
HcalTB02XtalNumberingScheme::~HcalTB02XtalNumberingScheme
virtual ~HcalTB02XtalNumberingScheme()
Definition:
HcalTB02XtalNumberingScheme.cc:29
HcalTB02XtalNumberingScheme.h
HcalTB02XtalNumberingScheme::HcalTB02XtalNumberingScheme
HcalTB02XtalNumberingScheme()
Definition:
HcalTB02XtalNumberingScheme.cc:24
HcalTB02NumberingScheme
Definition:
HcalTB02NumberingScheme.h:25
edm::LogInfo
Definition:
MessageLogger.h:214
HcalTB02XtalNumberingScheme::getUnitID
virtual int getUnitID(const G4Step *aStep) const
Definition:
HcalTB02XtalNumberingScheme.cc:37
Generated for CMSSW Reference Manual by
1.8.5