ATLAS Offline Software
Classes | Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
MbtsHypoTool Class Reference

#include <MbtsHypoTool.h>

Inheritance diagram for MbtsHypoTool:
Collaboration diagram for MbtsHypoTool:

Classes

struct  Counts
 
struct  MbtsHypoInfo
 

Public Member Functions

 MbtsHypoTool (const std::string &type, const std::string &name, const IInterface *parent)
 
virtual StatusCode initialize () override
 
StatusCode decide (MbtsHypoInfo &decisions) const
 
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
 

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

bool applyCut (const Gaudi::Property< int > &threshold, const xAOD::TrigComposite *composit) const
 
Counts calculateMultiplicities (const xAOD::TrigT2MbtsBits *t2mbtsBits) const
 
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

HLT::Identifier m_decisionId
 
Gaudi::Property< bool > m_acceptAll {this, "AcceptAll", false, "Accept all events"}
 
Gaudi::Property< unsigned int > m_mbtsCounters {this, "MbtsCounters", 2, "The number of MBTS counters required to be above threshold"}
 
Gaudi::Property< bool > m_coincidence {this, "Coincidence", false, "A flag to control if this is a coincidence requirement or not"}
 
Gaudi::Property< bool > m_or {this, "Or", false, "Flag extending above choice to do Or between the two sides of MBTS"}
 
Gaudi::Property< bool > m_veto {this, "Veto", false, "Flag to select lower than threshold multiplicities"}
 
Gaudi::Property< int > m_mbtsmode {this, "MBTSMode", 0, "Flag to count multiplicities only on inner or outer MBTS modules (1, inner, 2 outer, 0 all) "}
 
Gaudi::Property< float > m_threshold {this, "Threshold", 40.0 / 222.0, "Energy threshold in pC"}
 
Gaudi::Property< float > m_timeCut {this, "TimeCut", -1.0, "A time cut in ns. Values <= 0 disable the time cut"}
 
Gaudi::Property< float > m_globalTimeOffset {this, "GlobalTimeOffset", 0, "A global time offset in ns about which the time window cuts"}
 
Gaudi::Property< std::vector< float > > m_timeOffsets {this, "TimeOffset", std::vector<float>(32), "Offsets with respect to the global offset of all counters. (A0-15 then C0-C15) "}
 
ToolHandle< GenericMonitoringToolm_monTool {this, "MonTool", "", "Monitoring tool"}
 
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 14 of file MbtsHypoTool.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

◆ MbtsHypoTool()

MbtsHypoTool::MbtsHypoTool ( const std::string &  type,
const std::string &  name,
const IInterface *  parent 
)

Definition at line 12 of file MbtsHypoTool.cxx.

Member Function Documentation

◆ applyCut()

bool MbtsHypoTool::applyCut ( const Gaudi::Property< int > &  threshold,
const xAOD::TrigComposite composit 
) const
private

◆ calculateMultiplicities()

MbtsHypoTool::Counts MbtsHypoTool::calculateMultiplicities ( const xAOD::TrigT2MbtsBits t2mbtsBits) const
private

Definition at line 93 of file MbtsHypoTool.cxx.

94 {
95 
96  if (!t2mbtsBits)
97  {
98  return {0, 0};
99  }
100 
101  ATH_MSG_DEBUG("Getting energy and time values.");
102 
103  std::vector<float> triggerEnergies = t2mbtsBits->triggerEnergies();
104  std::vector<float> triggerTimes = t2mbtsBits->triggerTimes();
105 
106  if (triggerEnergies.size() != xAOD::TrigT2MbtsBits::NUM_MBTS || triggerTimes.size() != xAOD::TrigT2MbtsBits::NUM_MBTS)
107  {
108  ATH_MSG_WARNING("Vector sizes are not equal to number of MBTS counters.");
109  return {0, 0};
110  }
111 
112  ATH_MSG_DEBUG("Forming hit multiplicities.");
113 
114  std::bitset<16> ebaTriggerBits;
115  std::bitset<16> ebcTriggerBits;
116 
117 
118  unsigned ibit;
119  int ebaCounters = 0, ebcCounters = 0;
120 
121  // Initialize monitoring variables.
122  double timeDiff_A_C = 0.;
123  double timeMean_A = 0.;
124  double timeMean_C = 0.;
125 
126  // Loop over each counter and form bit sets from time and energy (optional).
127  for (ibit = 0; ibit < xAOD::TrigT2MbtsBits::NUM_MBTS; ibit++)
128  {
129  if (m_mbtsmode == 1 && !(ibit < 8 || (ibit >= 16 && ibit < 24)))
130  continue; // count only inner
131  if (m_mbtsmode == 2 && !((ibit >= 8 && ibit < 16) || (ibit >= 24 && ibit < 32)))
132  continue; // count only outer
133 
134  // Check the energy threshold.
135  if (triggerEnergies[ibit] <= m_threshold)
136  continue;
137 
138  // Calculate the mean time for this side;
139  if (ibit < 16)
140  {
141  timeMean_A += triggerTimes[ibit];
142  ebaCounters++;
143  }
144  else
145  {
146  timeMean_C += triggerTimes[ibit];
147  ebcCounters++;
148  }
149 
150  // Check the time cut if it is active.
151  if (m_timeCut >= 0 && std::abs(triggerTimes[ibit] - m_timeOffsets[ibit] - m_globalTimeOffset) >= m_timeCut)
152  continue;
153 
154  // Set the bits for this side;
155  if (ibit < 16)
156  {
157  ebaTriggerBits.set(ibit);
158  }
159  else
160  {
161  ebcTriggerBits.set(ibit - 16);
162  }
163  }
164 
165  if (ebaCounters > 0)
166  {
167  timeMean_A /= ebaCounters;
168  }
169  else
170  {
171  timeMean_A = -999.0;
172  }
173 
174  if (ebcCounters > 0)
175  {
176  timeMean_C /= ebcCounters;
177  }
178  else
179  {
180  timeMean_C = -999.0;
181  }
182 
183  if (ebaCounters > 0 && ebcCounters > 0)
184  {
185  timeDiff_A_C = timeMean_A - timeMean_C;
186  }
187  else
188  {
189  timeDiff_A_C = -999.0;
190  }
191  ATH_MSG_DEBUG("average MBTS trigger time"
192  << " side A: " << timeMean_A
193  << ", side C: " << timeMean_C
194  << ", difference A-C: " << timeDiff_A_C);
195 
196  ATH_MSG_DEBUG("MBTS EBA trigger bits: " << ebaTriggerBits);
197  ATH_MSG_DEBUG("MBTS EBC trigger bits: " << ebcTriggerBits);
198  if ( ! m_monTool.empty() ) {
199  std::vector<int> counts;
200  counts.reserve(ebaTriggerBits.size() + ebcTriggerBits.size());
201 
202  for ( size_t bit = 0; bit < ebaTriggerBits.size(); ++bit )
203  counts.push_back( ebaTriggerBits[bit] ? bit : -1 );
204  for ( size_t bit = 0; bit < ebcTriggerBits.size(); ++bit )
205  counts.push_back( ebcTriggerBits[bit] ? bit+ebaTriggerBits.size() : -1 );
206  auto mon_counts = Monitored::Collection("Counts", counts);
207  Monitored::Group(m_monTool, mon_counts);
208  }
209  return {ebaTriggerBits.count(), ebcTriggerBits.count()};
210 }

◆ decide()

StatusCode MbtsHypoTool::decide ( MbtsHypoInfo decisions) const

Definition at line 22 of file MbtsHypoTool.cxx.

23 {
24  ATH_MSG_DEBUG("Executing this T2MbtsHypo " << name());
25 
26  if (info.previousDecisionIDs.count(m_decisionId.numeric()) == 0)
27  {
28  ATH_MSG_DEBUG("Already rejected");
29  return StatusCode::SUCCESS;
30  }
31 
32  // Calculate MBTS counter multiplicities after energy and an optional time cut.
33  Counts counts = calculateMultiplicities(info.mbtsBits);
34  if (counts.sideA == 0 && counts.sideC == 0)
35  {
36  ATH_MSG_DEBUG("calculateMultiplicities failed, no multiplicities");
37  return StatusCode::SUCCESS;
38  }
39  bool pass = m_acceptAll;
40  if (m_coincidence)
41  { // Coincidence logic
42  if (!m_veto)
43  {
44  if (counts.sideA >= m_mbtsCounters && counts.sideC >= m_mbtsCounters)
45  pass = true;
46  }
47  else
48  {
49  if (counts.sideA < m_mbtsCounters && counts.sideC < m_mbtsCounters)
50  pass = true;
51  }
52  }
53  else
54  {
55  if (m_or)
56  { // Or logic
57  if (!m_veto)
58  {
59  if ((counts.sideA >= m_mbtsCounters || counts.sideC >= m_mbtsCounters))
60  pass = true;
61  }
62  else
63  {
64  if ((counts.sideA < m_mbtsCounters || counts.sideC < m_mbtsCounters))
65  pass = true;
66  }
67  }
68  else
69  { // Sum logic
70  if (!m_veto)
71  {
72  if ((counts.sideA + counts.sideC) >= m_mbtsCounters)
73  pass = true;
74  }
75  else
76  {
77  if ((counts.sideA + counts.sideC) < m_mbtsCounters)
78  pass = true;
79  }
80  }
81  }
82 
83  ATH_MSG_DEBUG("REGTEST: event " << (pass ? "accepted" : "failed") << " with EBA(" << counts.sideA << ") + EBC(" << counts.sideC << ") hits above threshold.");
84 
85  if (pass)
86  {
88  ATH_MSG_DEBUG("REGTEST event accepted");
89  }
90  return StatusCode::SUCCESS;
91 }

◆ 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

◆ initialize()

StatusCode MbtsHypoTool::initialize ( )
overridevirtual

Definition at line 16 of file MbtsHypoTool.cxx.

17 {
18  if (! m_monTool.empty() ) ATH_CHECK( m_monTool.retrieve() );
19  return StatusCode::SUCCESS;
20 }

◆ 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.

◆ 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.

◆ 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  }

◆ 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_acceptAll

Gaudi::Property<bool> MbtsHypoTool::m_acceptAll {this, "AcceptAll", false, "Accept all events"}
private

Definition at line 35 of file MbtsHypoTool.h.

◆ m_coincidence

Gaudi::Property<bool> MbtsHypoTool::m_coincidence {this, "Coincidence", false, "A flag to control if this is a coincidence requirement or not"}
private

Definition at line 39 of file MbtsHypoTool.h.

◆ m_decisionId

HLT::Identifier MbtsHypoTool::m_decisionId
private

Definition at line 34 of file MbtsHypoTool.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_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_globalTimeOffset

Gaudi::Property<float> MbtsHypoTool::m_globalTimeOffset {this, "GlobalTimeOffset", 0, "A global time offset in ns about which the time window cuts"}
private

Definition at line 51 of file MbtsHypoTool.h.

◆ m_mbtsCounters

Gaudi::Property<unsigned int> MbtsHypoTool::m_mbtsCounters {this, "MbtsCounters", 2, "The number of MBTS counters required to be above threshold"}
private

Definition at line 37 of file MbtsHypoTool.h.

◆ m_mbtsmode

Gaudi::Property<int> MbtsHypoTool::m_mbtsmode {this, "MBTSMode", 0, "Flag to count multiplicities only on inner or outer MBTS modules (1, inner, 2 outer, 0 all) "}
private

Definition at line 45 of file MbtsHypoTool.h.

◆ m_monTool

ToolHandle<GenericMonitoringTool> MbtsHypoTool::m_monTool {this, "MonTool", "", "Monitoring tool"}
private

Definition at line 55 of file MbtsHypoTool.h.

◆ m_or

Gaudi::Property<bool> MbtsHypoTool::m_or {this, "Or", false, "Flag extending above choice to do Or between the two sides of MBTS"}
private

Definition at line 41 of file MbtsHypoTool.h.

◆ m_threshold

Gaudi::Property<float> MbtsHypoTool::m_threshold {this, "Threshold", 40.0 / 222.0, "Energy threshold in pC"}
private

Definition at line 47 of file MbtsHypoTool.h.

◆ m_timeCut

Gaudi::Property<float> MbtsHypoTool::m_timeCut {this, "TimeCut", -1.0, "A time cut in ns. Values <= 0 disable the time cut"}
private

Definition at line 49 of file MbtsHypoTool.h.

◆ m_timeOffsets

Gaudi::Property<std::vector<float> > MbtsHypoTool::m_timeOffsets {this, "TimeOffset", std::vector<float>(32), "Offsets with respect to the global offset of all counters. (A0-15 then C0-C15) "}
private

Definition at line 53 of file MbtsHypoTool.h.

◆ m_varHandleArraysDeclared

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

Definition at line 399 of file AthCommonDataStore.h.

◆ m_veto

Gaudi::Property<bool> MbtsHypoTool::m_veto {this, "Veto", false, "Flag to select lower than threshold multiplicities"}
private

Definition at line 43 of file MbtsHypoTool.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:
grepfile.info
info
Definition: grepfile.py:38
TrigDefs::Group
Group
Properties of a chain group.
Definition: GroupProperties.h:13
MbtsHypoTool::m_mbtsCounters
Gaudi::Property< unsigned int > m_mbtsCounters
Definition: MbtsHypoTool.h:37
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
MbtsHypoTool::m_monTool
ToolHandle< GenericMonitoringTool > m_monTool
Definition: MbtsHypoTool.h:55
HLT::Identifier::numeric
TrigCompositeUtils::DecisionID numeric() const
numeric ID
Definition: TrigCompositeUtils/TrigCompositeUtils/HLTIdentifier.h:47
AthCommonDataStore::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
TrigCompositeUtils::addDecisionID
void addDecisionID(DecisionID id, Decision *d)
Appends the decision (given as ID) to the decision object.
Definition: TrigCompositeUtilsRoot.cxx:61
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
MbtsHypoTool::m_timeOffsets
Gaudi::Property< std::vector< float > > m_timeOffsets
Definition: MbtsHypoTool.h:53
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
MbtsHypoTool::m_or
Gaudi::Property< bool > m_or
Definition: MbtsHypoTool.h:41
Monitored::Collection
ValuesCollection< T > Collection(std::string name, const T &collection)
Declare a monitored (double-convertible) collection.
Definition: MonitoredCollection.h:38
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
HLT::Identifier::fromToolName
static HLT::Identifier fromToolName(const std::string &tname)
Definition: HLTIdentifier.cxx:31
MbtsHypoTool::m_timeCut
Gaudi::Property< float > m_timeCut
Definition: MbtsHypoTool.h:49
AthCommonDataStore
Definition: AthCommonDataStore.h:52
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
test_pyathena.parent
parent
Definition: test_pyathena.py:15
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
AthAlgTool::AthAlgTool
AthAlgTool()
Default constructor:
MbtsHypoTool::m_decisionId
HLT::Identifier m_decisionId
Definition: MbtsHypoTool.h:34
SG::VarHandleKeyArray::renounce
virtual void renounce()=0
xAOD::TrigT2MbtsBits_v1::NUM_MBTS
static const unsigned int NUM_MBTS
Prints out data members to MsgStream.
Definition: TrigT2MbtsBits_v1.h:39
SG::HandleClassifier::type
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Definition: HandleClassifier.h:54
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
MbtsHypoTool::calculateMultiplicities
Counts calculateMultiplicities(const xAOD::TrigT2MbtsBits *t2mbtsBits) const
Definition: MbtsHypoTool.cxx:93
MbtsHypoTool::m_acceptAll
Gaudi::Property< bool > m_acceptAll
Definition: MbtsHypoTool.h:35
MbtsHypoTool::m_veto
Gaudi::Property< bool > m_veto
Definition: MbtsHypoTool.h:43
a
TList * a
Definition: liststreamerinfos.cxx:10
MbtsHypoTool::m_coincidence
Gaudi::Property< bool > m_coincidence
Definition: MbtsHypoTool.h:39
h
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
MbtsHypoTool::m_globalTimeOffset
Gaudi::Property< float > m_globalTimeOffset
Definition: MbtsHypoTool.h:51
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
MbtsHypoTool::m_threshold
Gaudi::Property< float > m_threshold
Definition: MbtsHypoTool.h:47
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:790
xAOD::TrigT2MbtsBits_v1::triggerTimes
const std::vector< float > & triggerTimes() const
Return the relative times of the triggers.
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
MbtsHypoTool::m_mbtsmode
Gaudi::Property< int > m_mbtsmode
Definition: MbtsHypoTool.h:45
xAOD::TrigT2MbtsBits_v1::triggerEnergies
const std::vector< float > & triggerEnergies() const
Return the trigger energies of each counter.
fitman.k
k
Definition: fitman.py:528