18#include "Gaudi/Property.h"
35 ISvcLocator* pSvcLocator ) :
37 m_ntsvc(
"THistSvc/THistSvc", name),
49 "key to the event-info instance to ntuple-ize.");
63 if (!
m_ntsvc.retrieve().isSuccess()) {
65 return StatusCode::FAILURE;
69 m_ntuple =
new TTree(
"tree1",
"tree title");
73 return StatusCode::FAILURE;
81 return StatusCode::SUCCESS;
88 return StatusCode::SUCCESS;
106 return StatusCode::FAILURE;
111 m_run = evt->runNumber();
116 for (
unsigned int i=2; i <
m_size; ++i) {
127 "rundata-sz: [" <<
m_rundata.size() <<
"]");
129 return StatusCode::SUCCESS;
#define ATH_MSG_WARNING(x)
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
ServiceHandle< StoreGateSvc > & evtStore()
Ntup()
Default constructor:
virtual StatusCode execute()
std::string m_evtInfoName
key to the event-info
virtual StatusCode finalize()
TTree * m_ntuple
pointer to the n-tuple
std::vector< long > m_rundata
virtual StatusCode initialize()
virtual ~Ntup()
Destructor:
ServiceHandle< ITHistSvc > m_ntsvc
handle to the n-tuple svc
EventInfo_v1 EventInfo
Definition of the latest event info version.