24 ISvcLocator* pSvcLocator)
39 return StatusCode::SUCCESS;
49 if (sc0.isFailure()||!truthEvent){
51 return StatusCode::FAILURE;
57 std::vector<double> hitEnergies;
59 double totalEnergyAllContainers=0.;
63 std::vector<const CaloCalibrationHitContainer *> v_cchc;
69 if (
evtStore()->contains<CaloCalibrationHitContainer>(*containerNameIter)) {
71 if (
sc.isFailure() ) {
72 ATH_MSG_ERROR (
"Cannot retrieve calibration hit container " << *containerNameIter );
73 return StatusCode::FAILURE;
80 for(;chIter!=chIterE;++chIter)
81 totEnergy+=(*chIter)->energyTotal();
84 ATH_MSG_INFO (
"container name: "<<*containerNameIter<<
", energy="<<totEnergy);
86 totalEnergyAllContainers += totEnergy;
88 hitEnergies.push_back(totEnergy);
93 std::vector<double> hitEnergiesDM;
95 std::vector<const CaloCalibrationHitContainer *> v_dmcchc;
100 if (
evtStore()->contains<CaloCalibrationHitContainer>(*containerNameIter)) {
102 if (
sc.isFailure() ) {
103 ATH_MSG_ERROR (
"Cannot retrieve DM calibration hit container " << *containerNameIter );
104 return StatusCode::FAILURE;
111 for(;chIter!=chIterE;++chIter)
112 totEnergy+=(*chIter)->energyTotal();
115 ATH_MSG_INFO (
"DM container name: "<<*containerNameIter<<
", energy="<<totEnergy);
117 totalEnergyAllContainers += totEnergy;
119 hitEnergiesDM.push_back(totEnergy);
122 ATH_MSG_INFO (
"total energy in hits: "<<totalEnergyAllContainers<<
", in primary particle: "<<
gen->momentum().e());
124 return StatusCode::SUCCESS;