ATLAS Offline Software
EgammaFSRForMuonsCollectorAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // EgammaFSRForMuonsCollectorAlg
7 // Author: RD Schaffer, R.D.Schaffer@cern.ch
8 // Algorithm to collect photons and electrons which close in dR
9 // to muons as FSR candidates
11 
12 #ifndef ASG_ANALYSIS_ALGORITHMS_EGAMMA_FSR_FOR_MUONS_COLLECTOR_ALG_H
13 #define ASG_ANALYSIS_ALGORITHMS_EGAMMA_FSR_FOR_MUONS_COLLECTOR_ALG_H
14 
17 #include "xAODMuon/MuonContainer.h"
19 
20 
21 namespace CP
22 {
25  {
26  public:
28  EgammaFSRForMuonsCollectorAlg(const std::string &name,
29  ISvcLocator *pSvcLocator);
30 
31  StatusCode initialize() override;
32  StatusCode execute() override;
33 
34  private:
36 
37 
39  Gaudi::Property<float> m_dRMax{this, "deltaR_Max", 0.2, "DeltaR max for accepting a particle when comparing to compareParticles"};
40 
41  Gaudi::Property<std::string> m_passWPorFSRName{this, "passWPorFSRName", "passWPorFSR", "Name for decoration for electron or photon which either passes their corresponding WP selection or the dR selection for a muon FSR."};
42 
45 
46  SysReadHandle<xAOD::IParticleContainer> m_egammaContKey{this, "ElectronOrPhotonContKey", "", "Electrons or photons for dR comparison"};
47 
48  SysReadHandle<xAOD::MuonContainer> m_muonContKey{this, "MuonContKey", "AnalysisMuons", "Muons to compare with for selecting FSR"};
49 
50  Gaudi::Property<std::string> m_selectionName {this, "selectionDecoration", "", "the decoration for the combined WP and FSR selection"};
51 
52  Gaudi::Property<bool> m_vetoFSR {this, "vetoFSR", false, "boolean to revert FSR logic to rather veto FSR electrons or photons"};
53 
55  std::unique_ptr<SG::AuxElement::Decorator<uint32_t> > m_wpDec;
56 
57  };
58 }
59 #endif
CP::EgammaFSRForMuonsCollectorAlg::EgammaFSRForMuonsCollectorAlg
EgammaFSRForMuonsCollectorAlg(const std::string &name, ISvcLocator *pSvcLocator)
the standard constructor
Definition: EgammaFSRForMuonsCollectorAlg.cxx:22
CP::EgammaFSRForMuonsCollectorAlg::m_systematicsList
SysListHandle m_systematicsList
the systematics list we run
Definition: EgammaFSRForMuonsCollectorAlg.h:44
CP::SysListHandle
a class managing the property to configure the list of systematics to process
Definition: SysListHandle.h:33
CP::EgammaFSRForMuonsCollectorAlg::m_vetoFSR
Gaudi::Property< bool > m_vetoFSR
Definition: EgammaFSRForMuonsCollectorAlg.h:52
CP::EgammaFSRForMuonsCollectorAlg::m_wpDec
std::unique_ptr< SG::AuxElement::Decorator< uint32_t > > m_wpDec
Decorator for electron or photon working point - used to add additional el/ph.
Definition: EgammaFSRForMuonsCollectorAlg.h:55
CP::EgammaFSRForMuonsCollectorAlg::m_dRMax
Gaudi::Property< float > m_dRMax
Protected data:
Definition: EgammaFSRForMuonsCollectorAlg.h:39
CP::SysReadHandle
a data handle for reading systematics varied input data
Definition: SysReadHandle.h:32
CP
Select isolated Photons, Electrons and Muons.
Definition: Control/xAODRootAccess/xAODRootAccess/TEvent.h:48
SysReadHandle.h
CP::EgammaFSRForMuonsCollectorAlg::initialize
StatusCode initialize() override
Definition: EgammaFSRForMuonsCollectorAlg.cxx:27
AnaAlgorithm.h
EL::AnaAlgorithm
the (new) base class for EventLoop algorithms
Definition: AnaAlgorithm.h:73
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
IParticleContainer.h
CP::EgammaFSRForMuonsCollectorAlg::m_passWPorFSRName
Gaudi::Property< std::string > m_passWPorFSRName
Definition: EgammaFSRForMuonsCollectorAlg.h:41
CP::EgammaFSRForMuonsCollectorAlg::m_egammaContKey
SysReadHandle< xAOD::IParticleContainer > m_egammaContKey
Definition: EgammaFSRForMuonsCollectorAlg.h:46
CP::EgammaFSRForMuonsCollectorAlg::m_muonContKey
SysReadHandle< xAOD::MuonContainer > m_muonContKey
Definition: EgammaFSRForMuonsCollectorAlg.h:48
CP::EgammaFSRForMuonsCollectorAlg::m_selectionName
Gaudi::Property< std::string > m_selectionName
Definition: EgammaFSRForMuonsCollectorAlg.h:50
CP::EgammaFSRForMuonsCollectorAlg
Algorithm to collect photons and electrons which close in dR to muons as FSR candidates.
Definition: EgammaFSRForMuonsCollectorAlg.h:25
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
MuonContainer.h
CP::EgammaFSRForMuonsCollectorAlg::execute
StatusCode execute() override
Definition: EgammaFSRForMuonsCollectorAlg.cxx:56