27 ISvcLocator* pSvcLocator ) :
46 m_hist =
new TH1F(
"h1",
"histogram title", 100,0.,100.);
50 return StatusCode::FAILURE;
53 return StatusCode::SUCCESS;
60 return StatusCode::SUCCESS;
71 return StatusCode::FAILURE;
74 int event = evt->eventNumber();
75 ATH_MSG_INFO(
" EventInfo: r: " << event <<
" e: " << evt->eventNumber() );
78 m_hist->Fill(
float(event), 1.);
80 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
virtual ~Hist()
Destructor:
Hist()
Default constructor:
virtual StatusCode initialize()
virtual StatusCode execute()
virtual StatusCode finalize()
SG::ReadHandleKey< xAOD::EventInfo > m_evt
key to the event-info
TH1F * m_hist
pointer to our histogram
ServiceHandle< ITHistSvc > m_histSvc
handle to the histogram service