 |
ATLAS Offline Software
|
#include <Tool_DetailsArranger.h>
|
| | Tool_DetailsArranger (const std::string &name) |
| |
| virtual | ~Tool_DetailsArranger () |
| |
| virtual StatusCode | initialize () |
| | Dummy implementation of the initialisation function. More...
|
| |
| virtual StatusCode | execute (PanTau::PanTauSeed *inSeed, xAOD::ParticleContainer &pi0Container, xAOD::PFOContainer &neutralPFOContainer) const |
| |
| bool | isInitialized () |
| |
| 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, V, H > &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 |
| |
|
| void | addPanTauDetailToTauJet (PanTauSeed *inSeed, const std::string &featName, xAOD::TauJetParameters::PanTauDetails detailEnum, PanTauDetailsType detailType) const |
| |
| StatusCode | arrangePFOLinks (PanTau::PanTauSeed *inSeed, xAOD::TauJet *tauJet, xAOD::ParticleContainer &pi0Container, xAOD::PFOContainer &neutralPFOContainer) const |
| |
| bool | HasMultPi0sInOneCluster (const xAOD::PFO *pfo, int decayModeProto) const |
| |
| std::vector< ElementLink< xAOD::PFOContainer > > | CollectConstituentsAsPFOLinks (PanTau::PanTauSeed *inSeed, const std::vector< ElementLink< xAOD::PFOContainer > > &cellbased_neutralPFOLinks, PanTau::TauConstituent::Type type) const |
| |
| 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...
|
| |
|
| static constexpr const float | MASS_PI0 = ParticleConstants::piZeroMassInMeV |
| |
|
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &) |
| | specialization for handling Gaudi::Property<SG::VarHandleKey> More...
|
| |
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyArrayType &) |
| | specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
|
| |
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleType &) |
| | specialization for handling Gaudi::Property<SG::VarHandleBase> More...
|
| |
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &t, const SG::NotHandleType &) |
| | specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
|
| |
◆ StoreGateSvc_t
◆ PanTauDetailsType
◆ Tool_DetailsArranger()
| PanTau::Tool_DetailsArranger::Tool_DetailsArranger |
( |
const std::string & |
name | ) |
|
◆ ~Tool_DetailsArranger()
| PanTau::Tool_DetailsArranger::~Tool_DetailsArranger |
( |
| ) |
|
|
virtualdefault |
◆ addPanTauDetailToTauJet()
Definition at line 105 of file Tool_DetailsArranger.cxx.
112 std::string fullFeatName =
"CellBased_" + featName;
114 double theValue = features->
value(fullFeatName,
isValid);
119 bool isBadSeed = (noAnyConstituents || noSelConstituents || noValidInputTau);
122 ATH_MSG_DEBUG(
"WARNING --- Problems getting value for feature " << fullFeatName <<
" from map! This should not happen for this seed!");
123 ATH_MSG_DEBUG(
"WARNING --- Did the ModeDiscriminator set features used in BDTs that were not found to their default values?");
124 ATH_MSG_DEBUG(
"NOTE --- This can also happen for seeds with (for example) 0 neutrals when trying to get Neutral_SumM - check seed");
130 int valueToAddInt = -1;
131 float valueToAddFloat = -1.1;
135 valueToAddInt =
static_cast<int>(theValue);
139 valueToAddFloat =
static_cast<float>(theValue);
143 ATH_MSG_WARNING(
"Unknown PanTauDetailType! Please use enum PanTauDetailsType from PanTauAlgs/Tool_DetailsArranger.h.");
◆ arrangePFOLinks()
Definition at line 151 of file Tool_DetailsArranger.cxx.
155 std::vector< ElementLink< xAOD::PFOContainer > > neutralPFOLinks = tauJet->
protoNeutralPFOLinks();
164 std::vector< ElementLink< xAOD::PFOContainer > > preLinkPi0PFOLinks = tauJet->
pi0PFOLinks();
188 return StatusCode::SUCCESS;
192 if(decayModeProto == decayModeFinal) {
197 preLinkPi0PFOLinks.push_back( pi0PFOLinks.at(0) );
205 preLinkPi0PFOLinks=pi0PFOLinks;
216 if(!preSelected_neutralPFOLinks.empty()) preLinkPi0PFOLinks.push_back( preSelected_neutralPFOLinks.at(0) );
217 else ATH_MSG_WARNING(
"No neutral PFO Links although there should be!!");
235 preLinkPi0PFOLinks=pi0PFOLinks;
241 preLinkPi0PFOLinks=pi0PFOLinks;
242 if(!preSelected_neutralPFOLinks.empty()) preLinkPi0PFOLinks.push_back( preSelected_neutralPFOLinks.at(0) );
243 else ATH_MSG_WARNING(
"No neutral PFO Links although there should be!!");
252 preLinkPi0PFOLinks.push_back( pi0PFOLinks.at(0) );
253 preLinkPi0PFOLinks.push_back( pi0PFOLinks.at(1) );
261 if(!preSelected_neutralPFOLinks.empty()) preLinkPi0PFOLinks.push_back( preSelected_neutralPFOLinks.at(0) );
262 else ATH_MSG_WARNING(
"No neutral PFO Links although there should be!!");
277 std::vector< ElementLink< xAOD::PFOContainer > > finalChrgPFOLinks = tauJet->
chargedPFOLinks();
278 std::vector< ElementLink< xAOD::PFOContainer > > finalPi0PFOLinks = tauJet->
pi0PFOLinks();
279 std::vector< ElementLink< xAOD::PFOContainer > > finalNeutralPFOLinks = tauJet->
neutralPFOLinks();
282 std::vector< TLorentzVector > vec_pi04vec;
283 std::vector< std::vector< ElementLink<xAOD::PFOContainer> > > vec_pi0pfos;
286 for(
unsigned int itlv=0; itlv!=vec_pi04vec.size(); ++itlv) {
289 p->setPxPyPzE(vec_pi04vec.at(itlv).Px(), vec_pi04vec.at(itlv).Py(), vec_pi04vec.at(itlv).Pz(), vec_pi04vec.at(itlv).E());
290 std::vector< ElementLink< xAOD::PFOContainer > > pfo_link_vector;
291 for(
uint ipfo = 0; ipfo != vec_pi0pfos.at(itlv).
size(); ++ipfo) {
292 pfo_link_vector.push_back(vec_pi0pfos.at(itlv).at(ipfo));
296 accPi0PFOLinks(*
p) = pfo_link_vector;
304 return StatusCode::SUCCESS;
◆ CollectConstituentsAsPFOLinks()
Definition at line 375 of file Tool_DetailsArranger.cxx.
382 std::vector< ElementLink< xAOD::PFOContainer > > new_links;
384 unsigned int nConstsOfType=0;
389 ATH_MSG_WARNING(
"CollectConstituentsAsPFOLinks: Function was called with type = " <<
type <<
" , however it was only designed for types t_Pi0Neut and t_Neutral! Returning...");
393 for(
unsigned int iConst=0; iConst<tauConstituents.size(); iConst++) {
394 bool isOfType = tauConstituents[iConst]->isOfType(
type);
395 if(!isOfType)
continue;
403 for(
unsigned int iPFO=0; iPFO<cellbased_neutralPFOLinks.size(); iPFO++) {
404 const xAOD::PFO* pfo = cellbased_neutralPFOLinks.at(iPFO).cachedElement();
406 if( tauConstituents[iConst]->getPFO() != pfo )
continue;
408 new_links.push_back( cellbased_neutralPFOLinks.at(iPFO) );
412 if( nConstsOfType != new_links.size() ){
413 ATH_MSG_WARNING(
"CollectConstituentsAsPFOLinks: Couldn't find PFOLinks " << new_links.size() <<
" for all tau constituents (" << tauConstituents.size() <<
")!");
◆ createPi0Vectors()
Definition at line 421 of file Tool_DetailsArranger.cxx.
431 size_t iNumPi0PFO = tauJet->
nPi0PFOs();
444 vPi0s.push_back(xPfo1->
p4() + xPfo2->
p4());
447 double dNewMomentum = std::sqrt(vPi0s[0].
E() * vPi0s[0].
E() - fMassPi0Squared);
448 vPi0s[0].SetPxPyPzE(vPi0s[0].Vect().Unit().Px() * dNewMomentum,
449 vPi0s[0].Vect().Unit().Py() * dNewMomentum,
450 vPi0s[0].Vect().Unit().Pz() * dNewMomentum,
453 std::vector< ElementLink<xAOD::PFOContainer> > pfovec;
456 vec_pi0pfos.push_back( pfovec );
463 vPi0s.push_back(xPfo->
p4());
466 double dNewMomentum = std::sqrt( (vPi0s[0].
E()/2.)*(vPi0s[0].
E()/2.) -
MASS_PI0*
MASS_PI0 );
467 vPi0s[0].SetVectM(vPi0s[0].Vect().Unit() * dNewMomentum,
MASS_PI0 );
470 vPi0s.push_back(vPi0s[0]);
472 std::vector< ElementLink<xAOD::PFOContainer> > pfovec;
474 vec_pi0pfos.push_back( pfovec );
475 vec_pi0pfos.push_back( pfovec );
479 for (
size_t iPFO = 0; iPFO < iNumPi0PFO; iPFO++){
480 vPi0s.push_back(tauJet->
pi0PFO(iPFO)->
p4());
481 std::vector< ElementLink<xAOD::PFOContainer> > pfovec;
483 vec_pi0pfos.push_back( pfovec );
◆ 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()
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ execute()
◆ 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
◆ 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
◆ 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
◆ getProperty()
template<class T >
| const T* asg::AsgTool::getProperty |
( |
const std::string & |
name | ) |
const |
|
inherited |
Get one of the tool's properties.
◆ HasMultPi0sInOneCluster()
| bool PanTau::Tool_DetailsArranger::HasMultPi0sInOneCluster |
( |
const xAOD::PFO * |
pfo, |
|
|
int |
decayModeProto |
|
) |
| const |
|
protected |
◆ initialize()
| StatusCode PanTau::Tool_DetailsArranger::initialize |
( |
| ) |
|
|
virtual |
Dummy implementation of the initialisation function.
It's here to allow the dual-use tools to skip defining an initialisation function. Since many are doing so...
Reimplemented from asg::AsgTool.
Definition at line 22 of file Tool_DetailsArranger.cxx.
43 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.
◆ isInitialized()
| bool PanTau::Tool_DetailsArranger::isInitialized |
( |
| ) |
|
|
inlinevirtual |
◆ 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()
| 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, LundVariablesTool, JetDumper, JetBottomUpSoftDrop, JetRecursiveSoftDrop, JetSoftDrop, JetConstituentsRetriever, JetSubStructureMomentToolsBase, JetSplitter, JetToolRunner, JetPruner, JetPseudojetRetriever, JetTrimmer, AsgHelloTool, and KtDeltaRTool.
Definition at line 131 of file AsgTool.cxx.
◆ renounce()
◆ renounceArray()
◆ SetHLVTau()
Definition at line 309 of file Tool_DetailsArranger.cxx.
311 std::vector< ElementLink< xAOD::PFOContainer > > finalChrgPFOLinks = tauJet->
chargedPFOLinks();
312 std::vector< ElementLink< xAOD::PFOContainer > > finalPi0PFOLinks = tauJet->
pi0PFOLinks();
314 unsigned int NCharged = finalChrgPFOLinks.size();
315 unsigned int NPi0Neut = finalPi0PFOLinks.size();
317 TLorentzVector tlv_PanTau_Final;
318 for(
unsigned int iPFO=0; iPFO<NCharged; iPFO++) {
319 const xAOD::PFO* pfo = finalChrgPFOLinks.at(iPFO).cachedElement();
320 tlv_PanTau_Final += pfo->
p4();
322 for(
unsigned int iPFO=0; iPFO<NPi0Neut; iPFO++) {
323 const xAOD::PFO* pfo = finalPi0PFOLinks.at(iPFO).cachedElement();
324 tlv_PanTau_Final += pfo->
p4();
330 featureMap->
addFeature(
"CellBased_" + varTypeName_Basic +
"_FinalMomentumCore_pt", tlv_PanTau_Final.Pt() );
331 featureMap->
addFeature(
"CellBased_" + varTypeName_Basic +
"_FinalMomentumCore_eta", tlv_PanTau_Final.Eta() );
332 featureMap->
addFeature(
"CellBased_" + varTypeName_Basic +
"_FinalMomentumCore_phi", tlv_PanTau_Final.Phi() );
333 featureMap->
addFeature(
"CellBased_" + varTypeName_Basic +
"_FinalMomentumCore_m", tlv_PanTau_Final.M() );
◆ SetNeutralConstituentMass()
| void PanTau::Tool_DetailsArranger::SetNeutralConstituentMass |
( |
xAOD::PFO * |
neutral_pfo, |
|
|
double |
mass |
|
) |
| |
|
staticprotected |
◆ SetNeutralConstituentVectorMasses()
◆ 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_CoreCone
| double PanTau::Tool_DetailsArranger::m_CoreCone = 0.0 |
|
protected |
◆ m_detStore
◆ m_EtaBinEdges
| std::vector<double> PanTau::Tool_DetailsArranger::m_EtaBinEdges |
|
protected |
◆ m_EtaBinnedEtCuts
| std::vector<double> PanTau::Tool_DetailsArranger::m_EtaBinnedEtCuts |
|
protected |
◆ m_evtStore
◆ m_init
| bool PanTau::Tool_DetailsArranger::m_init =false |
|
protected |
◆ m_Tool_InformationStore
◆ m_Tool_InformationStoreName
| Gaudi::Property<std::string> PanTau::Tool_DetailsArranger::m_Tool_InformationStoreName {this, "Tool_InformationStoreName", "", "Tool handle to the information store tool"} |
|
protected |
◆ m_varHandleArraysDeclared
◆ m_varTypeName_Angle
| std::string PanTau::Tool_DetailsArranger::m_varTypeName_Angle |
|
protected |
◆ m_varTypeName_Basic
| std::string PanTau::Tool_DetailsArranger::m_varTypeName_Basic |
|
protected |
◆ m_varTypeName_Combined
| std::string PanTau::Tool_DetailsArranger::m_varTypeName_Combined |
|
protected |
◆ m_varTypeName_DeltaR
| std::string PanTau::Tool_DetailsArranger::m_varTypeName_DeltaR |
|
protected |
◆ m_varTypeName_HLV
| std::string PanTau::Tool_DetailsArranger::m_varTypeName_HLV |
|
protected |
◆ m_varTypeName_JetMoment
| std::string PanTau::Tool_DetailsArranger::m_varTypeName_JetMoment |
|
protected |
◆ m_varTypeName_Mean
| std::string PanTau::Tool_DetailsArranger::m_varTypeName_Mean |
|
protected |
◆ m_varTypeName_PID
| std::string PanTau::Tool_DetailsArranger::m_varTypeName_PID |
|
protected |
◆ m_varTypeName_Ratio
| std::string PanTau::Tool_DetailsArranger::m_varTypeName_Ratio |
|
protected |
◆ m_varTypeName_Shots
| std::string PanTau::Tool_DetailsArranger::m_varTypeName_Shots |
|
protected |
◆ m_varTypeName_StdDev
| std::string PanTau::Tool_DetailsArranger::m_varTypeName_StdDev |
|
protected |
◆ m_vhka
◆ MASS_PI0
| constexpr const float PanTau::Tool_DetailsArranger::MASS_PI0 = ParticleConstants::piZeroMassInMeV |
|
staticconstexprprotected |
The documentation for this class was generated from the following files:
@ PanTau_BDTVar_Neutral_Ratio_1stBDTEtOverEtAllConsts
@ PanTau_BDTVar_Combined_DeltaR1stNeutralTo1stCharged
const PanTau::TauFeature * getFeatures() const
const xAOD::TauJet * getTauJet() const
bool toContainedElement(BaseConstReference data, ElementType element, IProxyDict *sg=0)
Set from element pointer and a reference to the container (storable)
int getDecayModeBySubAlg() const
Helper class to provide type-safe access to aux data.
int getDecayModeByPanTau() const
std::vector< PanTau::TauConstituent * > getConstituentsOfType(int tauConstituent_Type, bool &foundit)
void setPanTauDetail(TauJetParameters::PanTauDetails panTauDetail, int value)
@ PanTau_BDTValue_3p0n_vs_3pXn
bool attribute(PFODetails::PFOAttributes AttributeType, T &anAttribute) const
get a PFO Variable via enum
virtual double eta() const
The pseudorapidity ( ) of the particle.
void clearNeutralPFOLinks()
Remove all neutral PFOs from the tau.
bool addFeature(const std::string &name, const double value)
adds a new feature
TLorentzVector getFinalMomentum() const
void setNeutralPFOLinks(const PFOLinks_t &neutralPFOs)
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
void clearPi0PFOLinks()
Remove all pi0 PFOs from the tau.
std::vector< SG::VarHandleKeyArray * > m_vhka
bool panTauDetail(TauJetParameters::PanTauDetails panTauDetail, int &value) const
Get and set values of pantau details variables via enum.
bool isValid(const T &p)
Av: we implement here an ATLAS-sepcific convention: all particles which are 99xxxxx are fine.
Class providing the definition of the 4-vector interface.
size_t nPi0PFOs() const
Get the number of pi0 PFO particles associated with this tau.
void setP4(double pt, double eta, double phi, double m)
Set methods for IParticle values.
Particle_v1 Particle
Define the latest version of the particle class.
@ PanTau_BDTVar_Neutral_HLV_SumM
virtual void setOwner(IDataHandleHolder *o)=0
const PFO * pi0PFO(size_t i) const
Get the pointer to a given pi0 PFO associated with this tau.
virtual double e() const
The total energy of the particle.
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
void setFinalMomentum(TLorentzVector finalMom)
@ PanTau_BDTValue_1p1n_vs_1pXn
const PFOLinks_t & protoNeutralPFOLinks() const
const PFOLinks_t & neutralPFOLinks() const
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
double value(const std::string &name, bool &isValid) const
returns the value of the feature given by its name
Class describing a tau jet.
virtual FourMom_t p4() const
The full 4-momentum of the particle.
const std::string & name(Level lvl)
Convenience function for translating message levels to strings.
virtual double phi() const
The azimuthal angle ( ) of the particle.
@ PanTau_BDTValue_1p0n_vs_1p1n
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
void addPi0Link(const ElementLink< IParticleContainer > &tr)
add a pi0 link to the tau
Description of a generic particle.
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Class describing a particle flow object.
static StatusCode bindToolHandle(ToolHandle< T > &, std::string)
@ PanTau_BDTVar_Neutral_PID_BDTValues_BDTSort_2
value_type push_back(value_type pElem)
Add an element to the end of the collection.
const PFOLinks_t & pi0PFOLinks() const
void setChargedPFOLinks(const PFOLinks_t &chargedPFOs)
void clearChargedPFOLinks()
Remove all charged PFOs from the tau.
void setP4(const FourMom_t &vec)
set the 4-vec
void setPi0PFOLinks(const PFOLinks_t &pi0PFOs)
@ PanTau_BDTVar_Charged_StdDev_Et_WrtEtAllConsts
void sort(typename std::reverse_iterator< DataModel_detail::iterator< DVL > > beg, typename std::reverse_iterator< DataModel_detail::iterator< DVL > > end, const Compare &comp)
Specialization of sort for DataVector/List.
#define ATH_MSG_WARNING(x)
bool isOfTechnicalQuality(int pantauSeed_TechnicalQuality) const
@ t_NoSelectedConstituents
const PFOLinks_t & protoChargedPFOLinks() const
cellbased pfos
void setDetail(TauJetParameters::Detail detail, int value)
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
@ PanTau_isPanTauCandidate
@ PanTau_BDTVar_Basic_NNeutralConsts
const PFOLinks_t & chargedPFOLinks() const
default pfos
const T * at(size_type n) const
Access an element, as an rvalue.
@ PanTau_BDTVar_Neutral_Shots_NPhotonsInSeed
@ PanTau_BDTVar_Charged_HLV_SumM
@ PanTau_BDTVar_Charged_JetMoment_EtDRxTotalEt
@ PanTau_BDTVar_Neutral_Ratio_EtOverEtAllConsts
@ PanTau_BDTVar_Neutral_PID_BDTValues_BDTSort_1