#include <CryostatCalibrationMixedCalculator.h>
◆ CalibrationMixedCalculator()
LArG4::BarrelCryostat::CalibrationMixedCalculator::CalibrationMixedCalculator |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ ~CalibrationMixedCalculator()
virtual LArG4::BarrelCryostat::CalibrationMixedCalculator::~CalibrationMixedCalculator |
( |
| ) |
|
|
virtualdefault |
◆ initialize()
StatusCode LArG4::BarrelCryostat::CalibrationMixedCalculator::initialize |
( |
| ) |
|
|
finaloverride |
◆ Process()
Definition at line 68 of file CryostatCalibrationMixedCalculator.cxx.
80 for (
unsigned int i=0;
i != 4;
i++) energies.push_back( 0. );
96 constexpr
double oneOverDeta = 10.;
97 constexpr
double oneOverDphi = 32./
M_PI;
100 G4VPhysicalVolume* physical =
step->GetPreStepPoint()->GetPhysicalVolume();
102 G4String volumeName = physical->GetLogicalVolume()->GetName();
104 G4StepPoint* pre_step_point =
step->GetPreStepPoint();
105 G4StepPoint* post_step_point =
step->GetPostStepPoint();
107 G4ThreeVector startPoint = pre_step_point->GetPosition();
108 G4ThreeVector endPoint = post_step_point->GetPosition();
109 G4ThreeVector
p = (startPoint + endPoint) * 0.5;
111 G4double
rho =
p.perp();
112 G4double
eta = fabs(
p.pseudoRapidity() );
113 G4double
phi =
p.phi();
118 G4int sampling = INT_MIN;
119 G4int region = INT_MIN;
122 G4int subdet = (
p.z() > 0.) ? 4 : -4;
127 constexpr
double rho12 = 1386.+10.;
145 else if (
eta < 1.5 )
160 else if (
eta < 1.6 )
166 else if (
eta < 1.8 )
183 if (
type == INT_MIN ||
185 sampling == INT_MIN ||
189 #if defined (DEBUG_VOLUMES) || defined (DEBUG_HITS)
190 constexpr G4int messageMax = 10;
191 static std::atomic<G4int> messageCount = 0;
192 if ( messageCount++ < messageMax )
194 std::cout <<
"LArG4::BarrelCryostat::CalibrationMixedCalculator::Process"
195 <<
" (error " << messageCount <<
" of " << messageMax <<
" max displayed)"
198 <<
step->GetPreStepPoint()->GetPhysicalVolume()->GetName()
199 <<
"', using backup calculator"
221 std::cout <<
"LArG4::BarrelCryostat::CalibrationMixedCalculator::Process"
224 <<
" energies=(" << energies[0]
225 <<
"," << energies[1]
226 <<
"," << energies[2]
227 <<
"," << energies[3] <<
")"
◆ m_backupCalculator
ServiceHandle<ILArCalibCalculatorSvc> LArG4::BarrelCryostat::CalibrationMixedCalculator::m_backupCalculator {this, "BackupCalculator", "BarrelCryostatCalibrationLArCalculator"} |
|
private |
◆ m_energyCalculator
The documentation for this class was generated from the following files: