|
ATLAS Offline Software
|
Go to the documentation of this file.
4 #ifndef PFLEPTONSELECTOR_H
5 #define PFLEPTONSELECTOR_H
64 "ReadHandle for the ElectronContainer to be used as input"
71 "ReadHandle for the MuonContainer to be used as input" };
77 "outputElectronsName",
78 "eflowRec_selectedElectrons",
79 "WriteHandle for the ElectronContainer, that will be filled with electrons passing the electron ID in "
80 "PFLeptonSelector::selectElectrons"
88 "eflowRec_selectedMuons",
89 "WriteHandle for the MuonContainer, that will be filled with muons passing the muon ID in "
90 "PFLeptonSelector::selectMuons"
96 "outputLeptonCellsName",
97 "eflowRec_leptonCellContainer",
98 "WriteHandle for the CaloCellContainer, that will store calorimeter cells associated to leptons"
102 Gaudi::Property<bool>
m_storeLeptonCells{
this,
"storeLeptonCells",
false,
"Toggle storage of lepton CaloCells" };
104 Gaudi::Property<std::string>
m_electronID{
this,
"electronID",
"LHMedium",
"Select electron ID" };
110 Gaudi::Property<bool>
m_selectElectrons{
this,
"selectElectrons",
true,
"Toggle usage of electron ID" };
116 Gaudi::Property<bool>
m_selectMuons{
this,
"selectMuons",
true,
"Toggle usage of muon ID" };
StatusCode selectElectrons(SG::WriteHandle< ConstDataVector< xAOD::ElectronContainer >> &selectedElectronsWriteHandle, const SG::WriteHandle< ConstDataVector< CaloCellContainer >> &leptonCaloCellsWriteHandle) const
Select electrons to use.
PFLeptonSelector(const std::string &name, ISvcLocator *pSvcLocator)
Default constructor.
DataVector adapter that acts like it holds const pointers.
Gaudi::Property< bool > m_storeLeptonCells
Toggle storage of lepton CaloCells.
SG::WriteHandleKey< ConstDataVector< xAOD::ElectronContainer > > m_selectedElectronsWriteHandleKey
WriteHandle for the ElectronContainer, that will be filled with electrons passing the electron ID in ...
An algorithm that can be simultaneously executed in multiple threads.
void storeElectronCells(const xAOD::Egamma &electron, SG::WriteHandle< ConstDataVector< CaloCellContainer >> leptonCaloCellsWriteHandle) const
store the cells of the electrons
Description of a calorimeter cluster.
Property holding a SG store/key/clid from which a WriteHandle is made.
StatusCode execute(const EventContext &ctx) const
StatusCode initialize()
Gaudi AthAlgorithm hooks.
::StatusCode StatusCode
StatusCode definition for legacy code.
Gaudi::Property< std::string > m_electronID
~PFLeptonSelector()
Default destructor.
SG::WriteHandleKey< ConstDataVector< xAOD::MuonContainer > > m_selectedMuonsWriteHandleKey
WriteHandle for the MuonContainer, that will be filled with muons passing the muon ID in PFLeptonSele...
Container class for CaloCell.
void storeMuonCells(const xAOD::Muon &muon, SG::WriteHandle< ConstDataVector< CaloCellContainer >> leptonCaloCellsWriteHandle) const
store the cells of the muons
StatusCode recordLeptonContainers(SG::WriteHandle< ConstDataVector< xAOD::ElectronContainer >> &selectedElectronsWriteHandle, SG::WriteHandle< ConstDataVector< xAOD::MuonContainer >> &selectedMuonsWriteHandle, SG::WriteHandle< ConstDataVector< CaloCellContainer >> leptonCaloCellsWriteHandle) const
Put lepton containers and list of lepton cells into Storegate.
Gaudi::Property< bool > m_selectMuons
Toggle to determine whether we select any muons or not - if selected then tracks matched to those muo...
SG::WriteHandleKey< ConstDataVector< CaloCellContainer > > m_leptonCaloCellsWriteHandleKey
WriteHandle for the CaloCellContainer, that will store calorimeter cells associated to leptons.
DataVector adapter that acts like it holds const pointers.
StatusCode selectMuons(SG::WriteHandle< ConstDataVector< xAOD::MuonContainer >> &selectedMuonsWriteHandle, const SG::WriteHandle< ConstDataVector< CaloCellContainer >> &leptonCaloCellsWriteHandle) const
select muons to use
void storeLeptonCells(const xAOD::CaloCluster &theCluster, SG::WriteHandle< ConstDataVector< CaloCellContainer >> leptonCaloCellsWriteHandle) const
puts set of lepton cells into the lepton container
SG::ReadHandleKey< xAOD::ElectronContainer > m_electronsReadHandleKey
ReadHandle for the ElectronContainer to be used as input.
SG::ReadHandleKey< xAOD::MuonContainer > m_muonsReadHandleKey
ReadHandle for the MuonContainer to be used as input.
Gaudi::Property< bool > m_selectElectrons
Toggle to determine whether we select any electrons or not - if selected then tracks matched to those...