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

#include <TrigMuonEFTrackIsolationHypoTool.h>

Inheritance diagram for TrigMuonEFTrackIsolationHypoTool:
Collaboration diagram for TrigMuonEFTrackIsolationHypoTool:

Classes

struct  EFIsolationMuonInfo
 

Public Member Functions

 TrigMuonEFTrackIsolationHypoTool (const std::string &type, const std::string &name, const IInterface *parent)
 
virtual ~TrigMuonEFTrackIsolationHypoTool ()
 
virtual StatusCode initialize () override
 
virtual StatusCode decide (std::vector< TrigMuonEFTrackIsolationHypoTool::EFIsolationMuonInfo > &toolInput) 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

enum  { MaxNumberTools = 20 }
 
typedef ServiceHandle< StoreGateSvcStoreGateSvc_t
 

Private Member Functions

bool decideOnSingleObject (TrigMuonEFTrackIsolationHypoTool::EFIsolationMuonInfo &input, size_t cutIndex) const
 
StatusCode inclusiveSelection (std::vector< TrigMuonEFTrackIsolationHypoTool::EFIsolationMuonInfo > &toolInput) 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", true, "Ignore selection"}
 
Gaudi::Property< float > m_ptcone02_cut { this, "PtCone02Cut", -1.0, "cut on the pt cone 0.2 variable"}
 
Gaudi::Property< float > m_ptcone03_cut { this, "PtCone03Cut", -1.0, "cut on the pt cone 0.3 variable"}
 
Gaudi::Property< bool > m_abscut { this, "DoAbsCut", true, "cut on absolute or sumpt/pt?"}
 
Gaudi::Property< bool > m_useVarIso { this, "useVarIso", false, "use offline or online isolation variables?"}
 
Gaudi::Property< bool > m_requireCombined { this, "RequireCombinedMuon", true, "only consider combined muons for isolation?"}
 
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 20 of file TrigMuonEFTrackIsolationHypoTool.h.

Member Typedef Documentation

◆ StoreGateSvc_t

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

Definition at line 388 of file AthCommonDataStore.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private
Enumerator
MaxNumberTools 

Definition at line 21 of file TrigMuonEFTrackIsolationHypoTool.h.

21 { MaxNumberTools = 20 };

Constructor & Destructor Documentation

◆ TrigMuonEFTrackIsolationHypoTool()

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

Definition at line 13 of file TrigMuonEFTrackIsolationHypoTool.cxx.

◆ ~TrigMuonEFTrackIsolationHypoTool()

TrigMuonEFTrackIsolationHypoTool::~TrigMuonEFTrackIsolationHypoTool ( )
virtual

Definition at line 21 of file TrigMuonEFTrackIsolationHypoTool.cxx.

21  {
22 }

Member Function Documentation

◆ decide()

StatusCode TrigMuonEFTrackIsolationHypoTool::decide ( std::vector< TrigMuonEFTrackIsolationHypoTool::EFIsolationMuonInfo > &  toolInput) const
virtual

Definition at line 153 of file TrigMuonEFTrackIsolationHypoTool.cxx.

154 {
155  ATH_MSG_DEBUG("Deciding ...");
156 
157  size_t numMuon = toolInput.size();
158  ATH_MSG_DEBUG("Number of muon event = " << numMuon);
159 
160  if ( numMuon==0 ) {
161  ATH_MSG_DEBUG("The event has no muon, so No applying selection " << m_decisionId);
162  return StatusCode::SUCCESS;
163  } else {
164  ATH_MSG_DEBUG("Applying selection of single" << m_decisionId);
165  return inclusiveSelection(toolInput);
166  }
167 
168  return StatusCode::SUCCESS;
169 }

◆ decideOnSingleObject()

bool TrigMuonEFTrackIsolationHypoTool::decideOnSingleObject ( TrigMuonEFTrackIsolationHypoTool::EFIsolationMuonInfo input,
size_t  cutIndex 
) const
private

Definition at line 68 of file TrigMuonEFTrackIsolationHypoTool.cxx.

69 {
70  ATH_MSG_DEBUG("Decision ...");
71 
72  float ptcone20(-1), ptcone30(-1);
73  auto fex_ptcone03 = Monitored::Scalar("PtCone03", 0.0);
74  auto fex_ptconeRel03 = Monitored::Scalar("PtConeRel03", 0.0);
75 
76  auto monitorIt = Monitored::Group( m_monTool, fex_ptcone03, fex_ptconeRel03 );
77 
78  ATH_MSG_VERBOSE( "Cut index " << cutIndex );
79 
80  bool result = false;
81 
82  if( m_acceptAll ) {
83  result = true;
84  ATH_MSG_DEBUG("Accept property is set: taking all the events");
85  return result;
86  }
87 
88  auto pMuon = input.muEFIso;
89  if ( !pMuon ) {
90  result = false;
91  ATH_MSG_ERROR("Retrieval of L2StandAloneMuon from vector failed");
92  return result;
93  }
94 
95  const xAOD::Muon::MuonType muontype = pMuon->muonType();
96 
98  result = false;
99  ATH_MSG_DEBUG("Require combined muon, but this muon is not combined. -> false");
100  return result;
101  } else if ( muontype != xAOD::Muon::MuonType::MuonStandAlone && muontype != xAOD::Muon::MuonType::Combined ) {
102  result = false;
103  ATH_MSG_DEBUG("This muon type is neither standalone nor combined. -> false");
104  return result;
105  }
106 
107 
108  bool goodmu=true;
109  ptcone20 = input.ptcone20;
110  ptcone30 = input.ptcone30;
111 
112  fex_ptcone03=ptcone30/1000;
113  if ( m_abscut ) { //absolute cut
114  if ( m_ptcone02_cut > 0.0 ) {
115  if ( ptcone20 >= m_ptcone02_cut ) goodmu=false;
116  }
117  if ( m_ptcone03_cut > 0.0 ) {
118  if ( ptcone30 >= m_ptcone03_cut ) goodmu=false;
119  }
120 
121  ATH_MSG_DEBUG("Muon with pT cone 0.2 = " << ptcone20 << ", pT cone 0.3 = " << ptcone30
122  << " so result for this muon is " << (goodmu?"true":"false") );
123  } else { //relative cut
124 
125  const double mupt = pMuon->pt();
126  fex_ptconeRel03 = ptcone30/mupt;
127  ATH_MSG_DEBUG("Muon with pT " << mupt);
128 
129  // now we can make the cut(s)
130  if ( m_ptcone02_cut > 0.0 ) {
131  if( ptcone20/mupt >= m_ptcone02_cut ) goodmu=false;
132  }
133  if ( m_ptcone03_cut > 0.0 ) {
134  if ( ptcone30/mupt >= m_ptcone03_cut ) goodmu=false;
135  }
136 
137  ATH_MSG_DEBUG("Muon with pT cone 0.2 / pt = " << ptcone20/mupt << ", pT cone 0.3 / pt = " << ptcone30/mupt
138  << " so result for this muon is " << (goodmu?"true":"false") );
139  }
140 
141  if ( goodmu ) {
142  result = true;
143  }
144 
145  ATH_MSG_DEBUG("Algo result = " << (result?"true":"false") );
146 
147  return result;
148 }

◆ 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

◆ inclusiveSelection()

StatusCode TrigMuonEFTrackIsolationHypoTool::inclusiveSelection ( std::vector< TrigMuonEFTrackIsolationHypoTool::EFIsolationMuonInfo > &  toolInput) const
private

Definition at line 172 of file TrigMuonEFTrackIsolationHypoTool.cxx.

173 {
174  ATH_MSG_DEBUG("Inclusive ...");
175 
176  for ( auto&i : toolInput ) {
177  // If muon event has defference DecisionID, it shouldn't apply.
178  if ( TrigCompositeUtils::passed( m_decisionId.numeric(), i.previousDecisionIDs ) ) {
179  if ( decideOnSingleObject( i, 0 )==true ) {
180  ATH_MSG_DEBUG("Pass through selection " << m_decisionId );
182  } else {
183  ATH_MSG_DEBUG("Not pass through selection " << m_decisionId );
184  }
185  } else {
186  ATH_MSG_DEBUG("Not match DecisionID:" << m_decisionId );
187  }
188  }
189  return StatusCode::SUCCESS;
190 }

◆ initialize()

StatusCode TrigMuonEFTrackIsolationHypoTool::initialize ( )
overridevirtual

Definition at line 27 of file TrigMuonEFTrackIsolationHypoTool.cxx.

28 {
29  ATH_MSG_DEBUG("Initializing " << name());
30 
31  if ( m_acceptAll ) {
32  ATH_MSG_DEBUG("AcceptAll = True");
33  ATH_MSG_DEBUG("Accepting all the events!");
34  }
35  else {
36  ATH_MSG_DEBUG("AcceptAll = False");
37  if ( m_ptcone02_cut < 0.0 && m_ptcone03_cut < 0.0 ) {
38  ATH_MSG_ERROR("Configured to apply cuts, but not cut was specified");
39  return StatusCode::SUCCESS;
40  }
41  if ( m_ptcone02_cut > 0.0 ) {
42  if ( m_abscut ) {
43  ATH_MSG_DEBUG("Requiring sum pT in 0.2 cone < " << m_ptcone02_cut.value() << " MeV");
44  } else {
45  ATH_MSG_DEBUG("Requiring sum pT in 0.2 cone / muon pT < " << m_ptcone02_cut.value());
46  }
47  }
48  if ( m_ptcone03_cut > 0.0 ) {
49  if ( m_abscut ) {
50  ATH_MSG_DEBUG("Requiring sum pT in 0.3 cone < " << m_ptcone03_cut.value() << " MeV");
51  } else {
52  ATH_MSG_DEBUG("Requiring sum pT in 0.3 cone / muon pT < " << m_ptcone03_cut.value());
53  }
54  }
55  }
56 
57  if ( not m_monTool.name().empty() ) {
58  ATH_CHECK( m_monTool.retrieve() );
59  ATH_MSG_DEBUG("MonTool name: " << m_monTool);
60  }
61 
62  return StatusCode::SUCCESS;
63 }

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

Gaudi::Property<bool> TrigMuonEFTrackIsolationHypoTool::m_abscut { this, "DoAbsCut", true, "cut on absolute or sumpt/pt?"}
private

Definition at line 71 of file TrigMuonEFTrackIsolationHypoTool.h.

◆ m_acceptAll

Gaudi::Property<bool> TrigMuonEFTrackIsolationHypoTool::m_acceptAll { this, "AcceptAll", true, "Ignore selection"}
private

Definition at line 65 of file TrigMuonEFTrackIsolationHypoTool.h.

◆ m_decisionId

HLT::Identifier TrigMuonEFTrackIsolationHypoTool::m_decisionId
private

Definition at line 63 of file TrigMuonEFTrackIsolationHypoTool.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_monTool

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

Definition at line 77 of file TrigMuonEFTrackIsolationHypoTool.h.

◆ m_ptcone02_cut

Gaudi::Property<float> TrigMuonEFTrackIsolationHypoTool::m_ptcone02_cut { this, "PtCone02Cut", -1.0, "cut on the pt cone 0.2 variable"}
private

Definition at line 67 of file TrigMuonEFTrackIsolationHypoTool.h.

◆ m_ptcone03_cut

Gaudi::Property<float> TrigMuonEFTrackIsolationHypoTool::m_ptcone03_cut { this, "PtCone03Cut", -1.0, "cut on the pt cone 0.3 variable"}
private

Definition at line 69 of file TrigMuonEFTrackIsolationHypoTool.h.

◆ m_requireCombined

Gaudi::Property<bool> TrigMuonEFTrackIsolationHypoTool::m_requireCombined { this, "RequireCombinedMuon", true, "only consider combined muons for isolation?"}
private

Definition at line 75 of file TrigMuonEFTrackIsolationHypoTool.h.

◆ m_useVarIso

Gaudi::Property<bool> TrigMuonEFTrackIsolationHypoTool::m_useVarIso { this, "useVarIso", false, "use offline or online isolation variables?"}
private

Definition at line 73 of file TrigMuonEFTrackIsolationHypoTool.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:
TrigDefs::Group
Group
Properties of a chain group.
Definition: GroupProperties.h:13
get_generator_info.result
result
Definition: get_generator_info.py:21
TrigMuonEFTrackIsolationHypoTool::MaxNumberTools
@ MaxNumberTools
Definition: TrigMuonEFTrackIsolationHypoTool.h:21
TrigCompositeUtils::passed
bool passed(DecisionID id, const DecisionIDContainer &idSet)
checks if required decision ID is in the set of IDs in the container
Definition: TrigCompositeUtilsRoot.cxx:117
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
TrigMuonEFTrackIsolationHypoTool::m_ptcone02_cut
Gaudi::Property< float > m_ptcone02_cut
Definition: TrigMuonEFTrackIsolationHypoTool.h:67
TrigMuonEFTrackIsolationHypoTool::m_ptcone03_cut
Gaudi::Property< float > m_ptcone03_cut
Definition: TrigMuonEFTrackIsolationHypoTool.h:69
TrigCompositeUtils::addDecisionID
void addDecisionID(DecisionID id, Decision *d)
Appends the decision (given as ID) to the decision object.
Definition: TrigCompositeUtilsRoot.cxx:61
xAOD::Iso::ptcone30
@ ptcone30
Definition: IsolationType.h:41
xAOD::Iso::ptcone20
@ ptcone20
Track isolation.
Definition: IsolationType.h:40
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
TrigMuonEFTrackIsolationHypoTool::m_acceptAll
Gaudi::Property< bool > m_acceptAll
Definition: TrigMuonEFTrackIsolationHypoTool.h:65
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
ATH_MSG_VERBOSE
#define ATH_MSG_VERBOSE(x)
Definition: AthMsgStreamMacros.h:28
TrigMuonEFTrackIsolationHypoTool::m_requireCombined
Gaudi::Property< bool > m_requireCombined
Definition: TrigMuonEFTrackIsolationHypoTool.h:75
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
TrigMuonEFTrackIsolationHypoTool::m_abscut
Gaudi::Property< bool > m_abscut
Definition: TrigMuonEFTrackIsolationHypoTool.h:71
HLT::Identifier::fromToolName
static HLT::Identifier fromToolName(const std::string &tname)
Definition: HLTIdentifier.cxx:31
IDTPMcnv.htype
htype
Definition: IDTPMcnv.py:29
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
AthCommonDataStore
Definition: AthCommonDataStore.h:52
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
lumiFormat.i
int i
Definition: lumiFormat.py:85
TrigMuonEFTrackIsolationHypoTool::decideOnSingleObject
bool decideOnSingleObject(TrigMuonEFTrackIsolationHypoTool::EFIsolationMuonInfo &input, size_t cutIndex) const
Definition: TrigMuonEFTrackIsolationHypoTool.cxx:68
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
PlotPulseshapeFromCool.input
input
Definition: PlotPulseshapeFromCool.py:106
test_pyathena.parent
parent
Definition: test_pyathena.py:15
TrigMuonEFTrackIsolationHypoTool::m_monTool
ToolHandle< GenericMonitoringTool > m_monTool
Definition: TrigMuonEFTrackIsolationHypoTool.h:77
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:
Trk::Combined
@ Combined
Definition: TrackSummaryTool.h:32
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
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
a
TList * a
Definition: liststreamerinfos.cxx:10
TrigMuonEFTrackIsolationHypoTool::inclusiveSelection
StatusCode inclusiveSelection(std::vector< TrigMuonEFTrackIsolationHypoTool::EFIsolationMuonInfo > &toolInput) const
Definition: TrigMuonEFTrackIsolationHypoTool.cxx:172
h
TrigMuonEFTrackIsolationHypoTool::m_decisionId
HLT::Identifier m_decisionId
Definition: TrigMuonEFTrackIsolationHypoTool.h:63
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:623
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:798
Monitored::Scalar
Declare a monitored scalar variable.
Definition: MonitoredScalar.h:34
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