|
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 > &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::string &inputAlg) 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...
|
|
◆ 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 124 of file Tool_DetailsArranger.cxx.
131 std::string fullFeatName = inSeed->getNameInputAlgorithm() +
"_" + featName;
133 double theValue = features->
value(fullFeatName,
isValid);
138 bool isBadSeed = (noAnyConstituents || noSelConstituents || noValidInputTau);
141 ATH_MSG_DEBUG(
"WARNING --- Problems getting value for feature " << fullFeatName <<
" from map! This should not happen for this seed!");
142 ATH_MSG_DEBUG(
"WARNING --- Did the ModeDiscriminator set features used in BDTs that were not found to their default values?");
143 ATH_MSG_DEBUG(
"NOTE --- This can also happen for seeds with (for example) 0 neutrals when trying to get Neutral_SumM - check seed");
149 int valueToAddInt = -1;
150 float valueToAddFloat = -1.1;
154 valueToAddInt = (
int)theValue;
158 valueToAddFloat = (
float)theValue;
162 ATH_MSG_WARNING(
"Unknown PanTauDetailType! Please use enum PanTauDetailsType from PanTauAlgs/Tool_DetailsArranger.h.");
◆ arrangePFOLinks()
Definition at line 170 of file Tool_DetailsArranger.cxx.
176 std::vector< ElementLink< xAOD::PFOContainer > > neutralPFOLinks = tauJet->
protoNeutralPFOLinks();
185 std::vector< ElementLink< xAOD::PFOContainer > > preLinkPi0PFOLinks = tauJet->
pi0PFOLinks();
209 return StatusCode::SUCCESS;
213 if(decayModeProto == decayModeFinal) {
218 preLinkPi0PFOLinks.push_back( pi0PFOLinks.at(0) );
226 preLinkPi0PFOLinks=pi0PFOLinks;
237 if(!preSelected_neutralPFOLinks.empty()) preLinkPi0PFOLinks.push_back( preSelected_neutralPFOLinks.at(0) );
238 else ATH_MSG_WARNING(
"No neutral PFO Links although there should be!!");
250 if( pi0PFOLinks.size() == 1 &&
HasMultPi0sInOneCluster(pi0PFOLinks.at(0).cachedElement(), decayModeProto, inputAlg) ){
256 preLinkPi0PFOLinks=pi0PFOLinks;
262 preLinkPi0PFOLinks=pi0PFOLinks;
263 if(!preSelected_neutralPFOLinks.empty()) preLinkPi0PFOLinks.push_back( preSelected_neutralPFOLinks.at(0) );
264 else ATH_MSG_WARNING(
"No neutral PFO Links although there should be!!");
273 preLinkPi0PFOLinks.push_back( pi0PFOLinks.at(0) );
274 preLinkPi0PFOLinks.push_back( pi0PFOLinks.at(1) );
282 if(!preSelected_neutralPFOLinks.empty()) preLinkPi0PFOLinks.push_back( preSelected_neutralPFOLinks.at(0) );
283 else ATH_MSG_WARNING(
"No neutral PFO Links although there should be!!");
298 std::vector< ElementLink< xAOD::PFOContainer > > finalChrgPFOLinks = tauJet->
chargedPFOLinks();
299 std::vector< ElementLink< xAOD::PFOContainer > > finalPi0PFOLinks = tauJet->
pi0PFOLinks();
300 std::vector< ElementLink< xAOD::PFOContainer > > finalNeutralPFOLinks = tauJet->
neutralPFOLinks();
303 std::vector< TLorentzVector > vec_pi04vec;
304 std::vector< std::vector< ElementLink<xAOD::PFOContainer> > > vec_pi0pfos;
307 for(
unsigned int itlv=0; itlv!=vec_pi04vec.size(); ++itlv) {
310 p->setPxPyPzE(vec_pi04vec.at(itlv).Px(), vec_pi04vec.at(itlv).Py(), vec_pi04vec.at(itlv).Pz(), vec_pi04vec.at(itlv).E());
311 std::vector< ElementLink< xAOD::PFOContainer > > pfo_link_vector;
312 for(
uint ipfo = 0; ipfo != vec_pi0pfos.at(itlv).
size(); ++ipfo) {
313 pfo_link_vector.push_back(vec_pi0pfos.at(itlv).at(ipfo));
317 accPi0PFOLinks(*
p) = pfo_link_vector;
325 return StatusCode::SUCCESS;
◆ CollectConstituentsAsPFOLinks()
Definition at line 398 of file Tool_DetailsArranger.cxx.
405 std::vector< ElementLink< xAOD::PFOContainer > > new_links;
407 unsigned int nConstsOfType=0;
412 ATH_MSG_WARNING(
"CollectConstituentsAsPFOLinks: Function was called with type = " <<
type <<
" , however it was only designed for types t_Pi0Neut and t_Neutral! Returning...");
416 for(
unsigned int iConst=0; iConst<tauConstituents.size(); iConst++) {
417 bool isOfType = tauConstituents[iConst]->isOfType(
type);
418 if(!isOfType)
continue;
426 for(
unsigned int iPFO=0; iPFO<cellbased_neutralPFOLinks.size(); iPFO++) {
427 const xAOD::PFO* pfo = cellbased_neutralPFOLinks.at(iPFO).cachedElement();
429 if( tauConstituents[iConst]->getPFO() != pfo )
continue;
431 new_links.push_back( cellbased_neutralPFOLinks.at(iPFO) );
435 if( nConstsOfType != new_links.size() ){
436 ATH_MSG_WARNING(
"CollectConstituentsAsPFOLinks: Couldn't find PFOLinks " << new_links.size() <<
" for all tau constituents (" << tauConstituents.size() <<
")!");
◆ createPi0Vectors()
Definition at line 444 of file Tool_DetailsArranger.cxx.
454 size_t iNumPi0PFO = tauJet->
nPi0PFOs();
468 vPi0s.push_back(xPfo1->
p4() + xPfo2->
p4());
471 double dNewMomentum = std::sqrt(vPi0s[0].
E() * vPi0s[0].
E() - fMassPi0Squared);
472 vPi0s[0].SetPxPyPzE(vPi0s[0].Vect().Unit().Px() * dNewMomentum,
473 vPi0s[0].Vect().Unit().Py() * dNewMomentum,
474 vPi0s[0].Vect().Unit().Pz() * dNewMomentum,
477 std::vector< ElementLink<xAOD::PFOContainer> > pfovec;
480 vec_pi0pfos.push_back( pfovec );
487 vPi0s.push_back(xPfo->
p4());
490 double dNewMomentum = std::sqrt( (vPi0s[0].
E()/2.)*(vPi0s[0].
E()/2.) -
MASS_PI0*
MASS_PI0 );
491 vPi0s[0].SetVectM(vPi0s[0].Vect().Unit() * dNewMomentum,
MASS_PI0 );
494 vPi0s.push_back(vPi0s[0]);
496 std::vector< ElementLink<xAOD::PFOContainer> > pfovec;
498 vec_pi0pfos.push_back( pfovec );
499 vec_pi0pfos.push_back( pfovec );
503 for (
size_t iPFO = 0; iPFO < iNumPi0PFO; iPFO++){
504 vPi0s.push_back(tauJet->
pi0PFO(iPFO)->
p4());
505 std::vector< ElementLink<xAOD::PFOContainer> > pfovec;
507 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 std::string & |
inputAlg |
|
) |
| const |
|
protected |
Definition at line 358 of file Tool_DetailsArranger.cxx.
362 int nPi0sPerCluster = 1;
364 if (inputAlg !=
"CellBased" )
return (nPi0sPerCluster > 1);
375 return (nPi0sPerCluster > 1);
◆ 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 33 of file Tool_DetailsArranger.cxx.
60 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, 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 330 of file Tool_DetailsArranger.cxx.
332 std::vector< ElementLink< xAOD::PFOContainer > > finalChrgPFOLinks = tauJet->
chargedPFOLinks();
333 std::vector< ElementLink< xAOD::PFOContainer > > finalPi0PFOLinks = tauJet->
pi0PFOLinks();
335 unsigned int NCharged = finalChrgPFOLinks.size();
336 unsigned int NPi0Neut = finalPi0PFOLinks.size();
338 TLorentzVector tlv_PanTau_Final;
339 for(
unsigned int iPFO=0; iPFO<NCharged; iPFO++) {
340 const xAOD::PFO* pfo = finalChrgPFOLinks.at(iPFO).cachedElement();
341 tlv_PanTau_Final += pfo->
p4();
343 for(
unsigned int iPFO=0; iPFO<NPi0Neut; iPFO++) {
344 const xAOD::PFO* pfo = finalPi0PFOLinks.at(iPFO).cachedElement();
345 tlv_PanTau_Final += pfo->
p4();
351 featureMap->
addFeature(inputAlg +
"_" + varTypeName_Basic +
"_FinalMomentumCore_pt", tlv_PanTau_Final.Pt() );
352 featureMap->
addFeature(inputAlg +
"_" + varTypeName_Basic +
"_FinalMomentumCore_eta", tlv_PanTau_Final.Eta() );
353 featureMap->
addFeature(inputAlg +
"_" + varTypeName_Basic +
"_FinalMomentumCore_phi", tlv_PanTau_Final.Phi() );
354 featureMap->
addFeature(inputAlg +
"_" + 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
std::string PanTau::Tool_DetailsArranger::m_Tool_InformationStoreName |
|
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_EtInRing
std::string PanTau::Tool_DetailsArranger::m_varTypeName_EtInRing |
|
protected |
◆ m_varTypeName_HLV
std::string PanTau::Tool_DetailsArranger::m_varTypeName_HLV |
|
protected |
◆ m_varTypeName_ImpactParams
std::string PanTau::Tool_DetailsArranger::m_varTypeName_ImpactParams |
|
protected |
◆ m_varTypeName_Isolation
std::string PanTau::Tool_DetailsArranger::m_varTypeName_Isolation |
|
protected |
◆ m_varTypeName_JetMoment
std::string PanTau::Tool_DetailsArranger::m_varTypeName_JetMoment |
|
protected |
◆ m_varTypeName_JetShape
std::string PanTau::Tool_DetailsArranger::m_varTypeName_JetShape |
|
protected |
◆ m_varTypeName_Mean
std::string PanTau::Tool_DetailsArranger::m_varTypeName_Mean |
|
protected |
◆ m_varTypeName_Num
std::string PanTau::Tool_DetailsArranger::m_varTypeName_Num |
|
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_varTypeName_Sum
std::string PanTau::Tool_DetailsArranger::m_varTypeName_Sum |
|
protected |
◆ m_vhka
◆ MASS_PI0
constexpr const float PanTau::Tool_DetailsArranger::MASS_PI0 = 134.98 |
|
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
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
std::string getNameInputAlgorithm() 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.
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.
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
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
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
@ PanTau_BDTVar_Charged_JetMoment_EtDRxTotalEt
@ PanTau_BDTVar_Neutral_Ratio_EtOverEtAllConsts
@ PanTau_BDTVar_Neutral_PID_BDTValues_BDTSort_1