ATLAS Offline Software
Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
DerivationFramework::DiMuonTaggingAlg Class Reference

#include <DiMuonTaggingAlg.h>

Inheritance diagram for DerivationFramework::DiMuonTaggingAlg:
Collaboration diagram for DerivationFramework::DiMuonTaggingAlg:

Public Member Functions

 DiMuonTaggingAlg (const std::string &name, ISvcLocator *pSvcLocator)
 Constructor with parameters. More...
 
virtual ~DiMuonTaggingAlg ()=default
 Destructor. More...
 
StatusCode initialize () override
 
virtual StatusCode execute (const EventContext &ctx) const override
 
virtual StatusCode sysInitialize () override
 Override sysInitialize. More...
 
virtual bool isClonable () const override
 Specify if the algorithm is clonable. More...
 
virtual unsigned int cardinality () const override
 Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant. More...
 
virtual StatusCode sysExecute (const EventContext &ctx) override
 Execute an algorithm. More...
 
virtual const DataObjIDColl & extraOutputDeps () const override
 Return the list of extra output dependencies. More...
 
virtual bool filterPassed (const EventContext &ctx) const
 
virtual void setFilterPassed (bool state, const EventContext &ctx) 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 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

using TrackPassDecor = SG::WriteDecorHandle< xAOD::TrackParticleContainer, bool >
 
typedef ServiceHandle< StoreGateSvcStoreGateSvc_t
 

Private Member Functions

bool passKinematicCuts (const xAOD::IParticle *mu, const float ptMin, const float absEtaMax) const
 Returns true of the pointer is valid and also whether the pt and absEta are above and below the thresholds, respectively. More...
 
bool passMuonCuts (const xAOD::Muon *muon, const float ptMin, const float absEtaMax, const bool applyQuality) const
 
bool passTrigger (const xAOD::Muon *muon, const std::vector< std::string > &trigList) const
 
template<class probe_type >
bool muonPairCheck (const xAOD::Muon *mu1, const probe_type *mu2) const
 
void maskNearbyIDtracks (const xAOD::IParticle *mu, TrackPassDecor &decor) 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

Gaudi::Property< bool > m_applyTrig
 
Gaudi::Property< std::vector< std::string > > m_orTrigs {this, "OrTrigs", {}}
 List of triggers in which at least one muon in the pair needs to pass. More...
 
Gaudi::Property< std::vector< std::string > > m_andTrigs {this, "AndTrigs", {}}
 List of trigger in which both muons need to pass the selection. More...
 
ToolHandle< Trig::IMatchingToolm_matchingTool
 
Gaudi::Property< float > m_triggerMatchDeltaR {this, "TriggerMatchDeltaR", 0.1}
 
SG::ReadHandleKey< xAOD::MuonContainerm_muonSGKey {this, "MuonContainerKey", "Muons"}
 
SG::ReadHandleKey< xAOD::TrackParticleContainerm_trackSGKey {this, "TrackContainerKey", "InDetTrackParticles"}
 
SG::ReadHandleKey< xAOD::TruthParticleContainerm_truthSGKey {this, "TruthKey", ""}
 
SG::WriteDecorHandleKey< xAOD::MuonContainerm_muonKeepKey
 Keys to whitelist the muons & tracks needed for MCP studies to output. More...
 
SG::WriteDecorHandleKey< xAOD::TrackParticleContainerm_trkKeepKey
 
SG::WriteHandleKey< int > m_skimmingKey {this, "SkimmingKey", "", "Set via BranchPreFixProperty + DIMU_pass"}
 Event Decision Key. More...
 
ToolHandle< CP::IMuonSelectionToolm_muonSelTool {this, "SelectionTool", ""}
 Selection tool to filter muons with poor quality. More...
 
Gaudi::Property< float > m_mu1PtMin {this, "Mu1PtMin", -1}
 Pt cut on the primary muon in the event. More...
 
Gaudi::Property< float > m_mu1AbsEtaMax {this, "Mu1AbsEtaMax", 10}
 Eta cut on the primary muon in the event. More...
 
Gaudi::Property< bool > m_applyQualityMu1 {this, "Mu1RequireQual", false}
 Flag to toggle whether selection working point should be applied on the first muon. More...
 
Gaudi::Property< float > m_mu2PtMin {this, "Mu2PtMin", -1}
 Pt cut on the second muon in the event. More...
 
Gaudi::Property< float > m_mu2AbsEtaMax {this, "Mu2AbsEtaMax", 10}
 Eta cut on the second muon in the event. More...
 
Gaudi::Property< bool > m_applyQualityMu2 {this, "Mu2RequireQual", false}
 Flag to toggle whether the selection working point should be applied on the second muon. More...
 
Gaudi::Property< bool > m_isMC {this, "isMC", false}
 Flag whether it's MC. More...
 
Gaudi::Property< bool > m_useTrackProbe {this, "UseTrackProbe", false}
 Run the analysis with a Muon <--> Track pair — Muon has to hold criteria 1 and track to satisfy kinematic criteria 2. More...
 
Gaudi::Property< std::string > m_br_prefix {this, "BranchPrefix", ""}
 Name of the ouput selection flag. More...
 
Gaudi::Property< bool > m_requireOS {this, "OppositeCharge", true}
 Both particles have to be of opposite charge. More...
 
Gaudi::Property< float > m_dPhiMin {this, "PairDPhiMin", -1}
 Require a minimal delta Phi between the two selected candidates. More...
 
Gaudi::Property< float > m_invariantMassLow {this, "InvariantMassLow", 2.0 * Gaudi::Units::GeV}
 Lower invariant mass selection window. More...
 
Gaudi::Property< float > m_invariantMassHigh {this, "InvariantMassHigh",-1.*Gaudi::Units::GeV}
 Upper invariant mass selection window (Negative number refers to disable) More...
 
Gaudi::Property< float > m_thinningConeSize {this, "IDTrackThinningConeSize", 0.4}
 
float m_invariantMassLow2 {0}
 
float m_invariantMassHigh2 {0}
 
float m_thinningConeSize2 {0}
 
DataObjIDColl m_extendedExtraObjects
 Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks. More...
 
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default) More...
 
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default) More...
 
std::vector< SG::VarHandleKeyArray * > m_vhka
 
bool m_varHandleArraysDeclared
 

Detailed Description

Definition at line 24 of file DiMuonTaggingAlg.h.

Member Typedef Documentation

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

◆ TrackPassDecor

Definition at line 37 of file DiMuonTaggingAlg.h.

Constructor & Destructor Documentation

◆ DiMuonTaggingAlg()

DerivationFramework::DiMuonTaggingAlg::DiMuonTaggingAlg ( const std::string &  name,
ISvcLocator *  pSvcLocator 
)

Constructor with parameters.

Definition at line 19 of file DiMuonTaggingAlg.cxx.

19  :
20  AthReentrantAlgorithm(name, pSvcLocator) {}

◆ ~DiMuonTaggingAlg()

virtual DerivationFramework::DiMuonTaggingAlg::~DiMuonTaggingAlg ( )
virtualdefault

Destructor.

Member Function Documentation

◆ cardinality()

unsigned int AthReentrantAlgorithm::cardinality ( ) const
overridevirtualinherited

Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant.

Override this to return 0 for reentrant algorithms.

Override this to return 0 for reentrant algorithms.

Definition at line 55 of file AthReentrantAlgorithm.cxx.

56 {
57  return 0;
58 }

◆ declareGaudiProperty() [1/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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; }

◆ execute()

StatusCode DerivationFramework::DiMuonTaggingAlg::execute ( const EventContext &  ctx) const
overridevirtual

muon selection

Retrieve the truth particle container if it's available

Save all muons coming from truth

Close by tracks are written as well to ensure that we can redo the isolation variables for our probes

Definition at line 52 of file DiMuonTaggingAlg.cxx.

52  {
53  SG::WriteHandle<int> keepEventHandle{m_skimmingKey, ctx};
54  ATH_CHECK(keepEventHandle.record(std::make_unique<int>(0)));
55  int& keepEvent = *keepEventHandle;
56 
59  if (!muons.isValid()) {
60  ATH_MSG_FATAL("Failed to retrieve " << m_muonSGKey.fullKey());
61  return StatusCode::FAILURE;
62  }
63  MuonPassDecor muo_decor{makeHandle<bool>(ctx, m_muonKeepKey)};
64  ATH_MSG_VERBOSE("Event "<<ctx.eventID().event_number()<<" - Retrieved muon Container from "<<m_muonSGKey.fullKey()<<" which contains "
65  <<muons->size()<<" muons. Created "<<muo_decor.decorKey()
66  <<" "<<SG::AuxTypeRegistry::instance().getName(muo_decor.auxid()));
67 
68 
70  std::vector<const xAOD::TruthParticle*> truth{};
71  if (!m_truthSGKey.empty()) {
72 
74  if (!handle.isValid()) {
75  ATH_MSG_FATAL("Failed to retrieve truth container " << m_truthSGKey.fullKey());
76  return StatusCode::FAILURE;
77  }
78  truth.reserve(handle->size());
79  std::copy_if(handle->begin(), handle->end(), std::back_inserter(truth),
80  [](const xAOD::TruthParticle* tpart) {
81  return MC::isStable(tpart) &&
82  !HepMC::is_simulation_particle(tpart) &&
83  tpart->isMuon();
84  });
85  }
86  for (const xAOD::Muon* mu_itr1 : *muons) {
88  if(std::find_if(truth.begin(), truth.end(),
89  [&](const xAOD::TruthParticle* truth_itr) {
90  return xAOD::P4Helpers::deltaR2(truth_itr, mu_itr1) < m_thinningConeSize2;
91  }) != truth.end()){
92  muo_decor(*mu_itr1) = true;
93  }
94 
95  ATH_MSG_VERBOSE("Check tag muon: "<<mu_itr1->pt() * MeVtoGeV<<" [GeV], eta: "<<mu_itr1->eta()
96  <<", phi: "<<mu_itr1->phi()<<", author: "<<mu_itr1->author());
98  ATH_MSG_VERBOSE("Muon failed selection criteria");
99  continue;
100  }
101  bool passOrTrig = passTrigger(mu_itr1, m_orTrigs);
102  bool passAndTrig = !m_andTrigs.empty() && passTrigger(mu_itr1, m_andTrigs);
103  for (const xAOD::Muon* mu_itr2 : *muons) {
104  if (mu_itr2 == mu_itr1) continue;
105  ATH_MSG_VERBOSE("Check probe muon: "<<mu_itr2->pt() * MeVtoGeV<<" [GeV], eta: "<<mu_itr2->eta()
106  <<", phi: "<<mu_itr2->phi()<<", author: "<<mu_itr2->author());
108  continue;
109  }
110  if (!muonPairCheck(mu_itr1, mu_itr2)) continue;
111  bool passDiLepTrig = passOrTrig || passTrigger(mu_itr2, m_orTrigs) || (passAndTrig && passTrigger(mu_itr2, m_andTrigs));
112  if (!passDiLepTrig) {
113  ATH_MSG_DEBUG("Trigger selection failed");
114  continue;
115  }
116  muo_decor(*mu_itr1) = true;
117  muo_decor(*mu_itr2) = true;
118  ATH_MSG_VERBOSE("T&P pair accepted");
119  ++keepEvent;
120  }
121  }
122  if (!m_useTrackProbe) {
123  return StatusCode::SUCCESS;
124  }
125 
127  if (!tracks.isValid()) {
128  ATH_MSG_FATAL("Failed to retrieve " << m_trackSGKey.fullKey());
129  return StatusCode::FAILURE;
130  }
131  ATH_MSG_VERBOSE("Event "<<ctx.eventID().event_number()<<" - Retrieved track Container from "<<m_trackSGKey.fullKey()<<" which contains "
132  <<tracks->size()<<" tracks.");
133  TrackPassDecor trk_decor{makeHandle<bool>(ctx, m_trkKeepKey)};
134  for (const xAOD::Muon* mu_itr1 : *muons) {
136  ATH_MSG_VERBOSE("Muon does not pass the trigger selection");
137  continue;
138  }
139  if (!passTrigger(mu_itr1, m_orTrigs)) {
140  ATH_MSG_VERBOSE("Muon does not trigger the event");
141  continue;
142  }
143 
144  for (const xAOD::TrackParticle* probe_trk : *tracks) {
145  if (probe_trk == mu_itr1->trackParticle(xAOD::Muon::TrackParticleType::InnerDetectorTrackParticle)) continue;
146  if (!passKinematicCuts(probe_trk, m_mu2PtMin, m_mu2AbsEtaMax)) continue;
147  if (!muonPairCheck(mu_itr1, probe_trk)) continue;
148  trk_decor(*probe_trk) = true;
149  ++keepEvent;
152  maskNearbyIDtracks(probe_trk, trk_decor);
153 
154  }
155  }
157  for (const xAOD::TruthParticle* mu_itr2 : truth) {
158  maskNearbyIDtracks(mu_itr2, trk_decor);
159  }
160  for (const xAOD::Muon* mu_itr : *muons) {
161  passKinematicCuts(mu_itr, -1., -1.);
162  ATH_MSG_VERBOSE("Pass decoration "<<muo_decor(*mu_itr));
163  }
164  return StatusCode::SUCCESS;
165  }

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::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

◆ extraOutputDeps()

const DataObjIDColl & AthReentrantAlgorithm::extraOutputDeps ( ) const
overridevirtualinherited

Return the list of extra output dependencies.

This list is extended to include symlinks implied by inheritance relations.

Definition at line 79 of file AthReentrantAlgorithm.cxx.

80 {
81  // If we didn't find any symlinks to add, just return the collection
82  // from the base class. Otherwise, return the extended collection.
83  if (!m_extendedExtraObjects.empty()) {
85  }
86  return Algorithm::extraOutputDeps();
87 }

◆ filterPassed()

virtual bool AthReentrantAlgorithm::filterPassed ( const EventContext &  ctx) const
inlinevirtualinherited

Definition at line 135 of file AthReentrantAlgorithm.h.

135  {
136  return execState( ctx ).filterPassed();
137  }

◆ initialize()

StatusCode DerivationFramework::DiMuonTaggingAlg::initialize ( )
override

Definition at line 23 of file DiMuonTaggingAlg.cxx.

23  {
24  ATH_MSG_VERBOSE("initialize() ...");
25 
26  // trigger decision tool, needed when there is trigger requirement
27  if (!m_applyTrig) {
28  m_orTrigs.clear();
29  m_andTrigs.clear();
30  }
31  const bool has_trigs = m_orTrigs.size() || m_andTrigs.size();
32  ATH_CHECK(m_matchingTool.retrieve(EnableTool{has_trigs}));
33 
34  ATH_CHECK(m_muonSGKey.initialize());
37  ATH_CHECK(m_muonSelTool.retrieve(EnableTool{m_applyQualityMu1 || m_applyQualityMu2}));
38  m_muonKeepKey = "pass" + m_br_prefix.value();
39  m_trkKeepKey = "pass" + m_br_prefix.value();
40  m_skimmingKey = "DIMU_pass" + m_br_prefix;
41  ATH_CHECK(m_muonKeepKey.initialize());
44 
48 
49  return StatusCode::SUCCESS;
50  }

◆ inputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::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.

◆ isClonable()

bool AthReentrantAlgorithm::isClonable ( ) const
overridevirtualinherited

◆ maskNearbyIDtracks()

void DerivationFramework::DiMuonTaggingAlg::maskNearbyIDtracks ( const xAOD::IParticle mu,
TrackPassDecor decor 
) const
private

Definition at line 166 of file DiMuonTaggingAlg.cxx.

166  {
167  for (const xAOD::TrackParticle* trk : *decor) {
168  if (xAOD::P4Helpers::deltaR2(ref_part, trk) < m_thinningConeSize2) decor(*trk) = true;
169  }
170  }

◆ msg() [1/2]

MsgStream& AthCommonMsg< Gaudi::Algorithm >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

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

◆ msg() [2/2]

MsgStream& AthCommonMsg< Gaudi::Algorithm >::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< Gaudi::Algorithm >::msgLvl ( const MSG::Level  lvl) const
inlineinherited

Definition at line 30 of file AthCommonMsg.h.

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

◆ muonPairCheck()

template<class probe_type >
bool DerivationFramework::DiMuonTaggingAlg::muonPairCheck ( const xAOD::Muon mu1,
const probe_type *  mu2 
) const
private

Definition at line 184 of file DiMuonTaggingAlg.cxx.

184  {
185  if (m_requireOS != (mu1->charge() * mu2->charge() < 0)) {
186  ATH_MSG_VERBOSE("Charge cut failed ");
187  return false;
188  }
189  if (m_dPhiMin > 0 && std::abs(xAOD::P4Helpers::deltaPhi(mu1, mu2)) < m_dPhiMin) {
190  ATH_MSG_VERBOSE("Delta phi cut "<<m_dPhiMin<<" was undercut "<<std::abs(xAOD::P4Helpers::deltaPhi(mu1, mu2)));
191  return false;
192  }
193  const float mass2 = (mu1->p4() + mu2->p4()).M2();
194  ATH_MSG_VERBOSE("Invariant mass "<<std::sqrt(mass2)*MeVtoGeV<<" need to be in the window ["
196  return !(mass2 < m_invariantMassLow2 || (m_invariantMassHigh > 0. && mass2 > m_invariantMassHigh2));
197  }

◆ outputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::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.

◆ passKinematicCuts()

bool DerivationFramework::DiMuonTaggingAlg::passKinematicCuts ( const xAOD::IParticle mu,
const float  ptMin,
const float  absEtaMax 
) const
private

Returns true of the pointer is valid and also whether the pt and absEta are above and below the thresholds, respectively.

Definition at line 171 of file DiMuonTaggingAlg.cxx.

171  {
172  ATH_MSG_VERBOSE("Particle with pt: "<<mu->pt() * MeVtoGeV<<" [GeV], eta: "<<mu->eta()
173  <<", phi: "<<mu->phi()<<", needs to be more energetic than "<<ptMin * MeVtoGeV<<" [GeV] and within "<<absEtaMax);
174  return !(!mu || mu->pt() < ptMin || std::abs(mu->eta()) > absEtaMax);
175  }

◆ passMuonCuts()

bool DerivationFramework::DiMuonTaggingAlg::passMuonCuts ( const xAOD::Muon muon,
const float  ptMin,
const float  absEtaMax,
const bool  applyQuality 
) const
private

Definition at line 176 of file DiMuonTaggingAlg.cxx.

176  {
177  return passKinematicCuts(muon, ptMin, absEtaMax) && (!applyQuality || m_muonSelTool->accept(*muon));
178  }

◆ passTrigger()

bool DerivationFramework::DiMuonTaggingAlg::passTrigger ( const xAOD::Muon muon,
const std::vector< std::string > &  trigList 
) const
private

Definition at line 179 of file DiMuonTaggingAlg.cxx.

179  {
180  return trigList.empty() || std::find_if(trigList.begin(), trigList.end(), [&](const std::string& trig_item){
181  return m_matchingTool->match(*muon, trig_item, m_triggerMatchDeltaR);
182  }) != trigList.end();
183  }

◆ 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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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  }

◆ setFilterPassed()

virtual void AthReentrantAlgorithm::setFilterPassed ( bool  state,
const EventContext &  ctx 
) const
inlinevirtualinherited

Definition at line 139 of file AthReentrantAlgorithm.h.

139  {
140  execState( ctx ).setFilterPassed( state );
141  }

◆ sysExecute()

StatusCode AthReentrantAlgorithm::sysExecute ( const EventContext &  ctx)
overridevirtualinherited

Execute an algorithm.

We override this in order to work around an issue with the Algorithm base class storing the event context in a member variable that can cause crashes in MT jobs.

Definition at line 67 of file AthReentrantAlgorithm.cxx.

68 {
69  return Gaudi::Algorithm::sysExecute (ctx);
70 }

◆ sysInitialize()

StatusCode AthReentrantAlgorithm::sysInitialize ( )
overridevirtualinherited

Override sysInitialize.

Override sysInitialize from the base class.

Loop through all output handles, and if they're WriteCondHandles, automatically register them and this Algorithm with the CondSvc

Scan through all outputHandles, and if they're WriteCondHandles, register them with the CondSvc

Reimplemented from AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >.

Reimplemented in InputMakerBase, and HypoBase.

Definition at line 96 of file AthReentrantAlgorithm.cxx.

96  {
98 
99  if (sc.isFailure()) {
100  return sc;
101  }
102 
103  ServiceHandle<ICondSvc> cs("CondSvc",name());
104  for (auto h : outputHandles()) {
105  if (h->isCondition() && h->mode() == Gaudi::DataHandle::Writer) {
106  // do this inside the loop so we don't create the CondSvc until needed
107  if ( cs.retrieve().isFailure() ) {
108  ATH_MSG_WARNING("no CondSvc found: won't autoreg WriteCondHandles");
109  return StatusCode::SUCCESS;
110  }
111  if (cs->regHandle(this,*h).isFailure()) {
112  sc = StatusCode::FAILURE;
113  ATH_MSG_ERROR("unable to register WriteCondHandle " << h->fullKey()
114  << " with CondSvc");
115  }
116  }
117  }
118  return sc;
119 }

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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_andTrigs

Gaudi::Property<std::vector<std::string> > DerivationFramework::DiMuonTaggingAlg::m_andTrigs {this, "AndTrigs", {}}
private

List of trigger in which both muons need to pass the selection.

Definition at line 56 of file DiMuonTaggingAlg.h.

◆ m_applyQualityMu1

Gaudi::Property<bool> DerivationFramework::DiMuonTaggingAlg::m_applyQualityMu1 {this, "Mu1RequireQual", false}
private

Flag to toggle whether selection working point should be applied on the first muon.

Definition at line 87 of file DiMuonTaggingAlg.h.

◆ m_applyQualityMu2

Gaudi::Property<bool> DerivationFramework::DiMuonTaggingAlg::m_applyQualityMu2 {this, "Mu2RequireQual", false}
private

Flag to toggle whether the selection working point should be applied on the second muon.

Definition at line 94 of file DiMuonTaggingAlg.h.

◆ m_applyTrig

Gaudi::Property<bool> DerivationFramework::DiMuonTaggingAlg::m_applyTrig
private
Initial value:
{this, "applyTrigger", true,
"Flag deciding whether the trigger selection should be applied"}

Definition at line 50 of file DiMuonTaggingAlg.h.

◆ m_br_prefix

Gaudi::Property<std::string> DerivationFramework::DiMuonTaggingAlg::m_br_prefix {this, "BranchPrefix", ""}
private

Name of the ouput selection flag.

Definition at line 102 of file DiMuonTaggingAlg.h.

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_dPhiMin

Gaudi::Property<float> DerivationFramework::DiMuonTaggingAlg::m_dPhiMin {this, "PairDPhiMin", -1}
private

Require a minimal delta Phi between the two selected candidates.

Definition at line 107 of file DiMuonTaggingAlg.h.

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_extendedExtraObjects

DataObjIDColl AthReentrantAlgorithm::m_extendedExtraObjects
privateinherited

Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.

Empty if no symlinks were found.

Definition at line 153 of file AthReentrantAlgorithm.h.

◆ m_invariantMassHigh

Gaudi::Property<float> DerivationFramework::DiMuonTaggingAlg::m_invariantMassHigh {this, "InvariantMassHigh",-1.*Gaudi::Units::GeV}
private

Upper invariant mass selection window (Negative number refers to disable)

Definition at line 111 of file DiMuonTaggingAlg.h.

◆ m_invariantMassHigh2

float DerivationFramework::DiMuonTaggingAlg::m_invariantMassHigh2 {0}
private

Definition at line 116 of file DiMuonTaggingAlg.h.

◆ m_invariantMassLow

Gaudi::Property<float> DerivationFramework::DiMuonTaggingAlg::m_invariantMassLow {this, "InvariantMassLow", 2.0 * Gaudi::Units::GeV}
private

Lower invariant mass selection window.

Definition at line 109 of file DiMuonTaggingAlg.h.

◆ m_invariantMassLow2

float DerivationFramework::DiMuonTaggingAlg::m_invariantMassLow2 {0}
private

Definition at line 115 of file DiMuonTaggingAlg.h.

◆ m_isMC

Gaudi::Property<bool> DerivationFramework::DiMuonTaggingAlg::m_isMC {this, "isMC", false}
private

Flag whether it's MC.

Definition at line 97 of file DiMuonTaggingAlg.h.

◆ m_matchingTool

ToolHandle<Trig::IMatchingTool> DerivationFramework::DiMuonTaggingAlg::m_matchingTool
private
Initial value:
{this, "TrigMatchingTool", "",
"Tool to access the trigger decision"}

Definition at line 59 of file DiMuonTaggingAlg.h.

◆ m_mu1AbsEtaMax

Gaudi::Property<float> DerivationFramework::DiMuonTaggingAlg::m_mu1AbsEtaMax {this, "Mu1AbsEtaMax", 10}
private

Eta cut on the primary muon in the event.

Definition at line 85 of file DiMuonTaggingAlg.h.

◆ m_mu1PtMin

Gaudi::Property<float> DerivationFramework::DiMuonTaggingAlg::m_mu1PtMin {this, "Mu1PtMin", -1}
private

Pt cut on the primary muon in the event.

Definition at line 83 of file DiMuonTaggingAlg.h.

◆ m_mu2AbsEtaMax

Gaudi::Property<float> DerivationFramework::DiMuonTaggingAlg::m_mu2AbsEtaMax {this, "Mu2AbsEtaMax", 10}
private

Eta cut on the second muon in the event.

Definition at line 92 of file DiMuonTaggingAlg.h.

◆ m_mu2PtMin

Gaudi::Property<float> DerivationFramework::DiMuonTaggingAlg::m_mu2PtMin {this, "Mu2PtMin", -1}
private

Pt cut on the second muon in the event.

Definition at line 90 of file DiMuonTaggingAlg.h.

◆ m_muonKeepKey

SG::WriteDecorHandleKey<xAOD::MuonContainer> DerivationFramework::DiMuonTaggingAlg::m_muonKeepKey
private
Initial value:
{this, "MuonKeepKey", m_muonSGKey, "",
"Key to whitelist the muon for writeout. Will be overwritten by BranchPrefix property"}

Keys to whitelist the muons & tracks needed for MCP studies to output.

Definition at line 73 of file DiMuonTaggingAlg.h.

◆ m_muonSelTool

ToolHandle<CP::IMuonSelectionTool> DerivationFramework::DiMuonTaggingAlg::m_muonSelTool {this, "SelectionTool", ""}
private

Selection tool to filter muons with poor quality.

Definition at line 81 of file DiMuonTaggingAlg.h.

◆ m_muonSGKey

SG::ReadHandleKey<xAOD::MuonContainer> DerivationFramework::DiMuonTaggingAlg::m_muonSGKey {this, "MuonContainerKey", "Muons"}
private

Definition at line 66 of file DiMuonTaggingAlg.h.

◆ m_orTrigs

Gaudi::Property<std::vector<std::string> > DerivationFramework::DiMuonTaggingAlg::m_orTrigs {this, "OrTrigs", {}}
private

List of triggers in which at least one muon in the pair needs to pass.

Definition at line 54 of file DiMuonTaggingAlg.h.

◆ m_requireOS

Gaudi::Property<bool> DerivationFramework::DiMuonTaggingAlg::m_requireOS {this, "OppositeCharge", true}
private

Both particles have to be of opposite charge.

Definition at line 105 of file DiMuonTaggingAlg.h.

◆ m_skimmingKey

SG::WriteHandleKey<int> DerivationFramework::DiMuonTaggingAlg::m_skimmingKey {this, "SkimmingKey", "", "Set via BranchPreFixProperty + DIMU_pass"}
private

Event Decision Key.

Definition at line 78 of file DiMuonTaggingAlg.h.

◆ m_thinningConeSize

Gaudi::Property<float> DerivationFramework::DiMuonTaggingAlg::m_thinningConeSize {this, "IDTrackThinningConeSize", 0.4}
private

Definition at line 113 of file DiMuonTaggingAlg.h.

◆ m_thinningConeSize2

float DerivationFramework::DiMuonTaggingAlg::m_thinningConeSize2 {0}
private

Definition at line 117 of file DiMuonTaggingAlg.h.

◆ m_trackSGKey

SG::ReadHandleKey<xAOD::TrackParticleContainer> DerivationFramework::DiMuonTaggingAlg::m_trackSGKey {this, "TrackContainerKey", "InDetTrackParticles"}
private

Definition at line 68 of file DiMuonTaggingAlg.h.

◆ m_triggerMatchDeltaR

Gaudi::Property<float> DerivationFramework::DiMuonTaggingAlg::m_triggerMatchDeltaR {this, "TriggerMatchDeltaR", 0.1}
private

Definition at line 63 of file DiMuonTaggingAlg.h.

◆ m_trkKeepKey

SG::WriteDecorHandleKey<xAOD::TrackParticleContainer> DerivationFramework::DiMuonTaggingAlg::m_trkKeepKey
private
Initial value:
{this, "TrackKeepKey", m_trackSGKey, "",
"Key to whitelist the tracks for writeout. Will be overwritten by BranchPreFix property"}

Definition at line 75 of file DiMuonTaggingAlg.h.

◆ m_truthSGKey

SG::ReadHandleKey<xAOD::TruthParticleContainer> DerivationFramework::DiMuonTaggingAlg::m_truthSGKey {this, "TruthKey", ""}
private

Definition at line 70 of file DiMuonTaggingAlg.h.

◆ m_useTrackProbe

Gaudi::Property<bool> DerivationFramework::DiMuonTaggingAlg::m_useTrackProbe {this, "UseTrackProbe", false}
private

Run the analysis with a Muon <--> Track pair — Muon has to hold criteria 1 and track to satisfy kinematic criteria 2.

Definition at line 100 of file DiMuonTaggingAlg.h.

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

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

Definition at line 398 of file AthCommonDataStore.h.


The documentation for this class was generated from the following files:
DerivationFramework::DiMuonTaggingAlg::m_applyQualityMu1
Gaudi::Property< bool > m_applyQualityMu1
Flag to toggle whether selection working point should be applied on the first muon.
Definition: DiMuonTaggingAlg.h:87
DerivationFramework::DiMuonTaggingAlg::m_dPhiMin
Gaudi::Property< float > m_dPhiMin
Require a minimal delta Phi between the two selected candidates.
Definition: DiMuonTaggingAlg.h:107
xAOD::muon
@ muon
Definition: TrackingPrimitives.h:195
ATH_MSG_FATAL
#define ATH_MSG_FATAL(x)
Definition: AthMsgStreamMacros.h:34
DerivationFramework::DiMuonTaggingAlg::m_muonSelTool
ToolHandle< CP::IMuonSelectionTool > m_muonSelTool
Selection tool to filter muons with poor quality.
Definition: DiMuonTaggingAlg.h:81
DerivationFramework::DiMuonTaggingAlg::m_trkKeepKey
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > m_trkKeepKey
Definition: DiMuonTaggingAlg.h:75
DerivationFramework::DiMuonTaggingAlg::m_requireOS
Gaudi::Property< bool > m_requireOS
Both particles have to be of opposite charge.
Definition: DiMuonTaggingAlg.h:105
SG::AuxTypeRegistry::instance
static AuxTypeRegistry & instance()
Return the singleton registry instance.
Definition: AuxTypeRegistry.cxx:639
xAOD::Muon_v1::p4
virtual FourMom_t p4() const
The full 4-momentum of the particle.
Definition: Muon_v1.cxx:79
SG::ReadHandle
Definition: StoreGate/StoreGate/ReadHandle.h:70
AthCommonDataStore::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
DerivationFramework::DiMuonTaggingAlg::passMuonCuts
bool passMuonCuts(const xAOD::Muon *muon, const float ptMin, const float absEtaMax, const bool applyQuality) const
Definition: DiMuonTaggingAlg.cxx:176
SG::AuxTypeRegistry::getName
std::string getName(SG::auxid_t auxid) const
Return the name of an aux data item.
Definition: AuxTypeRegistry.cxx:881
DerivationFramework::DiMuonTaggingAlg::m_thinningConeSize
Gaudi::Property< float > m_thinningConeSize
Definition: DiMuonTaggingAlg.h:113
DerivationFramework::DiMuonTaggingAlg::m_applyQualityMu2
Gaudi::Property< bool > m_applyQualityMu2
Flag to toggle whether the selection working point should be applied on the second muon.
Definition: DiMuonTaggingAlg.h:94
AthCommonDataStore::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 > renounce(T &h)
Definition: AthCommonDataStore.h:380
DerivationFramework::DiMuonTaggingAlg::m_thinningConeSize2
float m_thinningConeSize2
Definition: DiMuonTaggingAlg.h:117
CP::MeVtoGeV
constexpr float MeVtoGeV
Definition: IsolationCloseByCorrectionTool.cxx:33
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
DerivationFramework::DiMuonTaggingAlg::m_br_prefix
Gaudi::Property< std::string > m_br_prefix
Name of the ouput selection flag.
Definition: DiMuonTaggingAlg.h:102
DerivationFramework::DiMuonTaggingAlg::m_applyTrig
Gaudi::Property< bool > m_applyTrig
Definition: DiMuonTaggingAlg.h:50
DerivationFramework::DiMuonTaggingAlg::m_mu1PtMin
Gaudi::Property< float > m_mu1PtMin
Pt cut on the primary muon in the event.
Definition: DiMuonTaggingAlg.h:83
xAOD::P4Helpers::deltaPhi
double deltaPhi(double phiA, double phiB)
delta Phi in range [-pi,pi[
Definition: xAODP4Helpers.h:69
DerivationFramework::DiMuonTaggingAlg::m_truthSGKey
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_truthSGKey
Definition: DiMuonTaggingAlg.h:70
DerivationFramework::DiMuonTaggingAlg::m_mu2PtMin
Gaudi::Property< float > m_mu2PtMin
Pt cut on the second muon in the event.
Definition: DiMuonTaggingAlg.h:90
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
ATH_MSG_VERBOSE
#define ATH_MSG_VERBOSE(x)
Definition: AthMsgStreamMacros.h:28
DerivationFramework::DiMuonTaggingAlg::m_isMC
Gaudi::Property< bool > m_isMC
Flag whether it's MC.
Definition: DiMuonTaggingAlg.h:97
DerivationFramework::DiMuonTaggingAlg::m_invariantMassHigh
Gaudi::Property< float > m_invariantMassHigh
Upper invariant mass selection window (Negative number refers to disable)
Definition: DiMuonTaggingAlg.h:111
xAOD::P4Helpers::deltaR2
double deltaR2(double rapidity1, double phi1, double rapidity2, double phi2)
from bare rapidity,phi
Definition: xAODP4Helpers.h:111
SG::VarHandleKey::empty
bool empty() const
Test if the key is blank.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:150
xAOD::Muon_v1
Class describing a Muon.
Definition: Muon_v1.h:38
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
DerivationFramework::DiMuonTaggingAlg::passKinematicCuts
bool passKinematicCuts(const xAOD::IParticle *mu, const float ptMin, const float absEtaMax) const
Returns true of the pointer is valid and also whether the pt and absEta are above and below the thres...
Definition: DiMuonTaggingAlg.cxx:171
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
IDTPMcnv.htype
htype
Definition: IDTPMcnv.py:29
DerivationFramework::DiMuonTaggingAlg::m_invariantMassLow
Gaudi::Property< float > m_invariantMassLow
Lower invariant mass selection window.
Definition: DiMuonTaggingAlg.h:109
xAOD::Muon_v1::charge
float charge() const
DerivationFramework::DiMuonTaggingAlg::TrackPassDecor
SG::WriteDecorHandle< xAOD::TrackParticleContainer, bool > TrackPassDecor
Definition: DiMuonTaggingAlg.h:37
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
DerivationFramework::DiMuonTaggingAlg::m_mu2AbsEtaMax
Gaudi::Property< float > m_mu2AbsEtaMax
Eta cut on the second muon in the event.
Definition: DiMuonTaggingAlg.h:92
AthCommonDataStore
Definition: AthCommonDataStore.h:52
AthReentrantAlgorithm::AthReentrantAlgorithm
AthReentrantAlgorithm()
Default constructor:
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
DerivationFramework::DiMuonTaggingAlg::m_orTrigs
Gaudi::Property< std::vector< std::string > > m_orTrigs
List of triggers in which at least one muon in the pair needs to pass.
Definition: DiMuonTaggingAlg.h:54
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::outputHandles
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
xAOD::TruthParticle_v1
Class describing a truth particle in the MC record.
Definition: TruthParticle_v1.h:37
DerivationFramework::DiMuonTaggingAlg::m_invariantMassHigh2
float m_invariantMassHigh2
Definition: DiMuonTaggingAlg.h:116
DerivationFramework::DiMuonTaggingAlg::muonPairCheck
bool muonPairCheck(const xAOD::Muon *mu1, const probe_type *mu2) const
Definition: DiMuonTaggingAlg.cxx:184
DerivationFramework::DiMuonTaggingAlg::m_invariantMassLow2
float m_invariantMassLow2
Definition: DiMuonTaggingAlg.h:115
AnalysisUtils::copy_if
Out copy_if(In first, const In &last, Out res, const Pred &p)
Definition: IFilterUtils.h:30
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
DerivationFramework::DiMuonTaggingAlg::m_skimmingKey
SG::WriteHandleKey< int > m_skimmingKey
Event Decision Key.
Definition: DiMuonTaggingAlg.h:78
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
SG::VarHandleKey::initialize
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:103
DerivationFramework::DiMuonTaggingAlg::m_mu1AbsEtaMax
Gaudi::Property< float > m_mu1AbsEtaMax
Eta cut on the primary muon in the event.
Definition: DiMuonTaggingAlg.h:85
AthReentrantAlgorithm::m_extendedExtraObjects
DataObjIDColl m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
Definition: AthReentrantAlgorithm.h:153
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
DerivationFramework::DiMuonTaggingAlg::m_muonSGKey
SG::ReadHandleKey< xAOD::MuonContainer > m_muonSGKey
Definition: DiMuonTaggingAlg.h:66
DerivationFramework::DiMuonTaggingAlg::m_matchingTool
ToolHandle< Trig::IMatchingTool > m_matchingTool
Definition: DiMuonTaggingAlg.h:59
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
AthReentrantAlgorithm::sysInitialize
virtual StatusCode sysInitialize() override
Override sysInitialize.
Definition: AthReentrantAlgorithm.cxx:96
DerivationFramework::DiMuonTaggingAlg::m_trackSGKey
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_trackSGKey
Definition: DiMuonTaggingAlg.h:68
DerivationFramework::DiMuonTaggingAlg::m_useTrackProbe
Gaudi::Property< bool > m_useTrackProbe
Run the analysis with a Muon <--> Track pair — Muon has to hold criteria 1 and track to satisfy kinem...
Definition: DiMuonTaggingAlg.h:100
DerivationFramework::DiMuonTaggingAlg::maskNearbyIDtracks
void maskNearbyIDtracks(const xAOD::IParticle *mu, TrackPassDecor &decor) const
Definition: DiMuonTaggingAlg.cxx:166
SG::WriteHandle
Definition: StoreGate/StoreGate/WriteHandle.h:76
DerivationFramework::DiMuonTaggingAlg::m_muonKeepKey
SG::WriteDecorHandleKey< xAOD::MuonContainer > m_muonKeepKey
Keys to whitelist the muons & tracks needed for MCP studies to output.
Definition: DiMuonTaggingAlg.h:73
a
TList * a
Definition: liststreamerinfos.cxx:10
SG::WriteDecorHandleKey::initialize
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
h
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
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
DerivationFramework::DiMuonTaggingAlg::passTrigger
bool passTrigger(const xAOD::Muon *muon, const std::vector< std::string > &trigList) const
Definition: DiMuonTaggingAlg.cxx:179
xAOD::TrackParticle_v1
Class describing a TrackParticle.
Definition: TrackParticle_v1.h:43
LHEF::Writer
Pythia8::Writer Writer
Definition: Prophecy4fMerger.cxx:12
DerivationFramework::DiMuonTaggingAlg::m_andTrigs
Gaudi::Property< std::vector< std::string > > m_andTrigs
List of trigger in which both muons need to pass the selection.
Definition: DiMuonTaggingAlg.h:56
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
fitman.k
k
Definition: fitman.py:528
ServiceHandle< ICondSvc >