44 return StatusCode::SUCCESS;
48 std::vector<G4double> & energies,
57 std::cout <<
"LArG4::Barrel::CalibrationCalculator::Process"
58 <<
" calling SimulationEnergies" << std::endl;
63 for (
unsigned int i=0; i != 4; i++) energies.push_back( 0. );
77 G4double energy =
accumulate(energies.begin(),energies.end(),0.);
78 std::cout <<
"LArG4::Barrel::CalibrationCalculator::Process"
79 <<
" ID=" << std::string(identifier)
80 <<
" energy=" << energy
81 <<
" energies=(" << energies[0]
84 <<
"," << energies[3] <<
")"
#define ATH_CHECK
Evaluate an expression and check for errors.
bool accumulate(AccumulateMap &map, std::vector< module_t > const &modules, FPGATrackSimMatrixAccumulator const &acc)
Accumulates an accumulator (e.g.
LArCalibCalculatorSvcImp(const std::string &name, ISvcLocator *pSvcLocator)
ServiceHandle< ILArBarrelGeometry > m_geometryCalculator
StatusCode initialize() override final
virtual G4bool Process(const G4Step *step, LArG4Identifier &identifier, std::vector< G4double > &energies, const eCalculatorProcessing process=kEnergyAndID) const override final
CaloG4::SimulationEnergies m_energyCalculator
CalibrationCalculator(const std::string &name, ISvcLocator *pSvcLocator)
const std::string process