Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
Go to the documentation of this file.
18 #include "Gaudi/Property.h"
26 using namespace AthEx;
35 ISvcLocator* pSvcLocator ) :
37 m_ntsvc(
"THistSvc/THistSvc",
name),
46 "key to the event-info instance to histogram-ize.");
61 if (!
m_ntsvc.retrieve().isSuccess()) {
63 return StatusCode::FAILURE;
67 m_hist =
new TH1F(
"h1",
"histogram title", 100,0.,100.);
68 if (!
m_ntsvc->regHist(
"/stat/simple1D/h1",
m_hist).isSuccess()) {
71 return StatusCode::FAILURE;
74 return StatusCode::SUCCESS;
81 return StatusCode::SUCCESS;
93 return StatusCode::FAILURE;
96 int event =
evt->eventNumber();
101 return StatusCode::SUCCESS;
def retrieve(aClass, aKey=None)
Hist()
Default constructor:
std::string m_evtInfoName
key to the event-info
TH1F * m_hist
pointer to our histogram
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
ServiceHandle< ITHistSvc > m_ntsvc
handle to the n-tuple svc
virtual ~Hist()
Destructor:
virtual StatusCode initialize()
virtual StatusCode execute()
virtual StatusCode finalize()
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
POOL::TEvent event(POOL::TEvent::kClassAccess)
::StatusCode StatusCode
StatusCode definition for legacy code.
Class describing the basic event information.
def TH1F(name, title, nxbins, bins_par2, bins_par3=None, path='', **kwargs)