34 return StatusCode::SUCCESS ;
46 TChain* outfit =
new TChain(
"outfit");
48 outfit->Add(s.c_str());
59 outfit->SetBranchAddress(
"Channel", &Channel);
60 outfit->SetBranchAddress(
"Slot", &Slot);
61 outfit->SetBranchAddress(
"FT", &FT);
62 outfit->SetBranchAddress(
"BarAC", &BarAC);
63 outfit->SetBranchAddress(
"PhysOCal", &PhysOCal);
76 Long64_t nentries = outfit->GetEntries();
77 for ( Int_t i = 0; i < nentries; i++ )
91 ATH_MSG_INFO (
"LArMphysOverMcalyFromTuple finalized!" );
93 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
const ServiceHandle< StoreGateSvc > & detStore() const
This class implements the ILArMphysOverMcal interface.
LArMphysOverMcalFromTuple(const std::string &name, ISvcLocator *pSvcLocator)
std::string m_store_key
key of the PhysWave collection in StoreGate
std::vector< std::string > m_root_file_names
list of input ntuple file names
~LArMphysOverMcalFromTuple()
StatusCode initialize()
implements IAlgorithm::initialize()
HWIdentifier channel_Id(int barrel_ec, int pos_neg, int feedthrough, int slot, int channel) const
create channel identifier from fields