|
ATLAS Offline Software
|
#include <IsolationSelectionTool.h>
|
| IsolationSelectionTool (const std::string &name) |
| Create a proper constructor for Athena. More...
|
|
virtual | ~IsolationSelectionTool () |
| Destructor. More...
|
|
virtual StatusCode | initialize () override |
| Function initialising the tool. More...
|
|
virtual asg::AcceptData | accept (const xAOD::Photon &x) const override |
| Declare the interface that the class provides. More...
|
|
virtual asg::AcceptData | accept (const xAOD::Electron &x) const override |
|
virtual asg::AcceptData | accept (const xAOD::Muon &x) const override |
|
virtual asg::AcceptData | accept (const strObj &x) const override |
|
virtual asg::AcceptData | accept (const xAOD::IParticle &x) const override |
|
virtual const asg::AcceptInfo & | getPhotonAcceptInfo () const override |
|
virtual const asg::AcceptInfo & | getElectronAcceptInfo () const override |
|
virtual const asg::AcceptInfo & | getMuonAcceptInfo () const override |
|
virtual const asg::AcceptInfo & | getObjAcceptInfo () const override |
|
virtual const std::vector< std::unique_ptr< IsolationWP > > & | getMuonWPs () const override |
|
virtual const std::vector< std::unique_ptr< IsolationWP > > & | getElectronWPs () const override |
|
virtual const std::vector< std::unique_ptr< IsolationWP > > & | getPhotonWPs () const override |
|
virtual const std::vector< std::unique_ptr< IsolationWP > > & | getObjWPs () const override |
|
virtual StatusCode | setIParticleCutsFrom (xAOD::Type::ObjectType ObjType) override |
|
StatusCode | addWP (const std::string &WP, xAOD::Type::ObjectType type) |
|
StatusCode | addWP (std::unique_ptr< IsolationWP > wp, xAOD::Type::ObjectType type) |
|
StatusCode | addMuonWP (const std::string &wpname) |
|
StatusCode | addPhotonWP (const std::string &wpname) |
|
StatusCode | addElectronWP (const std::string &wpname) |
|
StatusCode | addUserDefinedWP (const std::string &WPname, xAOD::Type::ObjectType ObjType, std::vector< std::pair< xAOD::Iso::IsolationType, std::string >> &cuts, std::string key="", IsoWPType type=Efficiency) |
|
StatusCode | addCutToWP (IsolationWP *wp, const std::string &key_in, const xAOD::Iso::IsolationType t, const std::string &expression, const xAOD::Iso::IsolationType isoCutRemap) |
|
StatusCode | addCutToWP (IsolationWP *wp, const std::string &key, const xAOD::Iso::IsolationType t, const std::string &expression) |
|
virtual void | print () const =0 |
| Print the state of the tool. 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 | sysInitialize () override |
| Perform system initialization for an algorithm. 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 |
|
|
Gaudi::Property< std::string > | m_muWPname {this, "MuonWP", "Undefined", "Working point for muon"} |
|
Gaudi::Property< std::string > | m_elWPname {this, "ElectronWP", "Undefined", "Working point for electron"} |
|
Gaudi::Property< std::string > | m_phWPname {this, "PhotonWP", "Undefined", "Working point for photon"} |
|
Gaudi::Property< std::vector< std::string > > | m_muWPvec {this, "MuonWPVec", {}, "Vector of working points for muon"} |
|
Gaudi::Property< std::vector< std::string > > | m_elWPvec {this, "ElectronWPVec", {}, "Vector of working points for electron"} |
|
Gaudi::Property< std::vector< std::string > > | m_phWPvec {this, "PhotonWPVec", {}, "Vector of working points for photon"} |
|
Gaudi::Property< std::string > | m_muWPKey {this, "MuonKey", "/Muons/DFCommonGoodMuon/mu_cutValues_", "path of the cut map for muon"} |
|
Gaudi::Property< std::string > | m_elWPKey |
|
Gaudi::Property< std::string > | m_phWPKey |
|
Gaudi::Property< std::string > | m_isoDecSuffix |
|
Gaudi::Property< std::string > | m_calibFileName {this, "CalibFileName", "", " The config to use"} |
| input file More...
|
|
std::unique_ptr< TFile > | m_calibFile {nullptr} |
|
std::vector< std::unique_ptr< IsolationWP > > | m_muWPs {} |
| internal use More...
|
|
std::vector< std::unique_ptr< IsolationWP > > | m_elWPs {} |
|
std::vector< std::unique_ptr< IsolationWP > > | m_phWPs {} |
|
std::vector< std::unique_ptr< IsolationWP > > | m_objWPs {} |
|
asg::AcceptInfo | m_photonAccept {"IsolationSelectionToolPhotonAcceptInfo"} |
| AcceptInfo's. More...
|
|
asg::AcceptInfo | m_electronAccept {"IsolationSelectionToolElectronAcceptInfo"} |
|
asg::AcceptInfo | m_muonAccept {"IsolationSelectionToolMuonAcceptInfo"} |
|
asg::AcceptInfo | m_objAccept {"IsolationSelectionToolObjAcceptInfo"} |
|
std::vector< std::unique_ptr< IsolationWP > > * | m_iparWPs {nullptr} |
| Iparticle interface. More...
|
|
asg::AcceptInfo * | m_iparAcceptInfo {nullptr} |
|
Gaudi::Property< bool > | m_doInterpM {this, "doCutInterpolationMuon", false, "flag to perform cut interpolation, muon"} |
|
Gaudi::Property< bool > | m_doInterpE {this, "doCutInterpolationElec", true, "flag to perform cut interpolation, electron"} |
|
std::shared_ptr< Interp3D > | m_Interp {nullptr} |
|
SG::ReadDecorHandleKeyArray< xAOD::IParticleContainer > | m_isoDecors {this, "IsolationDecors", {}, "List of decorations needed by the tool"} |
|
Gaudi::Property< std::string > | m_inMuonContainer {this, "InMuonContainer", "" , "Name of the muon container parsed to the tool."} |
| Properties to declare the data dependencies to the avalanche scheduler. More...
|
|
Gaudi::Property< std::string > | m_inElecContainer {this, "InElectronContainer", "" , "Name of the electron container parsed to the tool."} |
|
Gaudi::Property< std::string > | m_inPhotContainer {this, "InPhotonContainer", "", "Name of the photon container parsed to the tool."} |
|
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 25 of file IsolationSelectionTool.h.
◆ StoreGateSvc_t
◆ IsoWPType
◆ IsolationSelectionTool()
CP::IsolationSelectionTool::IsolationSelectionTool |
( |
const std::string & |
name | ) |
|
Create a proper constructor for Athena.
Constructor for standalone usage, but please do use the interface and ToolHandle
Definition at line 20 of file IsolationSelectionTool.cxx.
◆ ~IsolationSelectionTool()
CP::IsolationSelectionTool::~IsolationSelectionTool |
( |
| ) |
|
|
virtualdefault |
◆ accept() [1/5]
◆ accept() [2/5]
◆ accept() [3/5]
◆ accept() [4/5]
◆ accept() [5/5]
◆ addCutToWP() [1/2]
◆ addCutToWP() [2/2]
Definition at line 111 of file IsolationSelectionTool.cxx.
115 return StatusCode::FAILURE;
118 std::string
varname(xAOD::Iso::toCString(isoCutRemap));
121 TH3F* calibHisto{
nullptr};
125 return StatusCode::FAILURE;
127 calibHisto->SetDirectory(
nullptr);
128 std::unique_ptr<TH3F>
histogram(calibHisto);
129 std::unique_ptr<IsolationConditionHist> ich =
133 wp->addCut(std::move(ich));
135 return StatusCode::SUCCESS;
◆ addDependencies()
void CP::IsolationSelectionTool::addDependencies |
( |
const std::string & |
container, |
|
|
const IsolationWP & |
wp |
|
) |
| |
|
private |
Definition at line 85 of file IsolationSelectionTool.cxx.
86 if (container.empty())
return;
87 for (
const std::unique_ptr<IsolationCondition>& cond :
wp.conditions()) {
88 for (
unsigned int acc = 0;
acc < cond->num_types(); ++
acc) {
◆ addElectronWP()
StatusCode CP::IsolationSelectionTool::addElectronWP |
( |
const std::string & |
wpname | ) |
|
Definition at line 253 of file IsolationSelectionTool.cxx.
254 std::unique_ptr<IsolationWP>
wp = std::make_unique<IsolationWP>(elWPname);
256 if (elWPname ==
"HighPtCaloOnly") {
259 }
else if (elWPname ==
"Tight_VarRad") {
260 wp->addCut(std::make_unique<IsolationConditionFormula>(
263 }
else if (elWPname ==
"Loose_VarRad") {
264 wp->addCut(std::make_unique<IsolationConditionFormula>(
267 }
else if (elWPname ==
"TightTrackOnly_VarRad") {
268 wp->addCut(std::make_unique<IsolationConditionFormula>(
270 }
else if (elWPname ==
"TightTrackOnly_FixedRad") {
271 wp->addCut(std::make_unique<IsolationConditionFormula>(
273 wp->addCut(std::make_unique<IsolationConditionFormula>(
275 }
else if (elWPname ==
"PflowTight_FixedRad") {
280 wp->addCut(std::make_unique<IsolationConditionCombined>(
"ElecPFlowTightLowPt", isoTypesLowPt,
281 std::make_unique<TF2>(
"pflowTFunctionLowPt",
"fabs(x)+0.4*(y>0?y:0)"),
283 wp->addCut(std::make_unique<IsolationConditionCombined>(
"ElecPFlowTightHighPt", isoTypesHighPt,
284 std::make_unique<TF2>(
"pflowTFunctionHighPt",
"fabs(x)+0.4*(y>0?y:0)"),
286 }
else if (elWPname ==
"PflowTight") {
289 wp->addCut(std::make_unique<IsolationConditionCombined>(
290 "ElecPFlowTight", isoTypes, std::make_unique<TF2>(
"pflowLFunction",
"fabs(x)+0.4*(y>0?y:0)"),
"0.045*x",
m_isoDecSuffix));
291 }
else if (elWPname ==
"PflowLoose_FixedRad") {
296 wp->addCut(std::make_unique<IsolationConditionCombined>(
"ElecPFlowLooseLowPt", isoTypesLowPt,
297 std::make_unique<TF2>(
"pflowLFunctionLowPt",
"fabs(x)+0.4*(y>0?y:0)"),
299 wp->addCut(std::make_unique<IsolationConditionCombined>(
"ElecPFlowLooseHighPt", isoTypesHighPt,
300 std::make_unique<TF2>(
"pflowLFunctionHighPt",
"fabs(x)+0.4*(y>0?y:0)"),
302 }
else if (elWPname ==
"PflowLoose") {
305 wp->addCut(std::make_unique<IsolationConditionCombined>(
306 "ElecPFlowLoose", isoTypes, std::make_unique<TF2>(
"pflowLFunction",
"fabs(x)+0.4*(y>0?y:0)"),
"0.16*x",
m_isoDecSuffix));
308 ATH_MSG_ERROR(
"Unknown electron isolation WP: " << elWPname);
309 return StatusCode::FAILURE;
313 #ifndef XAOD_STANDALONE
319 return StatusCode::SUCCESS;
◆ addMuonWP()
StatusCode CP::IsolationSelectionTool::addMuonWP |
( |
const std::string & |
wpname | ) |
|
Definition at line 143 of file IsolationSelectionTool.cxx.
144 std::unique_ptr<IsolationWP>
wp = std::make_unique<IsolationWP>(muWPname);
145 if (muWPname ==
"HighPtTrackOnly") {
146 wp->addCut(std::make_unique<IsolationConditionFormula>(
148 }
else if (muWPname ==
"TightTrackOnly_FixedRad") {
149 wp->addCut(std::make_unique<IsolationConditionFormula>(
151 wp->addCut(std::make_unique<IsolationConditionFormula>(
153 }
else if (muWPname ==
"Tight_FixedRad") {
154 wp->addCut(std::make_unique<IsolationConditionFormula>(
156 wp->addCut(std::make_unique<IsolationConditionFormula>(
159 }
else if (muWPname ==
"Loose_FixedRad") {
160 wp->addCut(std::make_unique<IsolationConditionFormula>(
162 wp->addCut(std::make_unique<IsolationConditionFormula>(
165 }
else if (muWPname ==
"TightTrackOnly_VarRad") {
166 wp->addCut(std::make_unique<IsolationConditionFormula>(
"MuonFixedCutHighMuTrackOnly",
168 }
else if (muWPname ==
"Tight_VarRad") {
169 wp->addCut(std::make_unique<IsolationConditionFormula>(
"MuonFixedCutHighMuTight_track",
172 }
else if (muWPname ==
"Loose_VarRad") {
173 wp->addCut(std::make_unique<IsolationConditionFormula>(
"MuonFixedCutHighMuLoose_track",
176 }
else if (muWPname ==
"PflowTight_FixedRad") {
181 wp->addCut(std::make_unique<IsolationConditionCombined>(
"MuonPFlowTightLowPt", isoTypesLowPt,
182 std::make_unique<TF2>(
"pflowTFunctionLowPt",
"fabs(x)+0.4*(y>0?y:0)"),
184 wp->addCut(std::make_unique<IsolationConditionCombined>(
"MuonPFlowTightHighPt", isoTypesHighPt,
185 std::make_unique<TF2>(
"pflowTFunctionHighPt",
"fabs(x)+0.4*(y>0?y:0)"),
187 }
else if (muWPname ==
"PflowTight_VarRad") {
190 wp->addCut(std::make_unique<IsolationConditionCombined>(
191 "MuonPFlowTight", isoTypes, std::make_unique<TF2>(
"pflowTFunction",
"fabs(x)+0.4*(y>0?y:0)"),
"0.045*x",
m_isoDecSuffix));
192 }
else if (muWPname ==
"PflowLoose_FixedRad") {
197 wp->addCut(std::make_unique<IsolationConditionCombined>(
"MuonPFlowLooseLowPt", isoTypesLowPt,
198 std::make_unique<TF2>(
"pflowLFunctionLowPt",
"fabs(x)+0.4*(y>0?y:0)"),
200 wp->addCut(std::make_unique<IsolationConditionCombined>(
"MuonPFlowLooseHighPt", isoTypesHighPt,
201 std::make_unique<TF2>(
"pflowLFunctionHighPt",
"fabs(x)+0.4*(y>0?y:0)"),
203 }
else if (muWPname ==
"PflowLoose_VarRad") {
206 wp->addCut(std::make_unique<IsolationConditionCombined>(
207 "MuonPFlowLoose", isoTypes, std::make_unique<TF2>(
"pflowTFunction",
"fabs(x)+0.4*(y>0?y:0)"),
"0.16*x",
m_isoDecSuffix));
210 return StatusCode::FAILURE;
213 #ifndef XAOD_STANDALONE
217 return StatusCode::SUCCESS;
◆ addPhotonWP()
StatusCode CP::IsolationSelectionTool::addPhotonWP |
( |
const std::string & |
wpname | ) |
|
Definition at line 220 of file IsolationSelectionTool.cxx.
221 std::unique_ptr<IsolationWP>
wp = std::make_unique<IsolationWP>(phWPname);
222 if (phWPname ==
"TightCaloOnly") {
224 }
else if (phWPname ==
"FixedCutTight") {
227 }
else if (phWPname ==
"FixedCutLoose") {
230 }
else if (phWPname ==
"Tight") {
232 wp->addCut(std::make_unique<IsolationConditionFormula>(
"PhFixedCut_Tighttrack20",
234 }
else if (phWPname ==
"Loose") {
236 wp->addCut(std::make_unique<IsolationConditionFormula>(
"PhFixedCut_Tighttrack20",
240 return StatusCode::FAILURE;
244 #ifndef XAOD_STANDALONE
250 return StatusCode::SUCCESS;
◆ addUserDefinedWP()
Definition at line 322 of file IsolationSelectionTool.cxx.
325 std::vector<std::unique_ptr<IsolationWP>>* wps(
nullptr);
339 }
else if (ObjType == xAOD::Type::Other) {
340 if (
key ==
"")
return StatusCode::FAILURE;
344 return StatusCode::FAILURE;
347 std::unique_ptr<IsolationWP>
wp = std::make_unique<IsolationWP>(WPname);
351 for (
auto&
c :
cuts)
wp->addCut(std::make_unique<IsolationConditionFormula>(xAOD::Iso::toCString(
c.first),
c.first,
c.second));
353 ATH_MSG_ERROR(
"Unknown isolation WP type -- should not happen.");
354 return StatusCode::FAILURE;
358 wps->push_back(std::move(
wp));
359 return StatusCode::SUCCESS;
◆ addWP() [1/2]
◆ addWP() [2/2]
Definition at line 373 of file IsolationSelectionTool.cxx.
385 }
else if (ObjType == xAOD::Type::Other) {
389 return StatusCode::FAILURE;
392 return StatusCode::SUCCESS;
◆ 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);
253 return PBASE::declareProperty(
name,hndl,
doc);
◆ 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.
229 return PBASE::declareProperty(
name,hndl,
doc);
◆ 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.
338 return PBASE::declareProperty(
name, property,
doc);
◆ 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()
◆ evaluateWP()
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ 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
◆ getElectronAcceptInfo()
◆ getElectronWPs()
const std::vector< std::unique_ptr< IsolationWP > > & CP::IsolationSelectionTool::getElectronWPs |
( |
| ) |
const |
|
overridevirtual |
◆ getKey()
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
-
ptr | The 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.
121 #ifdef XAOD_STANDALONE
127 return (
proxy ==
nullptr ? 0 :
proxy->sgkey() );
128 #endif // XAOD_STANDALONE
◆ getMuonAcceptInfo()
◆ getMuonWPs()
const std::vector< std::unique_ptr< IsolationWP > > & CP::IsolationSelectionTool::getMuonWPs |
( |
| ) |
const |
|
overridevirtual |
◆ 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
-
ptr | The 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.
108 #ifdef XAOD_STANDALONE
114 static const std::string
dummy =
"";
116 #endif // XAOD_STANDALONE
◆ getObjAcceptInfo()
◆ getObjWPs()
const std::vector< std::unique_ptr< IsolationWP > > & CP::IsolationSelectionTool::getObjWPs |
( |
| ) |
const |
|
overridevirtual |
◆ getPhotonAcceptInfo()
◆ getPhotonWPs()
const std::vector< std::unique_ptr< IsolationWP > > & CP::IsolationSelectionTool::getPhotonWPs |
( |
| ) |
const |
|
overridevirtual |
◆ getProperty()
template<class T >
const T* asg::AsgTool::getProperty |
( |
const std::string & |
name | ) |
const |
|
inherited |
Get one of the tool's properties.
◆ initialize()
StatusCode CP::IsolationSelectionTool::initialize |
( |
| ) |
|
|
overridevirtual |
Function initialising the tool.
Greet the user:
setup working points
Return gracefully:
Reimplemented from asg::AsgTool.
Definition at line 27 of file IsolationSelectionTool.cxx.
39 TObjString* versionInfo{
nullptr};
50 std::vector<std::pair<double, double>> rangeEtaNoInt;
51 std::pair<double, double> apair(1.26, 1.665);
52 rangeEtaNoInt.push_back(apair);
54 std::vector<std::pair<double, double>> rangePtNoInt;
57 rangePtNoInt.push_back(apair);
58 std::map<std::string, Interp3D::VetoInterp> amap;
60 veto.xRange = rangePtNoInt;
61 veto.yRange = std::vector<std::pair<double, double>>();
62 amap.insert(std::make_pair(std::string(
"el_cutValues_ptvarcone20"),
veto));
63 veto.yRange = rangeEtaNoInt;
64 amap.insert(std::make_pair(std::string(
"el_cutValues_topoetcone20"),
veto));
65 m_Interp = std::make_unique<Interp3D>(amap);
78 #ifndef XAOD_STANDALONE
81 return StatusCode::SUCCESS;
◆ 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.
◆ msg() [1/2]
◆ msg() [2/2]
◆ 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.
◆ msgLvl()
◆ 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.
◆ print() [1/2]
void asg::AsgTool::print |
( |
| ) |
const |
|
virtualinherited |
Print the state of the tool.
Implements asg::IAsgTool.
Reimplemented in JetRecTool, JetFinder, JetModifiedMassDrop, JetFromPseudojet, JetReclusterer, JetReclusteringTool, JetTruthLabelingTool, JetPileupLabelingTool, HI::HIPileupTool, JetDumper, JetBottomUpSoftDrop, JetRecursiveSoftDrop, JetSoftDrop, JetConstituentsRetriever, JetSubStructureMomentToolsBase, JetSplitter, JetToolRunner, JetPruner, JetPseudojetRetriever, JetTrimmer, AsgHelloTool, and KtDeltaRTool.
Definition at line 131 of file AsgTool.cxx.
◆ print() [2/2]
virtual void asg::IAsgTool::print |
( |
| ) |
const |
|
pure virtualinherited |
Print the state of the tool.
Implemented in JetRecTool, JetFinder, JetModifiedMassDrop, JetFromPseudojet, JetReclusterer, JetReclusteringTool, JetTruthLabelingTool, JetPileupLabelingTool, HI::HIPileupTool, asg::AsgTool, JetDumper, JetBottomUpSoftDrop, JetRecursiveSoftDrop, JetSoftDrop, JetConstituentsRetriever, JetSubStructureMomentToolsBase, JetSplitter, JetToolRunner, JetPruner, JetPseudojetRetriever, JetTrimmer, AsgHelloTool, and KtDeltaRTool.
◆ renounce()
◆ renounceArray()
◆ setIParticleCutsFrom()
◆ sysInitialize()
◆ 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_calibFile
std::unique_ptr<TFile> CP::IsolationSelectionTool::m_calibFile {nullptr} |
|
private |
◆ m_calibFileName
Gaudi::Property<std::string> CP::IsolationSelectionTool::m_calibFileName {this, "CalibFileName", "", " The config to use"} |
|
private |
◆ m_detStore
◆ m_doInterpE
Gaudi::Property<bool> CP::IsolationSelectionTool::m_doInterpE {this, "doCutInterpolationElec", true, "flag to perform cut interpolation, electron"} |
|
private |
◆ m_doInterpM
Gaudi::Property<bool> CP::IsolationSelectionTool::m_doInterpM {this, "doCutInterpolationMuon", false, "flag to perform cut interpolation, muon"} |
|
private |
◆ m_electronAccept
asg::AcceptInfo CP::IsolationSelectionTool::m_electronAccept {"IsolationSelectionToolElectronAcceptInfo"} |
|
private |
◆ m_elWPKey
Gaudi::Property<std::string> CP::IsolationSelectionTool::m_elWPKey |
|
private |
Initial value:{this, "ElectronKey", "/ElectronPhoton/LHTight/el_cutValues_",
"path of the cut map for electron"}
Definition at line 84 of file IsolationSelectionTool.h.
◆ m_elWPname
Gaudi::Property<std::string> CP::IsolationSelectionTool::m_elWPname {this, "ElectronWP", "Undefined", "Working point for electron"} |
|
private |
◆ m_elWPs
std::vector<std::unique_ptr<IsolationWP> > CP::IsolationSelectionTool::m_elWPs {} |
|
private |
◆ m_elWPvec
Gaudi::Property<std::vector<std::string> > CP::IsolationSelectionTool::m_elWPvec {this, "ElectronWPVec", {}, "Vector of working points for electron"} |
|
private |
◆ m_evtStore
◆ m_inElecContainer
Gaudi::Property<std::string> CP::IsolationSelectionTool::m_inElecContainer {this, "InElectronContainer", "" , "Name of the electron container parsed to the tool."} |
|
private |
◆ m_inMuonContainer
Gaudi::Property<std::string> CP::IsolationSelectionTool::m_inMuonContainer {this, "InMuonContainer", "" , "Name of the muon container parsed to the tool."} |
|
private |
◆ m_inPhotContainer
Gaudi::Property<std::string> CP::IsolationSelectionTool::m_inPhotContainer {this, "InPhotonContainer", "", "Name of the photon container parsed to the tool."} |
|
private |
◆ m_Interp
std::shared_ptr<Interp3D> CP::IsolationSelectionTool::m_Interp {nullptr} |
|
private |
◆ m_iparAcceptInfo
◆ m_iparWPs
std::vector<std::unique_ptr<IsolationWP> >* CP::IsolationSelectionTool::m_iparWPs {nullptr} |
|
private |
◆ m_isoDecors
◆ m_isoDecSuffix
Gaudi::Property<std::string> CP::IsolationSelectionTool::m_isoDecSuffix |
|
private |
Initial value:{
this, "IsoDecSuffix", "", "Suffix added to output isolation variables to allow to NOT overwrite existing values"}
Definition at line 88 of file IsolationSelectionTool.h.
◆ m_muonAccept
asg::AcceptInfo CP::IsolationSelectionTool::m_muonAccept {"IsolationSelectionToolMuonAcceptInfo"} |
|
private |
◆ m_muWPKey
Gaudi::Property<std::string> CP::IsolationSelectionTool::m_muWPKey {this, "MuonKey", "/Muons/DFCommonGoodMuon/mu_cutValues_", "path of the cut map for muon"} |
|
private |
◆ m_muWPname
Gaudi::Property<std::string> CP::IsolationSelectionTool::m_muWPname {this, "MuonWP", "Undefined", "Working point for muon"} |
|
private |
◆ m_muWPs
std::vector<std::unique_ptr<IsolationWP> > CP::IsolationSelectionTool::m_muWPs {} |
|
private |
◆ m_muWPvec
Gaudi::Property<std::vector<std::string> > CP::IsolationSelectionTool::m_muWPvec {this, "MuonWPVec", {}, "Vector of working points for muon"} |
|
private |
◆ m_objAccept
asg::AcceptInfo CP::IsolationSelectionTool::m_objAccept {"IsolationSelectionToolObjAcceptInfo"} |
|
private |
◆ m_objWPs
std::vector<std::unique_ptr<IsolationWP> > CP::IsolationSelectionTool::m_objWPs {} |
|
private |
◆ m_photonAccept
asg::AcceptInfo CP::IsolationSelectionTool::m_photonAccept {"IsolationSelectionToolPhotonAcceptInfo"} |
|
private |
◆ m_phWPKey
Gaudi::Property<std::string> CP::IsolationSelectionTool::m_phWPKey |
|
private |
Initial value:{this, "PhotonKey", "/ElectronPhoton/LHTight/el_cutValues_",
"path of the cut map for photon"}
Definition at line 86 of file IsolationSelectionTool.h.
◆ m_phWPname
Gaudi::Property<std::string> CP::IsolationSelectionTool::m_phWPname {this, "PhotonWP", "Undefined", "Working point for photon"} |
|
private |
◆ m_phWPs
std::vector<std::unique_ptr<IsolationWP> > CP::IsolationSelectionTool::m_phWPs {} |
|
private |
◆ m_phWPvec
Gaudi::Property<std::vector<std::string> > CP::IsolationSelectionTool::m_phWPvec {this, "PhotonWPVec", {}, "Vector of working points for photon"} |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
@ ptcone20_Nonprompt_All_MaxWeightTTVALooseCone_pt500
Ptcone http://arxiv.org/abs/1007.2221 for high mu.
@ topoetcone20
Topo-cluster ET-sum.
Electron_v1 Electron
Definition of the current "egamma version".
@ neflowisol20
Neutral eflow isolation.
static AuxTypeRegistry & instance()
Return the singleton registry instance.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
@ ptcone20
Track isolation.
@ ptcone20_Nonprompt_All_MaxWeightTTVA_pt500
Ptcone http://arxiv.org/abs/1007.2221 for high mu.
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
virtual void setOwner(IDataHandleHolder *o)=0
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
@ ptcone20_Nonprompt_All_MaxWeightTTVALooseCone_pt1000
const std::string & name(Level lvl)
Convenience function for translating message levels to strings.
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
@ ptvarcone30_Nonprompt_All_MaxWeightTTVALooseCone_pt1000
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
@ ptvarcone30_Nonprompt_All_MaxWeightTTVALooseCone_pt500
Photon_v1 Photon
Definition of the current "egamma version".
std::string PathResolverFindCalibFile(const std::string &logical_file_name)
struct TBPatternUnitContext Muon
void setCutResult(const std::string &cutName, bool cutResult)
Set the result of a cut, based on the cut name (safer)
void clear()
Clear all bits.
#define ATH_MSG_WARNING(x)
@ ptvarcone30_Nonprompt_All_MaxWeightTTVA_pt1000
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
std::vector< std::string > veto
these patterns are anded
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
@ ptvarcone30_Nonprompt_All_MaxWeightTTVA_pt500
@ ptcone20_Nonprompt_All_MaxWeightTTVA_pt1000
int addCut(const std::string &cutName, const std::string &cutDescription)
Add a cut; returning the cut position.