ATLAS Offline Software
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
Trk::EventPropertyNtupleTool Class Reference

#include <EventPropertyNtupleTool.h>

Inheritance diagram for Trk::EventPropertyNtupleTool:
Collaboration diagram for Trk::EventPropertyNtupleTool:

Public Member Functions

 EventPropertyNtupleTool (const std::string &, const std::string &, const IInterface *)
 
 ~EventPropertyNtupleTool ()
 
StatusCode initialize ()
 
StatusCode finalize ()
 
virtual void registerTrackCollections (std::vector< std::string >, bool)
 method not active in this tool More...
 
virtual void setTrackTreeIndices (unsigned int, int, int)
 method not active in this tool More...
 
virtual void setGenParticleTreeIndices (int, int)
 method not active in this tool More...
 
virtual StatusCode addNtupleItems (TTree *, const std::string)
 add branches to the tree Should be called once dunring the initialisation phase by the calling algorithm (usually Trk::TrackValidationNtupleWriter) More...
 
virtual StatusCode fillEventData ()
 calculate event-wide data and copy into TTree branches, but don't write the record yet. More...
 
virtual StatusCode resetVariables ()
 reset ntuple variables (mainly for vectors which need to be cleared) More...
 
virtual bool isTrackLinkTool () const
 is True if instance is Tool which links events property to Trk::Tracks More...
 
virtual bool isTrkParticleLinkTool () const
 is True if instance is Tool which links events property to Rec::TrkParticle More...
 
virtual bool isTrkParticleTrigLinkTool () const
 is True if instance is Tool which links events property to Rec::TrkParticle recieved useing TrigDecTool More...
 
virtual bool isInDetTrackTrigLinkTool () const
 is True if instance is Tool which links events property to Rec::TrkParticle recieved useing TrigDecTool More...
 
virtual bool isEvtPropertyTool () const
 is True if instance is EventPropertyTool More...
 
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & evtStore () const
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc. More...
 
virtual StatusCode sysInitialize () override
 Perform system initialization for an algorithm. More...
 
virtual StatusCode sysStart () override
 Handle START transition. More...
 
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles. More...
 
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles. More...
 
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T > &t)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc="none")
 Declare a new Gaudi property. More...
 
void updateVHKA (Gaudi::Details::PropertyBase &)
 
MsgStream & msg () const
 
MsgStream & msg (const MSG::Level lvl) const
 
bool msgLvl (const MSG::Level lvl) const
 

Static Public Member Functions

static const InterfaceID & interfaceID ()
 Interface ID, declared here, and defined below*‍/. More...
 

Protected Member Functions

void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution More...
 
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce (T &h)
 
void extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps)
 Add StoreName to extra input/output deps as needed. More...
 

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t
 

Private Member Functions

Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyArrayType &)
 specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleType &)
 specialization for handling Gaudi::Property<SG::VarHandleBase> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &t, const SG::NotHandleType &)
 specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
 

Private Attributes

bool m_doTriggerInfo
 
bool m_doTrtPhase
 
std::string m_comTimeName
 
int m_runNumber
 run number this event belongs to More...
 
int m_eventNumber
 event number More...
 
float m_tdc_phase
 event phase in cosmic events (optional) UNIT:nsec More...
 
int m_trigLvl1Type
 level 1 trigger type bitted word (2008: equivalent with stream) UNIT:8-bit More...
 
std::vector< unsigned int > * m_trigLvl1TAV
 level 1 trigger-after-veto info (256 bits in vector) UNIT:bitted More...
 
int m_lumiBlock
 lumi block number of current event More...
 
int m_timeStamp
 time stamp of current event More...
 
int m_bCID
 bunch crossing ID for current event More...
 
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default) More...
 
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default) More...
 
std::vector< SG::VarHandleKeyArray * > m_vhka
 
bool m_varHandleArraysDeclared
 

Detailed Description

Definition at line 30 of file EventPropertyNtupleTool.h.

Member Typedef Documentation

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< AlgTool > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ EventPropertyNtupleTool()

EventPropertyNtupleTool::EventPropertyNtupleTool ( const std::string &  t,
const std::string &  n,
const IInterface *  p 
)

Definition at line 28 of file EventPropertyNtupleTool.cxx.

32  :
33  AthAlgTool(t,n,p),
34  m_doTriggerInfo(true),
35  m_doTrtPhase(false),
36  m_comTimeName("TRT_Phase"),
37  m_runNumber(0),
38  m_eventNumber(0),
39  m_tdc_phase(0),
40  m_trigLvl1Type(0),
41  m_trigLvl1TAV(nullptr),
42  m_lumiBlock(0),
43  m_timeStamp(0),
44  m_bCID (0)
45 
46 {
47  declareInterface<IEventPropertyNtupleTool>(this);
48  declareProperty("FillTrtPhase",m_doTrtPhase);
49  declareProperty("FillTrigger",m_doTriggerInfo);
50 }

◆ ~EventPropertyNtupleTool()

EventPropertyNtupleTool::~EventPropertyNtupleTool ( )
default

Member Function Documentation

◆ addNtupleItems()

StatusCode EventPropertyNtupleTool::addNtupleItems ( TTree *  tree,
const std::string   
)
virtual

add branches to the tree Should be called once dunring the initialisation phase by the calling algorithm (usually Trk::TrackValidationNtupleWriter)

Implements Trk::IEventPropertyNtupleTool.

Definition at line 68 of file EventPropertyNtupleTool.cxx.

68  {
69  if (!tree) return StatusCode::FAILURE;
70  //-----------------
71  // add items
72  tree->Branch("RunNumber", &m_runNumber, "RunNumber/I");
73  tree->Branch("EventNumber", &m_eventNumber, "EventNumber/I");
74  tree->Branch("LumiBlockN", &m_lumiBlock, "LumiBlockN/I");
75  tree->Branch("TimeStamp", &m_timeStamp, "TimeStamp/I");
76  tree->Branch("BCID", &m_bCID, "BCID/I");
77  if (m_doTrtPhase) {
78  tree->Branch("TRT_Phase", &m_tdc_phase, "TRT_Phase/F");
79  }
80  if (m_doTriggerInfo) {
81  tree->Branch("Trig_LVL1StreamType", &m_trigLvl1Type,"Trig_LVL1StreamType/I");
82  tree->Branch("Trig_LVL1InfoTAV", &m_trigLvl1TAV);
83  }
84  return StatusCode::SUCCESS;
85 }

◆ declareGaudiProperty() [1/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleKeyArrayType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKeyArray>

Definition at line 170 of file AthCommonDataStore.h.

172  {
173  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
174  hndl.value(),
175  hndl.documentation());
176 
177  }

◆ declareGaudiProperty() [2/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleKeyType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKey>

Definition at line 156 of file AthCommonDataStore.h.

158  {
159  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
160  hndl.value(),
161  hndl.documentation());
162 
163  }

◆ declareGaudiProperty() [3/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleBase>

Definition at line 184 of file AthCommonDataStore.h.

186  {
187  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
188  hndl.value(),
189  hndl.documentation());
190  }

◆ declareGaudiProperty() [4/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  t,
const SG::NotHandleType  
)
inlineprivateinherited

specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray>

Definition at line 199 of file AthCommonDataStore.h.

200  {
201  return PBASE::declareProperty(t);
202  }

◆ declareProperty() [1/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
SG::VarHandleBase hndl,
const std::string &  doc,
const SG::VarHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation string for the property.

This is the version for types that derive from SG::VarHandleBase. The property value object is put on the input and output lists as appropriate; then we forward to the base class.

Definition at line 245 of file AthCommonDataStore.h.

249  {
250  this->declare(hndl.vhKey());
251  hndl.vhKey().setOwner(this);
252 
253  return PBASE::declareProperty(name,hndl,doc);
254  }

◆ declareProperty() [2/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
SG::VarHandleKey hndl,
const std::string &  doc,
const SG::VarHandleKeyType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation string for the property.

This is the version for types that derive from SG::VarHandleKey. The property value object is put on the input and output lists as appropriate; then we forward to the base class.

Definition at line 221 of file AthCommonDataStore.h.

225  {
226  this->declare(hndl);
227  hndl.setOwner(this);
228 
229  return PBASE::declareProperty(name,hndl,doc);
230  }

◆ declareProperty() [3/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
SG::VarHandleKeyArray hndArr,
const std::string &  doc,
const SG::VarHandleKeyArrayType  
)
inlineinherited

Definition at line 259 of file AthCommonDataStore.h.

263  {
264 
265  // std::ostringstream ost;
266  // ost << Algorithm::name() << " VHKA declareProp: " << name
267  // << " size: " << hndArr.keys().size()
268  // << " mode: " << hndArr.mode()
269  // << " vhka size: " << m_vhka.size()
270  // << "\n";
271  // debug() << ost.str() << endmsg;
272 
273  hndArr.setOwner(this);
274  m_vhka.push_back(&hndArr);
275 
276  Gaudi::Details::PropertyBase* p = PBASE::declareProperty(name, hndArr, doc);
277  if (p != 0) {
278  p->declareUpdateHandler(&AthCommonDataStore<PBASE>::updateVHKA, this);
279  } else {
280  ATH_MSG_ERROR("unable to call declareProperty on VarHandleKeyArray "
281  << name);
282  }
283 
284  return p;
285 
286  }

◆ declareProperty() [4/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc,
const SG::NotHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation string for the property.

This is the generic version, for types that do not derive from SG::VarHandleKey. It just forwards to the base class version of declareProperty.

Definition at line 333 of file AthCommonDataStore.h.

337  {
338  return PBASE::declareProperty(name, property, doc);
339  }

◆ declareProperty() [5/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc = "none" 
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation string for the property.

This dispatches to either the generic declareProperty or the one for VarHandle/Key/KeyArray.

Definition at line 352 of file AthCommonDataStore.h.

355  {
356  typedef typename SG::HandleClassifier<T>::type htype;
357  return declareProperty (name, property, doc, htype());
358  }

◆ declareProperty() [6/6]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( Gaudi::Property< T > &  t)
inlineinherited

Definition at line 145 of file AthCommonDataStore.h.

145  {
146  typedef typename SG::HandleClassifier<T>::type htype;
148  }

◆ detStore()

const ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< AlgTool > >::detStore ( ) const
inlineinherited

The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 95 of file AthCommonDataStore.h.

95 { return m_detStore; }

◆ evtStore() [1/2]

ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< AlgTool > >::evtStore ( )
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 85 of file AthCommonDataStore.h.

85 { return m_evtStore; }

◆ evtStore() [2/2]

const ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< AlgTool > >::evtStore ( ) const
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 90 of file AthCommonDataStore.h.

90 { return m_evtStore; }

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::extraDeps_update_handler ( Gaudi::Details::PropertyBase &  ExtraDeps)
protectedinherited

Add StoreName to extra input/output deps as needed.

use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given

◆ fillEventData()

StatusCode EventPropertyNtupleTool::fillEventData ( )
virtual

calculate event-wide data and copy into TTree branches, but don't write the record yet.

Implements Trk::IEventPropertyNtupleTool.

Definition at line 87 of file EventPropertyNtupleTool.cxx.

87  {
88  const EventInfo* eventInfo;
89  if ((evtStore()->retrieve(eventInfo)).isFailure()) {
90  msg(MSG::WARNING) << "Could not retrieve event info" << endmsg;
91  m_runNumber = -999;
92  m_eventNumber = -999;
93  m_timeStamp = -999;
94  m_lumiBlock = -999;
95  m_bCID = -999;
96  return StatusCode::SUCCESS;
97  } else {
98  const EventID* myEventID=eventInfo->event_ID();
99  m_runNumber = myEventID->run_number();
100  m_eventNumber = myEventID->event_number();
101  m_timeStamp = myEventID->time_stamp() ;
102  m_lumiBlock = myEventID->lumi_block() ;
103  m_bCID = myEventID->bunch_crossing_id() ;
104  }
105 
106  if (m_doTrtPhase) {
107  const ComTime* comtime=nullptr;
108 
109  if (evtStore()->contains<ComTime>(m_comTimeName)) {
110  StatusCode sc = evtStore()->retrieve(comtime,m_comTimeName);
111  if (sc.isFailure() || !comtime) {
112  ATH_MSG_WARNING ("Could not find the ComTime object with name "<< m_comTimeName);
113  } else {
114  m_tdc_phase = comtime->getTime();
115  }
116  } else {
117  ATH_MSG_WARNING ("Could not find the ComTime object with name "<< m_comTimeName);
118  return StatusCode::FAILURE;
119  }
120  }
121 
122  if (m_doTriggerInfo) {
123  const TriggerInfo* myTriggerInfo=eventInfo->trigger_info();
124  if (myTriggerInfo!=nullptr) {
125  m_trigLvl1Type = myTriggerInfo->level1TriggerType();
126  std::vector<unsigned int> l1trigger = myTriggerInfo->level1TriggerInfo();
127  if (l1trigger.size() == 24) { // size is 0 if trigger not simulated.
128  m_trigLvl1TAV->resize(8);
129  for (int i=0; i<8; ++i) {
130  m_trigLvl1TAV->at(i) = l1trigger.at(i+16);
131  }
132  }
133  } else m_trigLvl1Type = -1000;
134  }
135 
136  return StatusCode::SUCCESS;
137 
138  // remember calling algo is the one to record the content on the tree.
139 }

◆ finalize()

StatusCode EventPropertyNtupleTool::finalize ( )

Definition at line 61 of file EventPropertyNtupleTool.cxx.

61  {
62  delete m_trigLvl1TAV;
63  ATH_MSG_DEBUG ("finalize successfull in "<<name());
64  return StatusCode::SUCCESS;
65 }

◆ initialize()

StatusCode EventPropertyNtupleTool::initialize ( )

Definition at line 55 of file EventPropertyNtupleTool.cxx.

55  {
56  m_trigLvl1TAV = new std::vector<unsigned int>();
57  ATH_MSG_DEBUG ("initialise successful in "<<name());
58  return AthAlgTool::initialize();
59 }

◆ inputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< AlgTool > >::inputHandles ( ) const
overridevirtualinherited

Return this algorithm's input handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ interfaceID()

const InterfaceID & Trk::IEventPropertyNtupleTool::interfaceID ( )
inlinestaticinherited

Interface ID, declared here, and defined below*‍/.

Definition at line 77 of file IEventPropertyNtupleTool.h.

77  {
78  return IID_IEventPropertyNtupleTool;
79 }

◆ isEvtPropertyTool()

bool EventPropertyNtupleTool::isEvtPropertyTool ( ) const
inlinevirtual

is True if instance is EventPropertyTool

Implements Trk::IEventPropertyNtupleTool.

Definition at line 103 of file EventPropertyNtupleTool.h.

103 { return true; }

◆ isInDetTrackTrigLinkTool()

bool EventPropertyNtupleTool::isInDetTrackTrigLinkTool ( ) const
inlinevirtual

is True if instance is Tool which links events property to Rec::TrkParticle recieved useing TrigDecTool

Implements Trk::IEventPropertyNtupleTool.

Definition at line 101 of file EventPropertyNtupleTool.h.

101 { return false; }

◆ isTrackLinkTool()

bool EventPropertyNtupleTool::isTrackLinkTool ( ) const
inlinevirtual

is True if instance is Tool which links events property to Trk::Tracks

Implements Trk::IEventPropertyNtupleTool.

Definition at line 95 of file EventPropertyNtupleTool.h.

95 { return false; }

◆ isTrkParticleLinkTool()

bool EventPropertyNtupleTool::isTrkParticleLinkTool ( ) const
inlinevirtual

is True if instance is Tool which links events property to Rec::TrkParticle

Implements Trk::IEventPropertyNtupleTool.

Definition at line 97 of file EventPropertyNtupleTool.h.

97 { return false; }

◆ isTrkParticleTrigLinkTool()

bool EventPropertyNtupleTool::isTrkParticleTrigLinkTool ( ) const
inlinevirtual

is True if instance is Tool which links events property to Rec::TrkParticle recieved useing TrigDecTool

Implements Trk::IEventPropertyNtupleTool.

Definition at line 99 of file EventPropertyNtupleTool.h.

99 { return false; }

◆ msg() [1/2]

MsgStream& AthCommonMsg< AlgTool >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

24  {
25  return this->msgStream();
26  }

◆ msg() [2/2]

MsgStream& AthCommonMsg< AlgTool >::msg ( const MSG::Level  lvl) const
inlineinherited

Definition at line 27 of file AthCommonMsg.h.

27  {
28  return this->msgStream(lvl);
29  }

◆ msgLvl()

bool AthCommonMsg< AlgTool >::msgLvl ( const MSG::Level  lvl) const
inlineinherited

Definition at line 30 of file AthCommonMsg.h.

30  {
31  return this->msgLevel(lvl);
32  }

◆ outputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< AlgTool > >::outputHandles ( ) const
overridevirtualinherited

Return this algorithm's output handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ registerTrackCollections()

void EventPropertyNtupleTool::registerTrackCollections ( std::vector< std::string >  ,
bool   
)
inlinevirtual

method not active in this tool

Implements Trk::IEventPropertyNtupleTool.

Definition at line 88 of file EventPropertyNtupleTool.h.

89 { }

◆ renounce()

std::enable_if_t<std::is_void_v<std::result_of_t<decltype(&T::renounce)(T)> > && !std::is_base_of_v<SG::VarHandleKeyArray, T> && std::is_base_of_v<Gaudi::DataHandle, T>, void> AthCommonDataStore< AthCommonMsg< AlgTool > >::renounce ( T &  h)
inlineprotectedinherited

Definition at line 380 of file AthCommonDataStore.h.

381  {
382  h.renounce();
383  PBASE::renounce (h);
384  }

◆ renounceArray()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::renounceArray ( SG::VarHandleKeyArray handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364  {
365  handlesArray.renounce();
366  }

◆ resetVariables()

StatusCode EventPropertyNtupleTool::resetVariables ( )
virtual

reset ntuple variables (mainly for vectors which need to be cleared)

Implements Trk::IEventPropertyNtupleTool.

Definition at line 141 of file EventPropertyNtupleTool.cxx.

141  {
142  m_eventNumber = 0;
143  m_runNumber = 0;
144  m_tdc_phase = 0.0;
145  m_lumiBlock = 0;
146  m_tdc_phase = 0;
147  m_bCID = 0;
148  if (m_doTriggerInfo) {
149  m_trigLvl1Type = 0;
150  m_trigLvl1TAV->clear();
151  }
152  return StatusCode::SUCCESS;
153 }

◆ setGenParticleTreeIndices()

void EventPropertyNtupleTool::setGenParticleTreeIndices ( int  ,
int   
)
inlinevirtual

method not active in this tool

Implements Trk::IEventPropertyNtupleTool.

Definition at line 93 of file EventPropertyNtupleTool.h.

93 { }

◆ setTrackTreeIndices()

void EventPropertyNtupleTool::setTrackTreeIndices ( unsigned int  ,
int  ,
int   
)
inlinevirtual

method not active in this tool

Implements Trk::IEventPropertyNtupleTool.

Definition at line 91 of file EventPropertyNtupleTool.h.

91 { }

◆ sysInitialize()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysInitialize ( )
overridevirtualinherited

Perform system initialization for an algorithm.

We override this to declare all the elements of handle key arrays at the end of initialization. See comments on updateVHKA.

Reimplemented in DerivationFramework::CfAthAlgTool, AthCheckedComponent< AthAlgTool >, AthCheckedComponent<::AthAlgTool >, and asg::AsgMetadataTool.

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysStart ( )
overridevirtualinherited

Handle START transition.

We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.

◆ updateVHKA()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::updateVHKA ( Gaudi::Details::PropertyBase &  )
inlineinherited

Definition at line 308 of file AthCommonDataStore.h.

308  {
309  // debug() << "updateVHKA for property " << p.name() << " " << p.toString()
310  // << " size: " << m_vhka.size() << endmsg;
311  for (auto &a : m_vhka) {
312  std::vector<SG::VarHandleKey*> keys = a->keys();
313  for (auto k : keys) {
314  k->setOwner(this);
315  }
316  }
317  }

Member Data Documentation

◆ m_bCID

int Trk::EventPropertyNtupleTool::m_bCID
private

bunch crossing ID for current event

Definition at line 84 of file EventPropertyNtupleTool.h.

◆ m_comTimeName

std::string Trk::EventPropertyNtupleTool::m_comTimeName
private

Definition at line 72 of file EventPropertyNtupleTool.h.

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_doTriggerInfo

bool Trk::EventPropertyNtupleTool::m_doTriggerInfo
private

Definition at line 70 of file EventPropertyNtupleTool.h.

◆ m_doTrtPhase

bool Trk::EventPropertyNtupleTool::m_doTrtPhase
private

Definition at line 71 of file EventPropertyNtupleTool.h.

◆ m_eventNumber

int Trk::EventPropertyNtupleTool::m_eventNumber
private

event number

Definition at line 76 of file EventPropertyNtupleTool.h.

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_lumiBlock

int Trk::EventPropertyNtupleTool::m_lumiBlock
private

lumi block number of current event

Definition at line 82 of file EventPropertyNtupleTool.h.

◆ m_runNumber

int Trk::EventPropertyNtupleTool::m_runNumber
private

run number this event belongs to

Definition at line 75 of file EventPropertyNtupleTool.h.

◆ m_tdc_phase

float Trk::EventPropertyNtupleTool::m_tdc_phase
private

event phase in cosmic events (optional) UNIT:nsec

Definition at line 77 of file EventPropertyNtupleTool.h.

◆ m_timeStamp

int Trk::EventPropertyNtupleTool::m_timeStamp
private

time stamp of current event

Definition at line 83 of file EventPropertyNtupleTool.h.

◆ m_trigLvl1TAV

std::vector<unsigned int>* Trk::EventPropertyNtupleTool::m_trigLvl1TAV
private

level 1 trigger-after-veto info (256 bits in vector) UNIT:bitted

Definition at line 81 of file EventPropertyNtupleTool.h.

◆ m_trigLvl1Type

int Trk::EventPropertyNtupleTool::m_trigLvl1Type
private

level 1 trigger type bitted word (2008: equivalent with stream) UNIT:8-bit

Definition at line 80 of file EventPropertyNtupleTool.h.

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< AlgTool > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

std::vector<SG::VarHandleKeyArray*> AthCommonDataStore< AthCommonMsg< AlgTool > >::m_vhka
privateinherited

Definition at line 398 of file AthCommonDataStore.h.


The documentation for this class was generated from the following files:
python.PyKernel.retrieve
def retrieve(aClass, aKey=None)
Definition: PyKernel.py:110
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
Trk::EventPropertyNtupleTool::m_trigLvl1TAV
std::vector< unsigned int > * m_trigLvl1TAV
level 1 trigger-after-veto info (256 bits in vector) UNIT:bitted
Definition: EventPropertyNtupleTool.h:81
ComTime::getTime
double getTime() const
Definition: ComTime.h:44
AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
initialize
void initialize()
Definition: run_EoverP.cxx:894
tree
TChain * tree
Definition: tile_monitor.h:30
Trk::EventPropertyNtupleTool::m_runNumber
int m_runNumber
run number this event belongs to
Definition: EventPropertyNtupleTool.h:75
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
ComTime
Definition: ComTime.h:17
Trk::EventPropertyNtupleTool::m_doTriggerInfo
bool m_doTriggerInfo
Definition: EventPropertyNtupleTool.h:70
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
Trk::EventPropertyNtupleTool::m_timeStamp
int m_timeStamp
time stamp of current event
Definition: EventPropertyNtupleTool.h:83
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
TriggerInfo::level1TriggerInfo
const std::vector< number_type > & level1TriggerInfo() const
get level1 trigger info
Definition: TriggerInfo.cxx:143
Trk::EventPropertyNtupleTool::m_eventNumber
int m_eventNumber
event number
Definition: EventPropertyNtupleTool.h:76
AthCommonDataStore< AthCommonMsg< AlgTool > >::evtStore
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
Definition: AthCommonDataStore.h:85
Trk::EventPropertyNtupleTool::m_lumiBlock
int m_lumiBlock
lumi block number of current event
Definition: EventPropertyNtupleTool.h:82
AthCommonDataStore
Definition: AthCommonDataStore.h:52
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
lumiFormat.i
int i
Definition: lumiFormat.py:92
beamspotman.n
n
Definition: beamspotman.py:731
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
Trk::EventPropertyNtupleTool::m_trigLvl1Type
int m_trigLvl1Type
level 1 trigger type bitted word (2008: equivalent with stream) UNIT:8-bit
Definition: EventPropertyNtupleTool.h:80
Trk::EventPropertyNtupleTool::m_comTimeName
std::string m_comTimeName
Definition: EventPropertyNtupleTool.h:72
EventInfo::event_ID
EventID * event_ID()
the unique identification of the event.
Definition: EventInfo/EventInfo/EventInfo.h:210
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
TriggerInfo::level1TriggerType
number_type level1TriggerType() const
get level1 trigger type
Definition: TriggerInfo.cxx:138
AthAlgTool::AthAlgTool
AthAlgTool()
Default constructor:
Trk::EventPropertyNtupleTool::m_tdc_phase
float m_tdc_phase
event phase in cosmic events (optional) UNIT:nsec
Definition: EventPropertyNtupleTool.h:77
SG::VarHandleKeyArray::renounce
virtual void renounce()=0
SG::HandleClassifier::type
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Definition: HandleClassifier.h:54
TriggerInfo
This class contains trigger related information.
Definition: TriggerInfo.h:77
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
EventInfo
This class provides general information about an event. Event information is provided by the accessor...
Definition: EventInfo/EventInfo/EventInfo.h:42
a
TList * a
Definition: liststreamerinfos.cxx:10
h
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
EventInfo::trigger_info
TriggerInfo * trigger_info()
trigger information (ptr may be NULL)
Definition: EventInfo/EventInfo/EventInfo.h:230
Trk::EventPropertyNtupleTool::m_bCID
int m_bCID
bunch crossing ID for current event
Definition: EventPropertyNtupleTool.h:84
AthCommonMsg< AlgTool >::msg
MsgStream & msg() const
Definition: AthCommonMsg.h:24
EventID
This class provides a unique identification for each event, in terms of run/event number and/or a tim...
Definition: EventID.h:35
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:616
declareProperty
#define declareProperty(n, p, h)
Definition: BaseFakeBkgTool.cxx:15
Trk::EventPropertyNtupleTool::m_doTrtPhase
bool m_doTrtPhase
Definition: EventPropertyNtupleTool.h:71
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:790
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
fitman.k
k
Definition: fitman.py:528