#include <BscNumberingScheme.h>
Definition at line 18 of file BscNumberingScheme.h.
BscNumberingScheme::BscNumberingScheme |
( |
| ) |
|
BscNumberingScheme::~BscNumberingScheme |
( |
| ) |
|
|
virtual |
int BscNumberingScheme::detectorLevel |
( |
const G4Step * |
aStep | ) |
const |
|
virtual |
void BscNumberingScheme::detectorLevel |
( |
const G4Step * |
aStep, |
|
|
int & |
level, |
|
|
int * |
copyno, |
|
|
G4String * |
name |
|
) |
| const |
|
virtual |
unsigned int BscNumberingScheme::getUnitID |
( |
const G4Step * |
aStep | ) |
const |
|
virtual |
Definition at line 44 of file BscNumberingScheme.cc.
References TauDecayModes::dec, detectorLevel(), testEve_cfg::level, LogDebug, mergeVDriftHistosByStation::name, packBscIndex(), relativeConstraints::station, and ecaldqm::zside().
Referenced by BscSD::setDetUnitId().
49 LogDebug(
"BscSim") <<
"BscNumberingScheme number of levels= " <<
level;
53 int* copyno =
new int[
level];
60 for (
int ich=0; ich <
level; ich++) {
62 if(name[ich] ==
"BSC1" ||name[ich] ==
"BSC2" ) {
63 zside = copyno[ich]-1;
64 }
else if(name[ich] ==
"BSCTrap") {
66 station = 2*(copyno[ich]-1);
67 }
else if(name[ich] ==
"BSCTubs") {
69 station = copyno[ich]-1;
70 }
else if(name[ich] ==
"BSCTTop") {
72 }
else if(name[ich] ==
"BSC2Pad"){
74 station = copyno[ich]-1;
77 LogDebug(
"BscSim") <<
"BscNumberingScheme " <<
"ich=" << ich <<
"copyno"
78 << copyno[ich] <<
"name=" << name[ich];
82 LogDebug(
"BscSim") <<
"BscNumberingScheme : det " << det <<
" zside "
83 << zside <<
" station " << station
84 <<
" UnitID 0x" << std::hex << intindex <<
std::dec;
86 for (
int ich = 0; ich <
level; ich++)
87 LogDebug(
"BscSim") <<
" name = " << name[ich] <<
" copy = " << copyno[ich];
88 LogDebug(
"BscSim") <<
" packed index = 0x" << std::hex << intindex
virtual int detectorLevel(const G4Step *) const
static unsigned int packBscIndex(int det, int zside, int station)
unsigned BscNumberingScheme::packBscIndex |
( |
int |
det, |
|
|
int |
zside, |
|
|
int |
station |
|
) |
| |
|
static |
void BscNumberingScheme::unpackBscIndex |
( |
const unsigned int & |
idx | ) |
|
|
static |