|
ATLAS Offline Software
|
Constituent modifier implementing the Constituent Substraction technique.
More...
#include <ConstituentSubtractorTool.h>
|
| ConstituentSubtractorTool (const std::string &name) |
|
StatusCode | initialize () |
| Dummy implementation of the initialisation function. More...
|
|
StatusCode | process (xAOD::IParticleContainer *cont) const override final |
|
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 |
|
|
StatusCode | setEtaPhi (xAOD::IParticle *obj, float eta, float phi) const |
|
StatusCode | setEnergyPt (xAOD::IParticle *obj, float e, float pt, const SG::AuxElement::Accessor< float > *weightAcc=nullptr) const |
|
StatusCode | setP4 (xAOD::IParticle *obj, const xAOD::JetFourMom_t &p4, const SG::AuxElement::Accessor< float > *weightAcc=nullptr) 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...
|
|
|
SG::ReadHandleKey< xAOD::EventInfo > | m_eventinfokey {"EventInfo"} |
| Handle to EventInfo. This is used to get the evt&run number to set the Ghost area random seeds. More...
|
|
Gaudi::Property< float > | m_maxDeltaR = {this, "MaxDeltaR",0.25,""} |
|
Gaudi::Property< float > | m_alpha = {this, "Alpha",0.,""} |
|
Gaudi::Property< float > | m_ghostArea = {this, "GhostArea",0.01,""} |
|
Gaudi::Property< float > | m_maxEta = {this, "MaxEta",5.5,""} |
|
Gaudi::Property< float > | m_maxRapForRhoComputation = {this, "MaxRapForRhoComputation", 2.0, ""} |
|
Gaudi::Property< float > | m_gridSize = {this, "GridSize", 0.5, ""} |
|
Gaudi::Property< bool > | m_commonBgeForRhoAndRhom = {this, "CommonBgeForRhoAndRhom",false, ""} |
|
Gaudi::Property< bool > | m_doRapidityRescaling = {this, "DoRapidityRescaling",false, ""} |
|
Gaudi::Property< bool > | m_doRapidityPhiRescaling = {this, "DoRapidityPhiRescaling",false, ""} |
|
Gaudi::Property< std::string > | m_rescalingFileName = {this, "RescalingFileName","", ""} |
|
Gaudi::Property< std::string > | m_rescalingHistogramName = {this, "RescalingHistogramName","", ""} |
|
Gaudi::Property< bool > | m_ignoreChargedPFOs = {this, "IgnoreChargedPFO",0.,"Option to disregard cPFOs in the weight calculation"} |
|
std::unique_ptr< fastjet::FunctionOfPseudoJet< double > > | m_rescaling =nullptr |
|
std::unique_ptr< TH1D > | m_hist =nullptr |
|
std::unique_ptr< TH2D > | m_hist2D =nullptr |
|
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 |
|
Constituent modifier implementing the Constituent Substraction technique.
- Author
- P-A Delsart, T.J. Khoo, others ??
Definition at line 30 of file ConstituentSubtractorTool.h.
◆ StoreGateSvc_t
◆ ConstituentSubtractorTool()
ConstituentSubtractorTool::ConstituentSubtractorTool |
( |
const std::string & |
name | ) |
|
◆ 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]
◆ 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.
◆ initialize()
StatusCode ConstituentSubtractorTool::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 30 of file ConstituentSubtractorTool.cxx.
34 ATH_MSG_ERROR(
"Incompatible configuration: setting both IgnoreChargedPFO and ApplyToChargedPFO to true"
35 <<
"will set all cPFOs to zero");
36 return StatusCode::FAILURE;
39 ATH_MSG_ERROR(
"Incompatible configuration: ApplyToNeutralPFO=False -- what kind of pileup do you wish to suppress?");
40 return StatusCode::FAILURE;
47 ATH_MSG_ERROR(
"Incompatible configuration: You set both, DoRapidityRescaling and DoRapidityPhiRescaling, to true. Use maximally only one of them.");
48 return StatusCode::FAILURE;
52 ATH_MSG_ERROR(
"Incompatible configuration: You have chosen a background rescaling, but you have not specified the path to the file with rescaling histograms or the name of the histogram. Specify properties FileRescaling and HistogramRescaling.");
53 return StatusCode::FAILURE;
58 if (fullPathToFile.empty()){
59 ATH_MSG_ERROR(
"Incompatible configuration: The provided file for rescaling was not found using PathResolver.");
60 return StatusCode::FAILURE;
62 std::unique_ptr<TFile>
file(TFile::Open(fullPathToFile.data(),
"READ"));
63 if (
file->IsZombie()){
64 ATH_MSG_ERROR(
"Incompatible configuration: The file for rescaling has been tried to open, but it was found it is zombie.");
65 return StatusCode::FAILURE;
69 ATH_MSG_ERROR(
"Incompatible configuration: The provided histogram name was not found in the root file.");
70 return StatusCode::FAILURE;
74 if (
object->InheritsFrom(TH1D::Class())){
75 m_hist.reset(
static_cast<TH1D*
>(
object->Clone(
"hist_cloned")));
76 m_hist->SetDirectory(
nullptr);
77 m_rescaling.reset(
static_cast<fastjet::FunctionOfPseudoJet<double>*
>(
new contrib::BackgroundRescalingYFromRoot<TH1D>(
m_hist.get())));
80 ATH_MSG_ERROR(
"Incompatible configuration: You want to do rapidity rescaling, but the provided histogram name is not a TH1D.");
81 return StatusCode::FAILURE;
85 if (
object->InheritsFrom(TH2D::Class())){
88 m_rescaling.reset(
static_cast<fastjet::FunctionOfPseudoJet<double>*
>(
new contrib::BackgroundRescalingYPhiFromRoot<TH2D>(
m_hist2D.get())));
91 ATH_MSG_ERROR(
"Incompatible configuration: You want to do rapidity-phi rescaling, but the provided histogram name is not a TH2D.");
92 return StatusCode::FAILURE;
98 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()
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.
◆ process()
|
finaloverridevirtualinherited |
◆ process_impl()
Reimplemented from JetConstituentModifierBase.
Definition at line 104 of file ConstituentSubtractorTool.cxx.
106 contrib::ConstituentSubtractor subtractor;
118 subtractor.set_use_nearby_hard(-1,-1);
121 std::vector<PseudoJet> inputs_to_correct, inputs_to_not_correct;
122 inputs_to_correct.reserve(cont->
size());
123 inputs_to_not_correct.reserve(cont->
size());
155 PseudoJet pj(
part->p4() );
156 pj.set_user_index(
i );
159 inputs_to_correct.push_back(pj);
161 if (pj.rap()<minRap) minRap = pj.rap();
162 if (pj.rap()>maxRap) maxRap = pj.rap();
165 inputs_to_not_correct.push_back(pj);
176 bge_rho.set_particles(inputs_to_correct);
177 subtractor.set_background_estimator(&bge_rho);
181 ATH_MSG_DEBUG(
"Subtracting event density from constituents");
182 std::vector<PseudoJet> corrected_event=subtractor.subtract_event(inputs_to_correct,
m_maxEta);
186 std::vector<xAOD::JetFourMom_t> corrected_p4s(cont->size(),
xAOD::JetFourMom_t(0.,0.,0.,0.));
188 for(PseudoJet & pj : corrected_event) {
189 ATH_MSG_VERBOSE(
"Setting four-mom for constituent " << pj.user_index() <<
", pt = " << pj.pt());
190 corrected_p4s[pj.user_index()].SetCoordinates(pj.pt(),pj.eta(),pj.phi(),pj.m());
192 for(PseudoJet & pj : inputs_to_not_correct) {
193 ATH_MSG_VERBOSE(
"Setting four-mom for constituent " << pj.user_index() <<
", pt = " << pj.pt());
194 corrected_p4s[pj.user_index()].SetCoordinates(pj.pt(),pj.eta(),pj.phi(),pj.m());
196 for(PseudoJet & pj : inputs_to_not_correct) {
197 ATH_MSG_VERBOSE(
"Setting four-mom for constituent " << pj.user_index() <<
", pt = " << pj.pt());
198 corrected_p4s[pj.user_index()].SetCoordinates(pj.pt(),pj.eta(),pj.phi(),pj.m());
207 ATH_MSG_VERBOSE(
"Initial eta: " <<
part->eta() <<
", subtracted pt: " << corrected_p4s[
i].Eta());
208 ATH_MSG_VERBOSE(
"Initial phi: " <<
part->phi() <<
", subtracted pt: " << corrected_p4s[
i].Phi());
215 return StatusCode::SUCCESS;
◆ renounce()
◆ renounceArray()
◆ setEnergyPt()
Definition at line 61 of file JetConstituentModifierBase.cxx.
70 if(weightAcc) (*weightAcc)(*clus) = clus->
calE() > 0. ?
e / clus->calE() : 0.;
79 if(weightAcc) (*weightAcc)(*pfo) = pfo->
pt() > 0. ?
pt / pfo->pt() : 0.;
82 pfo->setP4(
pt, pfo->eta(), pfo->phi());
91 if(weightAcc) (*weightAcc)(*pfo) = pfo->
pt() > 0. ?
pt / pfo->pt() : 0.;
92 pfo->setP4(
pt, pfo->eta(), pfo->phi(), 0.);
99 if( tcc->
taste() != 0) {
100 if(weightAcc) (*weightAcc)(*tcc) = tcc->
pt() > 0. ?
pt / tcc->pt() : 0.;
101 tcc->setParameters(
pt, tcc->eta(), tcc->phi(), tcc->m(),
xAOD::TrackCaloCluster::Taste(tcc->taste()), tcc->trackParticleLink(), tcc->caloClusterLinks());
108 return StatusCode::FAILURE;
110 return StatusCode::SUCCESS;
◆ setEtaPhi()
StatusCode JetConstituentModifierBase::setEtaPhi |
( |
xAOD::IParticle * |
obj, |
|
|
float |
eta, |
|
|
float |
phi |
|
) |
| const |
|
protectedinherited |
◆ setP4()
Definition at line 113 of file JetConstituentModifierBase.cxx.
120 if(weightAcc) (*weightAcc)(*clus) = clus->
calE() > 0. ? p4.e() / clus->calE() : 0.;
121 clus->setCalE(p4.e());
122 clus->setCalEta(p4.eta());
123 clus->setCalPhi(p4.phi());
132 if(weightAcc) (*weightAcc)(*pfo) = pfo->
pt() > 0. ? p4.pt() / pfo->pt() : 0.;
133 pfo->setP4(p4.pt(),p4.eta(),p4.phi(),p4.mass());
142 if(weightAcc) (*weightAcc)(*pfo) = pfo->
pt() > 0. ? p4.pt() / pfo->pt() : 0.;
143 pfo->setP4(p4.pt(),p4.eta(),p4.phi(),p4.mass());
150 if( tcc->
taste() != 0) {
151 if(weightAcc) (*weightAcc)(*tcc) = tcc->
pt() > 0. ? p4.pt() / tcc->pt() : 0.;
152 tcc->setParameters(p4.pt(), p4.eta(), p4.phi(), p4.mass(),
xAOD::TrackCaloCluster::Taste(tcc->taste()), tcc->trackParticleLink(), tcc->caloClusterLinks());
160 return StatusCode::FAILURE;
162 return StatusCode::SUCCESS;
◆ 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_alpha
Gaudi::Property<float> ConstituentSubtractorTool::m_alpha = {this, "Alpha",0.,""} |
|
private |
◆ m_applyToChargedPFO
bool JetConstituentModifierBase::m_applyToChargedPFO =true |
|
protectedinherited |
◆ m_applyToNeutralPFO
bool JetConstituentModifierBase::m_applyToNeutralPFO =true |
|
protectedinherited |
◆ m_commonBgeForRhoAndRhom
Gaudi::Property<bool> ConstituentSubtractorTool::m_commonBgeForRhoAndRhom = {this, "CommonBgeForRhoAndRhom",false, ""} |
|
private |
◆ m_detStore
◆ m_doRapidityPhiRescaling
Gaudi::Property<bool> ConstituentSubtractorTool::m_doRapidityPhiRescaling = {this, "DoRapidityPhiRescaling",false, ""} |
|
private |
◆ m_doRapidityRescaling
Gaudi::Property<bool> ConstituentSubtractorTool::m_doRapidityRescaling = {this, "DoRapidityRescaling",false, ""} |
|
private |
◆ m_eventinfokey
◆ m_evtStore
◆ m_ghostArea
Gaudi::Property<float> ConstituentSubtractorTool::m_ghostArea = {this, "GhostArea",0.01,""} |
|
private |
◆ m_gridSize
Gaudi::Property<float> ConstituentSubtractorTool::m_gridSize = {this, "GridSize", 0.5, ""} |
|
private |
◆ m_hist
std::unique_ptr<TH1D> ConstituentSubtractorTool::m_hist =nullptr |
|
private |
◆ m_hist2D
std::unique_ptr<TH2D> ConstituentSubtractorTool::m_hist2D =nullptr |
|
private |
◆ m_ignoreChargedPFOs
Gaudi::Property<bool> ConstituentSubtractorTool::m_ignoreChargedPFOs = {this, "IgnoreChargedPFO",0.,"Option to disregard cPFOs in the weight calculation"} |
|
private |
◆ m_inputType
unsigned int JetConstituentModifierBase::m_inputType =xAOD::Type::Other |
|
protectedinherited |
◆ m_maxDeltaR
Gaudi::Property<float> ConstituentSubtractorTool::m_maxDeltaR = {this, "MaxDeltaR",0.25,""} |
|
private |
◆ m_maxEta
Gaudi::Property<float> ConstituentSubtractorTool::m_maxEta = {this, "MaxEta",5.5,""} |
|
private |
◆ m_maxRapForRhoComputation
Gaudi::Property<float> ConstituentSubtractorTool::m_maxRapForRhoComputation = {this, "MaxRapForRhoComputation", 2.0, ""} |
|
private |
◆ m_rescaling
std::unique_ptr<fastjet::FunctionOfPseudoJet<double> > ConstituentSubtractorTool::m_rescaling =nullptr |
|
private |
◆ m_rescalingFileName
Gaudi::Property<std::string> ConstituentSubtractorTool::m_rescalingFileName = {this, "RescalingFileName","", ""} |
|
private |
◆ m_rescalingHistogramName
Gaudi::Property<std::string> ConstituentSubtractorTool::m_rescalingHistogramName = {this, "RescalingHistogramName","", ""} |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
virtual double pt() const
The transverse momentum ( ) of the particle.
Scalar phi() const
phi method
JetConstituentModifierBase(const std::string &name)
Helper class to provide type-safe access to aux data.
Scalar eta() const
pseudorapidity method
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
flt_t calE() const
Geet Energy in signal state CALIBRATED.
Class describing a TrackCaloCluster.
StatusCode accept(const xAOD::Muon *mu)
virtual StatusCode process_impl(xAOD::IParticleContainer *) const
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
void setCalEta(flt_t)
Set for signal state CALIBRATED.
virtual double pt() const override
#define ATH_MSG_VERBOSE(x)
Class providing the definition of the 4-vector interface.
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.
virtual void setOwner(IDataHandleHolder *o)=0
TrackCaloCluster_v1 TrackCaloCluster
Reference the current persistent version:
virtual double pt() const
The transverse momentum ( ) of the particle.
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
Description of a calorimeter cluster.
void setCalPhi(flt_t)
Set for signal state CALIBRATED.
FlowElement_v1 FlowElement
Definition of the current "pfo version".
float charge() const
get charge of PFO
const T * front() const
Access the first element in the collection as an rvalue.
@ ParticleFlow
The object is a particle-flow object.
const std::string & name(Level lvl)
Convenience function for translating message levels to strings.
StatusCode setP4(xAOD::IParticle *obj, const xAOD::JetFourMom_t &p4, const SG::AuxElement::Accessor< float > *weightAcc=nullptr) const
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
bool isCharged() const
is a charged PFO
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
ROOT::Math::LorentzVector< ROOT::Math::PtEtaPhiM4D< double > > JetFourMom_t
Base 4 Momentum type for Jet.
Class describing a particle flow object.
virtual int taste() const
The taste of the particle.
std::string PathResolverFindCalibFile(const std::string &logical_file_name)
Taste
Type of TrackCaloCluster - Charged - Neutral - Combined.
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
size_type size() const noexcept
Returns the number of elements in the collection.
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
bool empty() const noexcept
Returns true if the collection is empty.
A detector object made of other lower level object(s)