 |
ATLAS Offline Software
|
#include <DiMuonTaggingAlg.h>
|
| 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 |
|
|
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...
|
|
|
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::IMatchingTool > | m_matchingTool |
|
Gaudi::Property< float > | m_triggerMatchDeltaR {this, "TriggerMatchDeltaR", 0.1} |
|
SG::ReadHandleKey< xAOD::MuonContainer > | m_muonSGKey {this, "MuonContainerKey", "Muons"} |
|
SG::ReadHandleKey< xAOD::TrackParticleContainer > | m_trackSGKey {this, "TrackContainerKey", "InDetTrackParticles"} |
|
SG::ReadHandleKey< xAOD::TruthParticleContainer > | m_truthSGKey {this, "TruthKey", ""} |
|
SG::WriteDecorHandleKey< xAOD::MuonContainer > | m_muonKeepKey |
| Keys to whitelist the muons & tracks needed for MCP studies to output. More...
|
|
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > | m_trkKeepKey |
|
SG::WriteHandleKey< int > | m_skimmingKey {this, "SkimmingKey", "", "Set via BranchPreFixProperty + DIMU_pass"} |
| Event Decision Key. More...
|
|
ToolHandle< CP::IMuonSelectionTool > | m_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 |
|
Definition at line 24 of file DiMuonTaggingAlg.h.
◆ StoreGateSvc_t
◆ TrackPassDecor
◆ DiMuonTaggingAlg()
DerivationFramework::DiMuonTaggingAlg::DiMuonTaggingAlg |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ ~DiMuonTaggingAlg()
virtual DerivationFramework::DiMuonTaggingAlg::~DiMuonTaggingAlg |
( |
| ) |
|
|
virtualdefault |
◆ 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.
◆ declareGaudiProperty() [1/4]
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
175 hndl.documentation());
◆ declareGaudiProperty() [2/4]
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
161 hndl.documentation());
◆ declareGaudiProperty() [3/4]
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
189 hndl.documentation());
◆ declareGaudiProperty() [4/4]
◆ declareProperty() [1/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation 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.
250 this->declare(hndl.
vhKey());
251 hndl.
vhKey().setOwner(
this);
◆ declareProperty() [2/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation 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.
◆ declareProperty() [3/6]
◆ declareProperty() [4/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation 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.
◆ declareProperty() [5/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation 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.
◆ declareProperty() [6/6]
◆ detStore()
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ 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.
54 ATH_CHECK(keepEventHandle.record(std::make_unique<int>(0)));
55 int& keepEvent = *keepEventHandle;
59 if (!muons.isValid()) {
61 return StatusCode::FAILURE;
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()
70 std::vector<const xAOD::TruthParticle*> truth{};
74 if (!handle.isValid()) {
76 return StatusCode::FAILURE;
78 truth.reserve(handle->size());
79 std::copy_if(handle->begin(), handle->end(), std::back_inserter(truth),
81 return MC::isStable(tpart) &&
82 !HepMC::is_simulation_particle(tpart) &&
88 if(std::find_if(truth.begin(), truth.end(),
90 return xAOD::P4Helpers::deltaR2(truth_itr, mu_itr1) < m_thinningConeSize2;
92 muo_decor(*mu_itr1) =
true;
96 <<
", phi: "<<mu_itr1->phi()<<
", author: "<<mu_itr1->author());
104 if (mu_itr2 == mu_itr1)
continue;
106 <<
", phi: "<<mu_itr2->phi()<<
", author: "<<mu_itr2->author());
112 if (!passDiLepTrig) {
116 muo_decor(*mu_itr1) =
true;
117 muo_decor(*mu_itr2) =
true;
123 return StatusCode::SUCCESS;
127 if (!tracks.isValid()) {
129 return StatusCode::FAILURE;
131 ATH_MSG_VERBOSE(
"Event "<<ctx.eventID().event_number()<<
" - Retrieved track Container from "<<
m_trackSGKey.fullKey()<<
" which contains "
132 <<tracks->size()<<
" tracks.");
145 if (probe_trk == mu_itr1->trackParticle(xAOD::Muon::TrackParticleType::InnerDetectorTrackParticle))
continue;
148 trk_decor(*probe_trk) =
true;
164 return StatusCode::SUCCESS;
◆ extraDeps_update_handler()
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.
86 return Algorithm::extraOutputDeps();
◆ filterPassed()
virtual bool AthReentrantAlgorithm::filterPassed |
( |
const EventContext & |
ctx | ) |
const |
|
inlinevirtualinherited |
◆ initialize()
StatusCode DerivationFramework::DiMuonTaggingAlg::initialize |
( |
| ) |
|
|
override |
◆ inputHandles()
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 |
Specify if the algorithm is clonable.
Reentrant algorithms are clonable.
Reimplemented in Simulation::BeamEffectsAlg, InDet::SiTrackerSpacePointFinder, InDet::SCT_Clusterization, InDet::SiSPSeededTrackFinder, SCTRawDataProvider, InDet::GNNSeedingTrackMaker, SCT_PrepDataToxAOD, RoIBResultToxAOD, InDet::SiSPGNNTrackMaker, SCT_CablingCondAlgFromCoraCool, SCT_ReadCalibDataTestAlg, SCT_CablingCondAlgFromText, SCT_ReadCalibChipDataTestAlg, SCT_TestCablingAlg, SCT_ConfigurationConditionsTestAlg, ITkPixelCablingAlg, ITkStripCablingAlg, SCTEventFlagWriter, SCT_ConditionsSummaryTestAlg, SCT_ModuleVetoTestAlg, SCT_MonitorConditionsTestAlg, SCT_LinkMaskingTestAlg, SCT_MajorityConditionsTestAlg, SCT_RODVetoTestAlg, SCT_SensorsTestAlg, SCT_TdaqEnabledTestAlg, SCT_SiliconConditionsTestAlg, SCTSiLorentzAngleTestAlg, SCT_ByteStreamErrorsTestAlg, SCT_ConditionsParameterTestAlg, SCT_FlaggedConditionTestAlg, SCT_StripVetoTestAlg, SCT_RawDataToxAOD, and SCTSiPropertiesTestAlg.
Definition at line 44 of file AthReentrantAlgorithm.cxx.
◆ maskNearbyIDtracks()
◆ msg() [1/2]
◆ msg() [2/2]
◆ msgLvl()
◆ muonPairCheck()
template<class probe_type >
bool DerivationFramework::DiMuonTaggingAlg::muonPairCheck |
( |
const xAOD::Muon * |
mu1, |
|
|
const probe_type * |
mu2 |
|
) |
| const |
|
private |
◆ outputHandles()
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()
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.
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);
◆ passMuonCuts()
bool DerivationFramework::DiMuonTaggingAlg::passMuonCuts |
( |
const xAOD::Muon * |
muon, |
|
|
const float |
ptMin, |
|
|
const float |
absEtaMax, |
|
|
const bool |
applyQuality |
|
) |
| const |
|
private |
◆ 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.
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();
◆ renounce()
◆ renounceArray()
◆ setFilterPassed()
virtual void AthReentrantAlgorithm::setFilterPassed |
( |
bool |
state, |
|
|
const EventContext & |
ctx |
|
) |
| const |
|
inlinevirtualinherited |
◆ 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.
69 return Gaudi::Algorithm::sysExecute (ctx);
◆ 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.
107 if ( cs.retrieve().isFailure() ) {
109 return StatusCode::SUCCESS;
111 if (cs->regHandle(
this,*
h).isFailure()) {
112 sc = StatusCode::FAILURE;
113 ATH_MSG_ERROR(
"unable to register WriteCondHandle " <<
h->fullKey()
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ updateVHKA()
◆ 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 |
◆ m_detStore
◆ 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
◆ 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 |
◆ m_invariantMassLow
Gaudi::Property<float> DerivationFramework::DiMuonTaggingAlg::m_invariantMassLow {this, "InvariantMassLow", 2.0 * Gaudi::Units::GeV} |
|
private |
◆ m_invariantMassLow2
float DerivationFramework::DiMuonTaggingAlg::m_invariantMassLow2 {0} |
|
private |
◆ m_isMC
Gaudi::Property<bool> DerivationFramework::DiMuonTaggingAlg::m_isMC {this, "isMC", false} |
|
private |
◆ m_matchingTool
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 |
◆ m_mu1PtMin
Gaudi::Property<float> DerivationFramework::DiMuonTaggingAlg::m_mu1PtMin {this, "Mu1PtMin", -1} |
|
private |
◆ m_mu2AbsEtaMax
Gaudi::Property<float> DerivationFramework::DiMuonTaggingAlg::m_mu2AbsEtaMax {this, "Mu2AbsEtaMax", 10} |
|
private |
◆ m_mu2PtMin
Gaudi::Property<float> DerivationFramework::DiMuonTaggingAlg::m_mu2PtMin {this, "Mu2PtMin", -1} |
|
private |
◆ m_muonKeepKey
Initial value:
"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 |
◆ m_muonSGKey
◆ 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 |
◆ m_skimmingKey
SG::WriteHandleKey<int> DerivationFramework::DiMuonTaggingAlg::m_skimmingKey {this, "SkimmingKey", "", "Set via BranchPreFixProperty + DIMU_pass"} |
|
private |
◆ m_thinningConeSize
Gaudi::Property<float> DerivationFramework::DiMuonTaggingAlg::m_thinningConeSize {this, "IDTrackThinningConeSize", 0.4} |
|
private |
◆ m_thinningConeSize2
float DerivationFramework::DiMuonTaggingAlg::m_thinningConeSize2 {0} |
|
private |
◆ m_trackSGKey
◆ m_triggerMatchDeltaR
Gaudi::Property<float> DerivationFramework::DiMuonTaggingAlg::m_triggerMatchDeltaR {this, "TriggerMatchDeltaR", 0.1} |
|
private |
◆ m_trkKeepKey
Initial value:
"Key to whitelist the tracks for writeout. Will be overwritten by BranchPreFix property"}
Definition at line 75 of file DiMuonTaggingAlg.h.
◆ m_truthSGKey
◆ m_useTrackProbe
Gaudi::Property<bool> DerivationFramework::DiMuonTaggingAlg::m_useTrackProbe {this, "UseTrackProbe", false} |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
Gaudi::Property< bool > m_applyQualityMu1
Flag to toggle whether selection working point should be applied on the first muon.
Gaudi::Property< float > m_dPhiMin
Require a minimal delta Phi between the two selected candidates.
ToolHandle< CP::IMuonSelectionTool > m_muonSelTool
Selection tool to filter muons with poor quality.
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > m_trkKeepKey
Gaudi::Property< bool > m_requireOS
Both particles have to be of opposite charge.
static AuxTypeRegistry & instance()
Return the singleton registry instance.
virtual FourMom_t p4() const
The full 4-momentum of the particle.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
bool passMuonCuts(const xAOD::Muon *muon, const float ptMin, const float absEtaMax, const bool applyQuality) const
std::string getName(SG::auxid_t auxid) const
Return the name of an aux data item.
Gaudi::Property< float > m_thinningConeSize
Gaudi::Property< bool > m_applyQualityMu2
Flag to toggle whether the selection working point should be applied on the second muon.
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)
float m_thinningConeSize2
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
Gaudi::Property< std::string > m_br_prefix
Name of the ouput selection flag.
Gaudi::Property< bool > m_applyTrig
Gaudi::Property< float > m_mu1PtMin
Pt cut on the primary muon in the event.
double deltaPhi(double phiA, double phiB)
delta Phi in range [-pi,pi[
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_truthSGKey
Gaudi::Property< float > m_mu2PtMin
Pt cut on the second muon in the event.
#define ATH_MSG_VERBOSE(x)
Gaudi::Property< bool > m_isMC
Flag whether it's MC.
Gaudi::Property< float > m_invariantMassHigh
Upper invariant mass selection window (Negative number refers to disable)
double deltaR2(double rapidity1, double phi1, double rapidity2, double phi2)
from bare rapidity,phi
bool empty() const
Test if the key is blank.
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...
virtual void setOwner(IDataHandleHolder *o)=0
Gaudi::Property< float > m_invariantMassLow
Lower invariant mass selection window.
SG::WriteDecorHandle< xAOD::TrackParticleContainer, bool > TrackPassDecor
Gaudi::Property< float > m_mu2AbsEtaMax
Eta cut on the second muon in the event.
AthReentrantAlgorithm()
Default constructor:
Gaudi::Property< std::vector< std::string > > m_orTrigs
List of triggers in which at least one muon in the pair needs to pass.
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
::StatusCode StatusCode
StatusCode definition for legacy code.
Class describing a truth particle in the MC record.
float m_invariantMassHigh2
bool muonPairCheck(const xAOD::Muon *mu1, const probe_type *mu2) const
float m_invariantMassLow2
Out copy_if(In first, const In &last, Out res, const Pred &p)
SG::WriteHandleKey< int > m_skimmingKey
Event Decision Key.
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Gaudi::Property< float > m_mu1AbsEtaMax
Eta cut on the primary muon in the event.
DataObjIDColl m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
SG::ReadHandleKey< xAOD::MuonContainer > m_muonSGKey
ToolHandle< Trig::IMatchingTool > m_matchingTool
virtual StatusCode sysInitialize() override
Override sysInitialize.
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_trackSGKey
Gaudi::Property< bool > m_useTrackProbe
Run the analysis with a Muon <--> Track pair — Muon has to hold criteria 1 and track to satisfy kinem...
void maskNearbyIDtracks(const xAOD::IParticle *mu, TrackPassDecor &decor) const
SG::WriteDecorHandleKey< xAOD::MuonContainer > m_muonKeepKey
Keys to whitelist the muons & tracks needed for MCP studies to output.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
#define ATH_MSG_WARNING(x)
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
bool passTrigger(const xAOD::Muon *muon, const std::vector< std::string > &trigList) const
Class describing a TrackParticle.
Gaudi::Property< std::vector< std::string > > m_andTrigs
List of trigger in which both muons need to pass the selection.
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>