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

#include <TrigMuonMatching.h>

Inheritance diagram for Trig::TrigMuonMatching:
Collaboration diagram for Trig::TrigMuonMatching:

Classes

struct  EFmuon
 

Public Member Functions

 TrigMuonMatching (const std::string &name)
 
virtual ~TrigMuonMatching ()
 
virtual StatusCode initialize (void) override
 
virtual Bool_t match (const xAOD::Muon *mu, const std::string &chain, const double mindelR=0.1) const override
 
virtual Bool_t matchL1 (const xAOD::Muon *mu, const std::string &l1item, const double DelR=0.2) const override
 
virtual Bool_t matchL2SA (const xAOD::Muon *mu, const std::string &l1item, const std::string &chain, const double DelR=0.2) const override
 
virtual Bool_t matchL2CB (const xAOD::Muon *mu, const std::string &chain, const double DelR=0.2) const override
 
virtual Double_t minDelR (const xAOD::Muon *mu, const std::string &chain, const double mindelR=0.1) const override
 
virtual Double_t minDelRL1 (const xAOD::Muon *mu, const std::string &l1item, const double DelR=0.2) const override
 
virtual Bool_t matchDimuon (const xAOD::Muon *mu1, const xAOD::Muon *mu2, const std::string &chain, std::pair< Bool_t, Bool_t > &result1, std::pair< Bool_t, Bool_t > &result2, const Double_t &mindelR=0.1) override
 
virtual Bool_t match (const double eta, const double phi, const std::string &chain, const double mindelR=0.1) const override
 
virtual Bool_t matchL1 (const double eta, const double phi, const std::string &l1item, const double DelR=0.2) const override
 
virtual Bool_t matchDimuon (const TLorentzVector &muon1, const TLorentzVector &muon2, const std::string &chain, std::pair< Bool_t, Bool_t > &result1, std::pair< Bool_t, Bool_t > &result2, const Double_t &mindelR=0.1) override
 
virtual Bool_t isPassedRerun (const std::string &trigger) const override
 
virtual StatusCode sysInitialize ()
 Function initialising the tool in the correct way in Athena. More...
 
virtual void print () const
 Print the state of the tool. 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 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

std::pair< bool, bool > matchDimuon (const TLorentzVector &muon1, const TLorentzVector &muon2, const DimuonChainInfo &chainInfo, const double mindelR)
 
double dR (const double eta1, const double phi1, const double eta2, const double phi2) const
 
int getL1pt (const std::string &l1item) const
 
void tokenize (const std::string &str, std::vector< std::string > &tokens, const std::string &delimiters) const
 
Double_t matchedTrackDetail (EFmuon &efMuonId, const EFmuon &usedEFMuonId, const double eta, const double phi, const double mindelR, const std::string &chainEventTrigger) const
 
bool decodeDimuonChain (DimuonChainInfo &chainInfo)
 
bool isEqual (const double x, const double y) 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

ToolHandle< Trig::TrigDecisionToolm_trigDecTool
 
std::map< std::string, DimuonChainInfom_DimuonChainMap
 
MetaStore_t m_inputMetaStore
 Object accessing the input metadata store. More...
 
MetaStore_t m_outputMetaStore
 Object accessing the output metadata store. More...
 
bool m_beginInputFileCalled
 Flag helping to discover when the tool misses the opening of the first input file. More...
 
bool m_useIncidents
 
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
 

Callback functions helping in metadata reading/writing

void setUseIncidents (const bool flag)
 
virtual void handle (const Incident &inc)
 Function receiving incidents from IncidentSvc/TEvent. More...
 
virtual StatusCode beginInputFile ()
 Function called when a new input file is opened. More...
 
virtual StatusCode endInputFile ()
 Function called when the currently open input file got completely processed. More...
 
virtual StatusCode beginEvent ()
 Function called when a new events is loaded. More...
 
virtual StatusCode metaDataStop ()
 Function called when the tool should write out its metadata. More...
 

Detailed Description

Definition at line 20 of file TrigMuonMatching.h.

Member Typedef Documentation

◆ MetaStore_t

Type of the metadata store object in Athena.

Definition at line 66 of file AsgMetadataTool.h.

◆ MetaStorePtr_t

Type of the metadata store pointer in standalone mode.

Definition at line 68 of file AsgMetadataTool.h.

◆ StoreGateSvc_t

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

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ TrigMuonMatching()

Trig::TrigMuonMatching::TrigMuonMatching ( const std::string &  name)

Definition at line 22 of file TrigMuonMatching.cxx.

24  m_trigDecTool("Trig::TrigDecisionTool/TrigDecisionTool")
25  {
26  declareProperty( "TriggerTool", m_trigDecTool);
27  }

◆ ~TrigMuonMatching()

Trig::TrigMuonMatching::~TrigMuonMatching ( )
virtual

Definition at line 29 of file TrigMuonMatching.cxx.

29  {
30  }

Member Function Documentation

◆ beginEvent()

StatusCode asg::AsgMetadataTool::beginEvent ( )
protectedvirtualinherited

Function called when a new events is loaded.

Dummy implementation that can be overridden by the derived tool.

Reimplemented in AsgElectronEfficiencyCorrectionTool, TrigConf::xAODConfigTool, TauAnalysisTools::TauSelectionTool, TauAnalysisTools::DiTauSelectionTool, TauAnalysisTools::CommonSmearingTool, TauAnalysisTools::DiTauEfficiencyCorrectionsTool, Trig::TrigDecisionTool, TauAnalysisTools::TauEfficiencyCorrectionsTool, Trig::TrigConfBunchCrossingTool, xAODMaker::TriggerMenuMetaDataTool, and Trig::xAODBunchCrossingTool.

Definition at line 196 of file AsgMetadataTool.cxx.

196  {
197 
198  // Return gracefully:
199  return StatusCode::SUCCESS;
200  }

◆ beginInputFile()

StatusCode asg::AsgMetadataTool::beginInputFile ( )
protectedvirtualinherited

Function called when a new input file is opened.

Dummy implementation that can be overridden by the derived tool.

Reimplemented in AsgElectronEfficiencyCorrectionTool, TrigConf::xAODConfigTool, PMGTools::PMGTruthWeightTool, BookkeeperTool, xAODMaker::FileMetaDataTool, BookkeeperDumperTool, Trig::TrigDecisionTool, xAODMaker::TriggerMenuMetaDataTool, xAODMaker::TruthMetaDataTool, Trig::xAODBunchCrossingTool, TauAnalysisTools::TauEfficiencyCorrectionsTool, and TauAnalysisTools::TauSmearingTool.

Definition at line 180 of file AsgMetadataTool.cxx.

180  {
181 
182  // Return gracefully:
183  return StatusCode::SUCCESS;
184  }

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

◆ decodeDimuonChain()

bool Trig::TrigMuonMatching::decodeDimuonChain ( DimuonChainInfo chainInfo)
private

Definition at line 407 of file TrigMuonMatching.cxx.

408  {
409  chainInfo.isValid = false;
410  std::map<std::string, DimuonChainInfo >::const_iterator p = m_DimuonChainMap.find(chainInfo.chain);
411  if (p != m_DimuonChainMap.end()) {
412  chainInfo = p->second;
413  return chainInfo.isValid;
414  }
415  std::vector<std::string> tokens;
416  tokenize(chainInfo.chain, tokens, "_");
417  if (tokens.size() < 2) return false;
418  if (tokens[0] != "HLT") return false;
419  chainInfo.isSymmetric = (tokens[1].substr(0, 3) == "2mu");
420 
421  if(chainInfo.isSymmetric) {
422  std::string threshold = std::string("HLT_" + tokens[1].substr(1));
423  chainInfo.thresholds.first = threshold;
424  chainInfo.thresholds.second = threshold;
425  chainInfo.isValid = true;
426  //if (tokens.size() == 3) chainInfo.tightness = tokens[2];
427  }
428  else {
429  if(tokens.size() != 3) return false;
430 
431  std::string high = std::string("HLT_" + tokens[1]);
432  chainInfo.thresholds.first = high;
433  chainInfo.thresholds.second = chainInfo.chain;
434  chainInfo.isValid = true;
435  return chainInfo.isValid;
436 
437  }
438  m_DimuonChainMap[chainInfo.chain] = chainInfo;
439  return chainInfo.isValid;
440  }

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

◆ dR()

double Trig::TrigMuonMatching::dR ( const double  eta1,
const double  phi1,
const double  eta2,
const double  phi2 
) const
private

Definition at line 281 of file TrigMuonMatching.cxx.

285  {
286  double deta = fabs(eta1 - eta2);
287  double dphi = fabs(phi1 - phi2) < TMath::Pi() ? fabs(phi1 - phi2) : 2*TMath:: \
288  Pi() - fabs(phi1 - phi2);
289  return sqrt(deta*deta + dphi*dphi);
290  }

◆ endInputFile()

StatusCode asg::AsgMetadataTool::endInputFile ( )
protectedvirtualinherited

Function called when the currently open input file got completely processed.

Dummy implementation that can be overridden by the derived tool.

Reimplemented in BookkeeperTool, xAODMaker::FileMetaDataTool, BookkeeperDumperTool, xAODMaker::TriggerMenuMetaDataTool, and xAODMaker::TruthMetaDataTool.

Definition at line 188 of file AsgMetadataTool.cxx.

188  {
189 
190  // Return gracefully:
191  return StatusCode::SUCCESS;
192  }

◆ 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

◆ getKey()

SG::sgkey_t asg::AsgTool::getKey ( const void *  ptr) const
inherited

Get the (hashed) key of an object that is in the event store.

This is a bit of a special one. StoreGateSvc and xAOD::TEvent both provide ways for getting the SG::sgkey_t key for an object that is in the store, based on a bare pointer. But they provide different interfaces for doing so.

In order to allow tools to efficiently perform this operation, they can use this helper function.

See also
asg::AsgTool::getName
Parameters
ptrThe bare pointer to the object that the event store should know about
Returns
The hashed key of the object in the store. If not found, an invalid (zero) key.

Definition at line 119 of file AsgTool.cxx.

119  {
120 
121 #ifdef XAOD_STANDALONE
122  // In case we use @c xAOD::TEvent, we have a direct function call
123  // for this.
124  return evtStore()->event()->getKey( ptr );
125 #else
126  const SG::DataProxy* proxy = evtStore()->proxy( ptr );
127  return ( proxy == nullptr ? 0 : proxy->sgkey() );
128 #endif // XAOD_STANDALONE
129  }

◆ getL1pt()

int Trig::TrigMuonMatching::getL1pt ( const std::string &  l1item) const
private

Definition at line 293 of file TrigMuonMatching.cxx.

294  {
295  int rc = -1;
296 
297  std::vector<std::string> tokens;
298  tokenize(l1item, tokens, "_");
299  std::string pt;
300  if (tokens.size() == 1) {
301  pt = tokens.at(0);
302 
303  } else if ((tokens.size() == 2 ) and (tokens.at(0) == "L1")) {
304  pt = tokens.at(1);
305 
306  } else {
307  ATH_MSG_ERROR("TrigMuonMatching::getL1pt : cannot parse " << l1item);
308  return rc;
309  }
310 
311  const size_t index = pt.find("MU");
312  if (index != std::string::npos) {
313  std::istringstream iss(pt.substr(index + 2));
314  iss >> rc;
315  } else {
316  ATH_MSG_ERROR("TrigMuonMatching::getL1pt : cannot parse " << l1item);
317  }
318 
319  return rc;
320  }

◆ getName()

const std::string & asg::AsgTool::getName ( const void *  ptr) const
inherited

Get the name of an object that is / should be in the event store.

This is a bit of a special one. StoreGateSvc and xAOD::TEvent both provide ways for getting the std::string name for an object that is in the store, based on a bare pointer. But they provide different interfaces for doing so.

In order to allow tools to efficiently perform this operation, they can use this helper function.

See also
asg::AsgTool::getKey
Parameters
ptrThe bare pointer to the object that the event store should know about
Returns
The string name of the object in the store. If not found, an empty string.

Definition at line 106 of file AsgTool.cxx.

106  {
107 
108 #ifdef XAOD_STANDALONE
109  // In case we use @c xAOD::TEvent, we have a direct function call
110  // for this.
111  return evtStore()->event()->getName( ptr );
112 #else
113  const SG::DataProxy* proxy = evtStore()->proxy( ptr );
114  static const std::string dummy = "";
115  return ( proxy == nullptr ? dummy : proxy->name() );
116 #endif // XAOD_STANDALONE
117  }

◆ getProperty()

template<class T >
const T* asg::AsgTool::getProperty ( const std::string &  name) const
inherited

Get one of the tool's properties.

◆ handle()

void asg::AsgMetadataTool::handle ( const Incident &  inc)
protectedvirtualinherited

Function receiving incidents from IncidentSvc/TEvent.

Reimplemented in Trig::TrigDecisionTool.

Definition at line 130 of file AsgMetadataTool.cxx.

130  {
131 
132  // Tell the user what's happening:
133  ATH_MSG_VERBOSE( "Callback received with incident: " << inc.type() );
134 
135  // Call the appropriate member function:
136  if( inc.type() == IncidentType::BeginInputFile ) {
137  m_beginInputFileCalled = true;
138  if( beginInputFile().isFailure() ) {
139  ATH_MSG_FATAL( "Failed to call beginInputFile()" );
140  throw std::runtime_error( "Couldn't call beginInputFile()" );
141  }
142  } else if( inc.type() == IncidentType::EndInputFile ) {
143  if( endInputFile().isFailure() ) {
144  ATH_MSG_FATAL( "Failed to call endInputFile()" );
145  throw std::runtime_error( "Couldn't call endInputFile()" );
146  }
147  } else if( inc.type() == IncidentType::BeginEvent ) {
148  // If the tool didn't catch the begin input file incident for the
149  // first input file of the job, then call the appropriate function
150  // now.
151  if( ! m_beginInputFileCalled ) {
152  m_beginInputFileCalled = true;
153  if( beginInputFile().isFailure() ) {
154  ATH_MSG_FATAL( "Failed to call beginInputFile()" );
155  throw std::runtime_error( "Couldn't call beginInputFile()" );
156  }
157  }
158  if( beginEvent().isFailure() ) {
159  ATH_MSG_FATAL( "Failed to call beginEvent()" );
160  throw std::runtime_error( "Couldn't call beginEvent()" );
161  }
162 
163  #ifdef XAOD_STANDALONE
164  } else if( inc.type() == IncidentType::MetaDataStop ) {
165  if( metaDataStop().isFailure() ) {
166  ATH_MSG_FATAL( "Failed to call metaDataStop()" );
167  throw std::runtime_error( "Couldn't call metaDataStop()" );
168  }
169 
170  #endif // XAOD_STANDALONE
171  } else {
172  ATH_MSG_WARNING( "Unknown incident type received in AsgMetaDataTool: " << inc.type() );
173  }
174 
175  return;
176  }

◆ initialize()

StatusCode Trig::TrigMuonMatching::initialize ( void  )
overridevirtual

Implements Trig::ITrigMuonMatching.

Definition at line 32 of file TrigMuonMatching.cxx.

32  {
33  // Greet the user:
34  ATH_MSG_INFO( "Initialising... " );
35 
36  ATH_CHECK(m_trigDecTool.retrieve());
37 
38  return StatusCode::SUCCESS;
39  }

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

◆ inputMetaStore()

AsgMetadataTool::MetaStorePtr_t asg::AsgMetadataTool::inputMetaStore ( ) const
inherited

Accessor for the input metadata store.

Definition at line 88 of file AsgMetadataTool.cxx.

88  {
89 
90 #ifdef XAOD_STANDALONE
91  return &m_inputMetaStore;
92 #else // XAOD_STANDALONE
93  return m_inputMetaStore;
94 #endif // XAOD_STANDALONE
95  }

◆ isEqual()

bool Trig::TrigMuonMatching::isEqual ( const double  x,
const double  y 
) const
private

Definition at line 442 of file TrigMuonMatching.cxx.

444  {
445  if (fabs(x - y) < std::numeric_limits<float>::epsilon()) return true;
446  return false;
447  }

◆ isPassedRerun()

Bool_t Trig::TrigMuonMatching::isPassedRerun ( const std::string &  trigger) const
overridevirtual

Implements Trig::ITrigMuonMatching.

Definition at line 242 of file TrigMuonMatching.cxx.

243  {
244  const unsigned int bits = m_trigDecTool->isPassedBits(trigger);
245  if( (bits & TrigDefs::EF_passedRaw) && ! ( bits & TrigDefs::EF_passThrough) && ( bits & TrigDefs::EF_resurrected)){
246  return true;
247  }
248  return false;
249  }

◆ match() [1/2]

Bool_t Trig::TrigMuonMatching::match ( const double  eta,
const double  phi,
const std::string &  chain,
const double  mindelR = 0.1 
) const
overridevirtual

Implements Trig::ITrigMuonMatching.

Definition at line 103 of file TrigMuonMatching.cxx.

107  {
108  if(!m_trigDecTool->isPassed(chain)){
109  return false;
110  }
111  Double_t delmin = mindelR;
112  EFmuon efmuon,dummy;
113 
114  matchedTrackDetail(efmuon, dummy, eta, phi, delmin, chain);
115  return efmuon.valid;
116  }

◆ match() [2/2]

Bool_t Trig::TrigMuonMatching::match ( const xAOD::Muon mu,
const std::string &  chain,
const double  mindelR = 0.1 
) const
overridevirtual

Implements Trig::ITrigMuonMatching.

Definition at line 41 of file TrigMuonMatching.cxx.

44  {
45  return match(mu->eta(),mu->phi(),chain,mindelR);
46  }

◆ matchDimuon() [1/3]

std::pair< Bool_t, Bool_t > Trig::TrigMuonMatching::matchDimuon ( const TLorentzVector &  muon1,
const TLorentzVector &  muon2,
const DimuonChainInfo chainInfo,
const double  mindelR 
)
private

Definition at line 251 of file TrigMuonMatching.cxx.

255  {
256 
257  EFmuon trkId1, trkId2, dummy;
258  const Double_t dr1 = matchedTrackDetail(trkId1, dummy, muon1.Eta(), muon1.Phi(), mindelR, chainInfo.thresholds.first);
259 
260  // for full scan trigger.
261 
262  const Double_t dr2 = matchedTrackDetail(trkId2, dummy, muon2.Eta(), muon2.Phi(), mindelR, chainInfo.thresholds.second);
263 
264  if(trkId1.valid && trkId2.valid &&
265  isEqual(trkId1.pt, trkId2.pt) &&
266  isEqual(trkId1.eta, trkId2.eta) &&
267  isEqual(trkId1.phi, trkId2.phi)){
268  if(dr1 > dr2){
269  matchedTrackDetail(trkId1, trkId2, muon1.Eta(), muon1.Phi(), mindelR, chainInfo.thresholds.first);
270  }
271  else{
272  matchedTrackDetail(trkId2, trkId1, muon2.Eta(), muon2.Phi(), mindelR, chainInfo.thresholds.second);
273  }
274  }
275 
276  return std::pair<Bool_t, Bool_t> (trkId1.valid, trkId2.valid);
277  }

◆ matchDimuon() [2/3]

Bool_t Trig::TrigMuonMatching::matchDimuon ( const TLorentzVector &  muon1,
const TLorentzVector &  muon2,
const std::string &  chain,
std::pair< Bool_t, Bool_t > &  result1,
std::pair< Bool_t, Bool_t > &  result2,
const Double_t &  mindelR = 0.1 
)
overridevirtual

Implements Trig::ITrigMuonMatching.

Definition at line 213 of file TrigMuonMatching.cxx.

219  {
220  Double_t delmin = mindelR;
221  DimuonChainInfo chainInfo(chain);
222  if (not decodeDimuonChain(chainInfo)) {
223  ATH_MSG_ERROR("TrigMuonMatching : Failed to decode chain " << chain << " matchDimuon can accept only chains named HLT_2muXX and HLT_muXX_mu8noL1.");
224  return false;
225  }
226 
227  std::pair<Bool_t, Bool_t> rc12, rc21;
228  rc12 = matchDimuon(muon1, muon2, chainInfo, delmin);
229  if(chainInfo.isSymmetric){
230  rc21.first = rc12.second; rc21.second = rc12.first;
231  }
232 
233  else{
234  rc21 = matchDimuon(muon2, muon1, chainInfo, delmin);
235  }
236 
237  result1.first = rc12.first; result1.second = rc21.second;
238  result2.first = rc21.first; result2.second = rc12.second;
239  return true;
240  }

◆ matchDimuon() [3/3]

Bool_t Trig::TrigMuonMatching::matchDimuon ( const xAOD::Muon mu1,
const xAOD::Muon mu2,
const std::string &  chain,
std::pair< Bool_t, Bool_t > &  result1,
std::pair< Bool_t, Bool_t > &  result2,
const Double_t &  mindelR = 0.1 
)
overridevirtual

Implements Trig::ITrigMuonMatching.

Definition at line 89 of file TrigMuonMatching.cxx.

95  {
96  TLorentzVector mu_1, mu_2;
97  mu_1.SetPtEtaPhiM(mu1->pt(),mu1->eta(),mu1->phi(),MUONMASS);
98  mu_2.SetPtEtaPhiM(mu2->pt(),mu2->eta(),mu2->phi(),MUONMASS);
99  Bool_t valid = matchDimuon(mu_1,mu_2,chain,result1,result2,mindelR);
100  return valid;
101  }

◆ matchedTrackDetail()

Double_t Trig::TrigMuonMatching::matchedTrackDetail ( EFmuon efMuonId,
const EFmuon usedEFMuonId,
const double  eta,
const double  phi,
const double  mindelR,
const std::string &  chainEventTrigger 
) const
private

Definition at line 339 of file TrigMuonMatching.cxx.

345  {
346  efMuonId.valid = false;
347  Double_t drmin = mindelR;
348 
349  const std::string eventTrigger = chainForEventTrigger;
350 
351  auto cg = m_trigDecTool->getChainGroup(eventTrigger);
352  auto fc = cg->features();
353 
354 #if defined(XAOD_STANDALONE) || defined(XAOD_ANALYSIS)
355  auto MuFeatureContainers = fc.containerFeature<xAOD::MuonContainer>();
356 #else
357  const std::vector< Trig::Feature<xAOD::MuonContainer> > MuFeatureContainers = fc.get<xAOD::MuonContainer>();
358 #endif
359 
360  for(auto mucont : MuFeatureContainers){
361  for(auto mu : *mucont.cptr()){
362 
363  // l1 matching
364 
365  if(isEqual(usedEFMuonId.pt, mu->pt()) &&
366  isEqual(usedEFMuonId.eta, mu->eta()) &&
367  isEqual(usedEFMuonId.phi, mu->phi())) continue;
368 
369  Double_t dr = dR(eta,phi,mu->eta(),mu->phi());
370  if(drmin > dr){
371  drmin = dr;
372  efMuonId.pt = mu->pt();
373  efMuonId.eta = mu->eta();
374  efMuonId.phi = mu->phi();
375  efMuonId.valid = true;
376  }
377  }
378  }
379  return drmin;
380  }

◆ matchL1() [1/2]

Bool_t Trig::TrigMuonMatching::matchL1 ( const double  eta,
const double  phi,
const std::string &  l1item,
const double  DelR = 0.2 
) const
overridevirtual

Implements Trig::ITrigMuonMatching.

Definition at line 118 of file TrigMuonMatching.cxx.

122  {
123  if(!m_trigDecTool->isPassed("L1_MU.*")){
124  return false;
125  }
126  Double_t l1dr = DelR;
127  const xAOD::MuonRoIContainer* muonrois = 0;
128  StatusCode sc = evtStore()->retrieve(muonrois,"LVL1MuonRoIs");
129  if(!sc){
130  ATH_MSG_ERROR("TrigMuonMatching::matchL1 : could not retrieve LVL1MuonRoIs");
131  return false;
132  }
133  Int_t threshold = getL1pt(l1item);
134  xAOD::MuonRoIContainer::const_iterator muroi_itr = muonrois->begin();
135  xAOD::MuonRoIContainer::const_iterator muroi_end = muonrois->end();
136  for( ; muroi_itr != muroi_end; ++muroi_itr ) {
137  if((*muroi_itr)->thrValue() >= threshold*1000){
138  Double_t dR = TrigMuonMatching::dR(eta, phi, (*muroi_itr)->eta(), (*muroi_itr)->phi());
139  if(dR < l1dr){
140  return true;
141  }
142  }
143  }
144  return false;
145  }

◆ matchL1() [2/2]

Bool_t Trig::TrigMuonMatching::matchL1 ( const xAOD::Muon mu,
const std::string &  l1item,
const double  DelR = 0.2 
) const
overridevirtual

Implements Trig::ITrigMuonMatching.

Definition at line 48 of file TrigMuonMatching.cxx.

51  {
52  return matchL1(mu->eta(),mu->phi(),l1item,DelR);
53  }

◆ matchL2CB()

Bool_t Trig::TrigMuonMatching::matchL2CB ( const xAOD::Muon mu,
const std::string &  chain,
const double  DelR = 0.2 
) const
overridevirtual

Implements Trig::ITrigMuonMatching.

Definition at line 190 of file TrigMuonMatching.cxx.

193  {
194  const std::string eventTrigger = chain;
195 
196  auto cg = m_trigDecTool->getChainGroup(eventTrigger);
197  auto fc = cg->features(TrigDefs::alsoDeactivateTEs);
198 #if defined(XAOD_STANDALONE) || defined(XAOD_ANALYSIS)
199  auto MuFeatureContainers = fc.containerFeature<xAOD::L2CombinedMuonContainer>("",TrigDefs::alsoDeactivateTEs);
200 #else
201  const std::vector< Trig::Feature<xAOD::L2CombinedMuonContainer> > MuFeatureContainers = fc.get<xAOD::L2CombinedMuonContainer>("", TrigDefs::alsoDeactivateTEs);
202 #endif
203 
204  for(auto mucont : MuFeatureContainers){
205  for(auto muon : *mucont.cptr()){
206  Double_t dR = TrigMuonMatching::dR(mu->eta(), mu->phi(), muon->eta(), muon->phi());
207  if(dR < DelR) return true;
208  }
209  }
210  return false;
211  }

◆ matchL2SA()

Bool_t Trig::TrigMuonMatching::matchL2SA ( const xAOD::Muon mu,
const std::string &  l1item,
const std::string &  chain,
const double  DelR = 0.2 
) const
overridevirtual

Implements Trig::ITrigMuonMatching.

Definition at line 147 of file TrigMuonMatching.cxx.

151  {
152  if(!m_trigDecTool->isPassed("L1_MU.*")){
153  return false;
154  }
155  const xAOD::MuonRoIContainer* muonrois = 0;
156  StatusCode sc = evtStore()->retrieve(muonrois,"LVL1MuonRoIs");
157  if(!sc){
158  ATH_MSG_ERROR("TrigMuonMatching::matchL1 : could not retrieve LVL1MuonRoIs");
159  return false;
160  }
161  xAOD::MuonRoIContainer::const_iterator muroi_itr = muonrois->begin();
162  xAOD::MuonRoIContainer::const_iterator muroi_end = muonrois->end();
163  Int_t threshold = getL1pt(l1item);
164  unsigned int ROI = 0;
165  for( ; muroi_itr != muroi_end; ++muroi_itr ) {
166  if(!((*muroi_itr)->thrValue() >= threshold*1000)) continue;
167  ROI = (*muroi_itr)->getRoI();
168  const std::string eventTrigger = chain;
169 
170  auto cg = m_trigDecTool->getChainGroup(eventTrigger);
171  auto fc = cg->features(TrigDefs::alsoDeactivateTEs);
172 #if defined(XAOD_STANDALONE) || defined(XAOD_ANALYSIS)
173  auto MuFeatureContainers = fc.containerFeature<xAOD::L2StandAloneMuonContainer>("",TrigDefs::alsoDeactivateTEs);
174 #else
175  const std::vector< Trig::Feature<xAOD::L2StandAloneMuonContainer> > MuFeatureContainers = fc.get<xAOD::L2StandAloneMuonContainer>("", TrigDefs::alsoDeactivateTEs);
176 #endif
177  for(auto mucont : MuFeatureContainers){
178  for(auto muon : *mucont.cptr()){
179  if(muon->roiNumber() == ROI){
180  Double_t dR = TrigMuonMatching::dR(mu->eta(), mu->phi(), muon->eta(), muon->phi());
181  if(dR < DelR) return true;
182  }
183  }
184  }
185  }
186 
187  return false;
188  }

◆ metaDataStop()

StatusCode asg::AsgMetadataTool::metaDataStop ( )
protectedvirtualinherited

Function called when the tool should write out its metadata.

Dummy implementation that can be overridden by the derived tool.

Reimplemented in xAODMaker::FileMetaDataTool, BookkeeperTool, BookkeeperDumperTool, xAODMaker::TriggerMenuMetaDataTool, and xAODMaker::TruthMetaDataTool.

Definition at line 204 of file AsgMetadataTool.cxx.

204  {
205 
206  // Return gracefully:
207  return StatusCode::SUCCESS;
208  }

◆ minDelR()

Double_t Trig::TrigMuonMatching::minDelR ( const xAOD::Muon mu,
const std::string &  chain,
const double  mindelR = 0.1 
) const
overridevirtual

Implements Trig::ITrigMuonMatching.

Definition at line 55 of file TrigMuonMatching.cxx.

58  {
59  Double_t delmin = mindelR;
60  EFmuon efmuon,dummy;
61  return matchedTrackDetail(efmuon, dummy, mu->eta(), mu->phi(), delmin, chain);
62  }

◆ minDelRL1()

Double_t Trig::TrigMuonMatching::minDelRL1 ( const xAOD::Muon mu,
const std::string &  l1item,
const double  DelR = 0.2 
) const
overridevirtual

Implements Trig::ITrigMuonMatching.

Definition at line 64 of file TrigMuonMatching.cxx.

67  {
68  Double_t l1dr = DelR;
69  const xAOD::MuonRoIContainer* muonrois = 0;
70  StatusCode sc = evtStore()->retrieve(muonrois,"LVL1MuonRoIs");
71  if(!sc){
72  ATH_MSG_ERROR("TrigMuonMatching::matchL1 : could not retrieve LVL1MuonRoIs");
73  return false;
74  }
75  Int_t threshold = getL1pt(l1item);
76  xAOD::MuonRoIContainer::const_iterator muroi_itr = muonrois->begin();
77  xAOD::MuonRoIContainer::const_iterator muroi_end = muonrois->end();
78  for( ; muroi_itr != muroi_end; ++muroi_itr ) {
79  if((*muroi_itr)->thrValue() >= threshold*1000){
80  Double_t dR = TrigMuonMatching::dR(mu->eta(), mu->phi(), (*muroi_itr)->eta(), (*muroi_itr)->phi());
81  if(dR < l1dr){
82  l1dr = dR;
83  }
84  }
85  }
86  return l1dr;
87  }

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

◆ msg_level_name()

const std::string & asg::AsgTool::msg_level_name ( ) const
inherited

A deprecated function for getting the message level's name.

Instead of using this, weirdly named function, user code should get the string name of the current minimum message level (in case they really need it...), with:

MSG::name( msg().level() )

This function's name doesn't follow the ATLAS coding rules, and as such will be removed in the not too distant future.

Returns
The string name of the current minimum message level that's printed

Definition at line 101 of file AsgTool.cxx.

101  {
102 
103  return MSG::name( msg().level() );
104  }

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

◆ outputMetaStore()

AsgMetadataTool::MetaStorePtr_t asg::AsgMetadataTool::outputMetaStore ( ) const
inherited

Accessor for the output metadata store.

Definition at line 97 of file AsgMetadataTool.cxx.

97  {
98 
99 #ifdef XAOD_STANDALONE
100  return &m_outputMetaStore;
101 #else // XAOD_STANDALONE
102  return m_outputMetaStore;
103 #endif // XAOD_STANDALONE
104  }

◆ print()

void asg::AsgTool::print ( ) const
virtualinherited

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

◆ setUseIncidents()

void asg::AsgMetadataTool::setUseIncidents ( const bool  flag)
inlineprotectedinherited

Definition at line 132 of file AsgMetadataTool.h.

133  {
135  }

◆ sysInitialize()

StatusCode asg::AsgMetadataTool::sysInitialize ( )
virtualinherited

Function initialising the tool in the correct way in Athena.

This function is used to set up the callbacks from IncidentSvc in Athena at the right time during initialisation, without the user having to do anything special in his/her code.

Reimplemented from AthCommonDataStore< AthCommonMsg< AlgTool > >.

Definition at line 110 of file AsgMetadataTool.cxx.

110  {
111 
112 #ifndef XAOD_STANDALONE
113  if (m_useIncidents) {
114  // Connect to the IncidentSvc:
115  ServiceHandle< IIncidentSvc > incSvc( "IncidentSvc", name() );
116  ATH_CHECK( incSvc.retrieve() );
117 
118  // Set up the right callbacks: don't rethrow exceptions, any failure and we should end
119  incSvc->addListener( this, IncidentType::BeginEvent, 0, false );
120  }
121  // Let the base class do its thing:
122  ATH_CHECK( AlgTool::sysInitialize() );
123 
124 #endif // not XAOD_STANDALONE
125 
126  // Return gracefully:
127  return StatusCode::SUCCESS;
128  }

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

◆ tokenize()

void Trig::TrigMuonMatching::tokenize ( const std::string &  str,
std::vector< std::string > &  tokens,
const std::string &  delimiters 
) const
private

Definition at line 323 of file TrigMuonMatching.cxx.

326  {
327  tokens.clear();
328  std::string::size_type lastPos = str.find_first_not_of(delimiters, 0);
329  std::string::size_type pos = str.find_first_of(delimiters, lastPos);
330 
331  while ((std::string::npos != pos) or (std::string::npos != lastPos)) {
332  tokens.push_back(str.substr(lastPos, pos - lastPos));
333  lastPos = str.find_first_not_of(delimiters, pos);
334  pos = str.find_first_of(delimiters, lastPos);
335  }
336  }

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

bool asg::AsgMetadataTool::m_beginInputFileCalled
privateinherited

Flag helping to discover when the tool misses the opening of the first input file.

Definition at line 126 of file AsgMetadataTool.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_DimuonChainMap

std::map<std::string, DimuonChainInfo> Trig::TrigMuonMatching::m_DimuonChainMap
private

Definition at line 99 of file TrigMuonMatching.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_inputMetaStore

MetaStore_t asg::AsgMetadataTool::m_inputMetaStore
privateinherited

Object accessing the input metadata store.

Definition at line 119 of file AsgMetadataTool.h.

◆ m_outputMetaStore

MetaStore_t asg::AsgMetadataTool::m_outputMetaStore
privateinherited

Object accessing the output metadata store.

Definition at line 121 of file AsgMetadataTool.h.

◆ m_trigDecTool

ToolHandle<Trig::TrigDecisionTool> Trig::TrigMuonMatching::m_trigDecTool
private

Definition at line 97 of file TrigMuonMatching.h.

◆ m_useIncidents

bool asg::AsgMetadataTool::m_useIncidents
privateinherited

Definition at line 128 of file AsgMetadataTool.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:
xAOD::muon
@ muon
Definition: TrackingPrimitives.h:195
ATH_MSG_FATAL
#define ATH_MSG_FATAL(x)
Definition: AthMsgStreamMacros.h:34
DataModel_detail::const_iterator
Const iterator class for DataVector/DataList.
Definition: DVLIterator.h:82
asg::AsgMetadataTool::beginEvent
virtual StatusCode beginEvent()
Function called when a new events is loaded.
Definition: AsgMetadataTool.cxx:196
StateLessPT_NewConfig.proxy
proxy
Definition: StateLessPT_NewConfig.py:392
runLayerRecalibration.chain
chain
Definition: runLayerRecalibration.py:175
ParticleGun_SamplingFraction.eta2
eta2
Definition: ParticleGun_SamplingFraction.py:96
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
index
Definition: index.py:1
AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
Trig::TrigMuonMatching::matchL1
virtual Bool_t matchL1(const xAOD::Muon *mu, const std::string &l1item, const double DelR=0.2) const override
Definition: TrigMuonMatching.cxx:48
xAOD::Muon_v1::phi
virtual double phi() const
The azimuthal angle ( ) of the particle.
DimuonChainInfo::thresholds
std::pair< std::string, std::string > thresholds
Definition: ITrigMuonMatching.h:16
xAOD::Muon_v1::eta
virtual double eta() const
The pseudorapidity ( ) of the particle.
test_pyathena.pt
pt
Definition: test_pyathena.py:11
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
DataVector::get
const T * get(size_type n) const
Access an element, as an rvalue.
xAOD::eta1
setEt setPhi setE277 setWeta2 eta1
Definition: TrigEMCluster_v1.cxx:41
asg::AsgMetadataTool::m_beginInputFileCalled
bool m_beginInputFileCalled
Flag helping to discover when the tool misses the opening of the first input file.
Definition: AsgMetadataTool.h:126
python.TurnDataReader.dr
dr
Definition: TurnDataReader.py:112
asg::AsgMetadataTool::endInputFile
virtual StatusCode endInputFile()
Function called when the currently open input file got completely processed.
Definition: AsgMetadataTool.cxx:188
asg::AsgMetadataTool::m_outputMetaStore
MetaStore_t m_outputMetaStore
Object accessing the output metadata store.
Definition: AsgMetadataTool.h:121
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
ATH_MSG_VERBOSE
#define ATH_MSG_VERBOSE(x)
Definition: AthMsgStreamMacros.h:28
dbg::ptr
void * ptr(T *p)
Definition: SGImplSvc.cxx:74
beamspotman.tokens
tokens
Definition: beamspotman.py:1284
x
#define x
DimuonChainInfo::chain
std::string chain
Definition: ITrigMuonMatching.h:15
Trig::TrigMuonMatching::isEqual
bool isEqual(const double x, const double y) const
Definition: TrigMuonMatching.cxx:442
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
python.iconfTool.models.loaders.level
level
Definition: loaders.py:20
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
Trig::TrigMuonMatching::m_DimuonChainMap
std::map< std::string, DimuonChainInfo > m_DimuonChainMap
Definition: TrigMuonMatching.h:99
IDTPMcnv.htype
htype
Definition: IDTPMcnv.py:29
Trig::TrigMuonMatching::dR
double dR(const double eta1, const double phi1, const double eta2, const double phi2) const
Definition: TrigMuonMatching.cxx:281
AthCommonDataStore< AthCommonMsg< AlgTool > >::evtStore
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
Definition: AthCommonDataStore.h:85
calibdata.valid
list valid
Definition: calibdata.py:45
Trig::TrigMuonMatching::match
virtual Bool_t match(const xAOD::Muon *mu, const std::string &chain, const double mindelR=0.1) const override
Definition: TrigMuonMatching.cxx:41
Trig::TrigMuonMatching::m_trigDecTool
ToolHandle< Trig::TrigDecisionTool > m_trigDecTool
Definition: TrigMuonMatching.h:97
Trig::TrigMuonMatching::matchedTrackDetail
Double_t matchedTrackDetail(EFmuon &efMuonId, const EFmuon &usedEFMuonId, const double eta, const double phi, const double mindelR, const std::string &chainEventTrigger) const
Definition: TrigMuonMatching.cxx:339
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
Trig::TrigMuonMatching::getL1pt
int getL1pt(const std::string &l1item) const
Definition: TrigMuonMatching.cxx:293
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
asg::AsgMetadataTool::beginInputFile
virtual StatusCode beginInputFile()
Function called when a new input file is opened.
Definition: AsgMetadataTool.cxx:180
master.flag
bool flag
Definition: master.py:29
asg::AsgMetadataTool::metaDataStop
virtual StatusCode metaDataStop()
Function called when the tool should write out its metadata.
Definition: AsgMetadataTool.cxx:204
xAOD::Muon_v1::pt
virtual double pt() const
The transverse momentum ( ) of the particle.
python.xAODType.dummy
dummy
Definition: xAODType.py:4
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
MSG::name
const std::string & name(Level lvl)
Convenience function for translating message levels to strings.
Definition: MsgLevel.cxx:19
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
DataVector
Derived DataVector<T>.
Definition: DataVector.h:794
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
DimuonChainInfo::isValid
bool isValid
Definition: ITrigMuonMatching.h:19
MUONMASS
#define MUONMASS
Definition: TrigMuonMatching.cxx:18
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
asg::AsgMetadataTool::m_inputMetaStore
MetaStore_t m_inputMetaStore
Object accessing the input metadata store.
Definition: AsgMetadataTool.h:119
DimuonChainInfo
Definition: ITrigMuonMatching.h:13
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
threshold
Definition: chainparser.cxx:74
python.LumiBlobConversion.pos
pos
Definition: LumiBlobConversion.py:18
DataVector::end
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
Trig::TrigMuonMatching::matchDimuon
virtual Bool_t matchDimuon(const xAOD::Muon *mu1, const xAOD::Muon *mu2, const std::string &chain, std::pair< Bool_t, Bool_t > &result1, std::pair< Bool_t, Bool_t > &result2, const Double_t &mindelR=0.1) override
Definition: TrigMuonMatching.cxx:89
a
TList * a
Definition: liststreamerinfos.cxx:10
y
#define y
h
asg::AsgMetadataTool
Base class for dual-use tools that provide file metadata access.
Definition: AsgMetadataTool.h:48
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
Trig::TrigMuonMatching::decodeDimuonChain
bool decodeDimuonChain(DimuonChainInfo &chainInfo)
Definition: TrigMuonMatching.cxx:407
AthCommonMsg< AlgTool >::msg
MsgStream & msg() const
Definition: AthCommonMsg.h:24
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:623
str
Definition: BTagTrackIpAccessor.cxx:11
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:798
Trig::TrigMuonMatching::tokenize
void tokenize(const std::string &str, std::vector< std::string > &tokens, const std::string &delimiters) const
Definition: TrigMuonMatching.cxx:323
SG::DataProxy
Definition: DataProxy.h:45
CaloNoise_fillDB.mu
mu
Definition: CaloNoise_fillDB.py:53
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
dumpTgcDigiThreshold.threshold
list threshold
Definition: dumpTgcDigiThreshold.py:34
VP1PartSpect::Pi
@ Pi
Definition: VP1PartSpectFlags.h:27
python.trfValidateRootFile.rc
rc
Definition: trfValidateRootFile.py:355
DataVector::begin
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
fitman.k
k
Definition: fitman.py:528
ServiceHandle< IIncidentSvc >
DimuonChainInfo::isSymmetric
bool isSymmetric
Definition: ITrigMuonMatching.h:18
asg::AsgMetadataTool::m_useIncidents
bool m_useIncidents
Definition: AsgMetadataTool.h:128