 |
ATLAS Offline Software
|
Go to the documentation of this file.
19 for(
int side : {0,1}){
27 for(
int side : {0,1}){
41 m_tree =
new TTree(
"ZDC",
"ZDC");
58 return StatusCode::SUCCESS;
70 double photons_fiber = -1;
73 int channel_fiber = -1;
76 const EventContext& ctx{Gaudi::Hive::currentContext()};
79 for (fiberhi=(*fiberiter).begin(); fiberhi != (*fiberiter).end(); ++fiberhi) {
105 int channel_calib = -1;
106 float calib_eTot = -999.;
107 float calib_eEM = -999.;
108 float calib_eNonEM = -999.;
112 for (
auto hit : *calibiter) {
117 calib_eTot = hit->energyTotal();
118 calib_eEM = hit->energyEM();
119 calib_eNonEM = hit->energyNonEM();
135 return StatusCode::SUCCESS;
def retrieve(aClass, aKey=None)
const ServiceHandle< ITHistSvc > & histSvc() const
The standard THistSvc (for writing histograms and TTrees and more to a root file) Returns (kind of) a...
TH1_Array m_h_zdc_calibTot
std::vector< float > * m_zdc_calib_Total
Gaudi::Property< std::string > m_ntupleFileName
std::vector< float > * m_zdc_calib_NonEM
int module(const Identifier &id) const
std::vector< int > * m_zdc_fiber_channel
TH1_Array m_h_zdc_photons
ZDC_SimFiberHit_Collection::const_iterator ZDC_SimFiberHit_ConstIterator
virtual StatusCode initialize() override
virtual StatusCode execute() override
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
const T * get(const ReadCondHandleKey< T > &key, const EventContext &ctx)
Convenience function to retrieve an object given a ReadCondHandleKey.
::StatusCode StatusCode
StatusCode definition for legacy code.
std::vector< float > * m_zdc_calib_EM
TH1_Array m_h_zdc_calibNonEM
std::vector< int > * m_zdc_fiber_side
TH1_Array m_h_zdc_calibEM
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
SG::ReadHandleKey< CaloCalibrationHitContainer > m_readCalibKey
std::vector< int > * m_zdc_fiber_photons
std::vector< int > * m_zdc_calib_channel
std::vector< int > * m_zdc_calib_mod
int side(const Identifier &id) const
Values of different levels (failure returns 0)
std::vector< int > * m_zdc_calib_side
SG::ReadHandleKey< ZDC_SimFiberHit_Collection > m_readKey
Handle class for reading from StoreGate.
Gaudi::Property< std::string > m_path
std::vector< int > * m_zdc_fiber_mod
int channel(const Identifier &id) const