ATLAS Offline Software
Loading...
Searching...
No Matches
PseudoJetAlgorithm Class Reference

PseudoJetAlgorithm retrieves and builds the pseudojet inputs used in jet finding. More...

#include <PseudoJetAlgorithm.h>

Inheritance diagram for PseudoJetAlgorithm:
Collaboration diagram for PseudoJetAlgorithm:

Public Member Functions

 PseudoJetAlgorithm (const std::string &n, ISvcLocator *l)
virtual StatusCode initialize () override final
 Athena algorithm's Hooks.
virtual StatusCode execute (const EventContext &ctx) const override final
virtual StatusCode sysInitialize () override
 Override sysInitialize.
virtual bool isClonable () const override
 Specify if the algorithm is clonable.
virtual unsigned int cardinality () const override
 Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant.
virtual StatusCode sysExecute (const EventContext &ctx) override
 Execute an algorithm.
virtual const DataObjIDColl & extraOutputDeps () const override
 Return the list of extra output dependencies.
virtual bool filterPassed (const EventContext &ctx) const
virtual void setFilterPassed (bool state, const EventContext &ctx) const
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual StatusCode sysStart () override
 Handle START transition.
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles.
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles.
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T, V, H > &t)
void updateVHKA (Gaudi::Details::PropertyBase &)
MsgStream & msg () const
bool msgLvl (const MSG::Level lvl) const

Protected Member Functions

virtual::StatusCode finalize ()
 finalize this algorithm
void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution
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.

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t

Private Member Functions

virtual std::unique_ptr< PseudoJetContainercreatePJContainer (const xAOD::IParticleContainer &cont, const EventContext &ctx) const
 Method to construct the PseudoJetContainer and record in StoreGate.
virtual void print () const
 Dump to properties to the log.
std::vector< fastjet::PseudoJet > createPseudoJets (const xAOD::IParticleContainer &) const
std::vector< fastjet::PseudoJet > createPseudoJets (const xAOD::IParticleContainer &, const xAOD::VertexContainer *vertices) const
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

Private Attributes

SG::ReadHandleKey< xAOD::IParticleContainerm_incoll {this, "InputContainer", "", "The input IParticleContainer name"}
 Input collection name.
SG::WriteHandleKey< PseudoJetContainerm_outcoll {this, "OutputContainer", "", "The output PseudoJetContainer name"}
 Output collection name.
Gaudi::Property< std::string > m_label {this, "Label", "", "String label identifying the pseudojet type"}
 Label for the collection.
Gaudi::Property< bool > m_skipNegativeEnergy {this, "SkipNegativeEnergy", false, "Whether to skip negative energy inputs"}
 Flag indicating to skip objects with E<0.
Gaudi::Property< bool > m_negEnergyAsGhosts {this, "TreatNegativeEnergyAsGhost", false, "Whether to convert negative energy inputs into ghosts"}
 Flag indicating to treat objects with E<0 as ghosts (useful for HI)
Gaudi::Property< bool > m_useCharged {this, "UseCharged", true, "Whether to use charged PFOs/FEs"}
 Flag to define if charged PFOs / FEs should be considered.
Gaudi::Property< bool > m_useNeutral {this, "UseNeutral", true, "Whether to use neutral PFOs/FEs"}
 Flag to define if neutral PFOs / FEs should be considered.
Gaudi::Property< bool > m_useChargedPV {this, "UseChargedPV", true, "Whether to use charged PFOs/FEs matched to the PV"}
 Flag to define if charged PFOs / FEs should be matched to PV.
Gaudi::Property< bool > m_useChargedPUsideband {this, "UseChargedPUsideband", false, "Whether to use charged PU sideband only"}
 Flag for PFlow sideband definition.
Gaudi::Property< bool > m_byVertex {this, "DoByVertex", false, "True if jets should be reconstructed by vertex"}
 Flag for by-vertex jet reconstruction.
SG::ReadHandleKey< xAOD::VertexContainerm_vertexContainer_key {this, "VertexContainer", "PrimaryVertices", "Vertex container (for by-vertex reconstruction)"}
bool m_isGhost {false}
 Internal steering flags Set in initialize()
bool m_emtopo {false}
 Determines whether the PJs should be made ghosts.
bool m_pflow {false}
 True if inputs are EM-scale topo clusters.
bool m_ufo {false}
 True if inputs are PFlow.
DataObjIDColl m_extendedExtraObjects
 Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default)
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
bool m_varHandleArraysDeclared

Detailed Description

PseudoJetAlgorithm retrieves and builds the pseudojet inputs used in jet finding.

Alg Properties:

  • InputCollection: Name of the input collection.
  • OutputCollection: Name of the output collection of pseudojets.
  • Label: Label for the constituents. See note below.
  • SkipNegativeEnergy: Flag indicating that inputs with negative energy should be ignored.
  • GhostScale : If nonzero, the pseudojets are labeled as ghosts and their four-momenta are scaled by this factor.

Note: The label is attached to the CUI (constituent user info) associated with created pseudojet and is used to name jet moments that point to the PJs, and in rare cases (EMTopo, PFlow) to toggle special treatments.

Definition at line 37 of file PseudoJetAlgorithm.h.

Member Typedef Documentation

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ PseudoJetAlgorithm()

PseudoJetAlgorithm::PseudoJetAlgorithm ( const std::string & n,
ISvcLocator * l )
inline

Definition at line 42 of file PseudoJetAlgorithm.h.

42: EL::AnaReentrantAlgorithm(n,l) {}

Member Function Documentation

◆ cardinality()

unsigned int AthCommonReentrantAlgorithm< Gaudi::Algorithm >::cardinality ( ) const
overridevirtualinherited

Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant.

Override this to return 0 for reentrant algorithms.

Definition at line 75 of file AthCommonReentrantAlgorithm.cxx.

64{
65 return 0;
66}

◆ createPJContainer()

std::unique_ptr< PseudoJetContainer > PseudoJetAlgorithm::createPJContainer ( const xAOD::IParticleContainer & cont,
const EventContext & ctx ) const
privatevirtual

Method to construct the PseudoJetContainer and record in StoreGate.

Definition at line 75 of file PseudoJetAlgorithm.cxx.

75 {
76 // create PseudoJets
77 std::vector<fastjet::PseudoJet> vpj;
78
79 #ifndef GENERATIONBASE
80 if (m_byVertex){
82 vpj = createPseudoJets(cont, pvs.cptr());
83 }
84 else{
85 vpj = createPseudoJets(cont);
86 }
87 #else
88 [[maybe_unused]] const EventContext& unused_ctx = ctx;
89 vpj = createPseudoJets(cont);
90 #endif
91
92 // create an extractor to attach to the PJContainer -- this will be used by clients
93 auto extractor = std::make_unique<IParticleExtractor>(&cont, m_label, m_isGhost);
94 ATH_MSG_DEBUG("Created extractor: " << extractor->toString(0));
95
96 // ghostify the pseudojets if necessary
97 if(m_isGhost){
98 for(fastjet::PseudoJet& pj : vpj) {pj *= ghostscale;}
99 }
100
101 // Put the PseudoJetContainer together
102 auto pjcont = std::make_unique<PseudoJetContainer>(std::move(extractor), vpj);
103 ATH_MSG_DEBUG("New PseudoJetContainer size " << pjcont->size());
104
105 return pjcont;
106}
#define ATH_MSG_DEBUG(x)
constexpr float ghostscale
std::vector< fastjet::PseudoJet > createPseudoJets(const xAOD::IParticleContainer &) const
Gaudi::Property< std::string > m_label
Label for the collection.
bool m_isGhost
Internal steering flags Set in initialize()
SG::ReadHandleKey< xAOD::VertexContainer > m_vertexContainer_key
Gaudi::Property< bool > m_byVertex
Flag for by-vertex jet reconstruction.
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())

◆ createPseudoJets() [1/2]

std::vector< fastjet::PseudoJet > PseudoJetAlgorithm::createPseudoJets ( const xAOD::IParticleContainer & ips) const
private

Definition at line 110 of file PseudoJetAlgorithm.cxx.

110 {
111#ifndef GENERATIONBASE
114#endif
116}
Gaudi::Property< bool > m_useNeutral
Flag to define if neutral PFOs / FEs should be considered.
bool m_pflow
True if inputs are EM-scale topo clusters.
Gaudi::Property< bool > m_useChargedPV
Flag to define if charged PFOs / FEs should be matched to PV.
bool m_ufo
True if inputs are PFlow.
Gaudi::Property< bool > m_useChargedPUsideband
Flag for PFlow sideband definition.
Gaudi::Property< bool > m_useCharged
Flag to define if charged PFOs / FEs should be considered.
bool m_emtopo
Determines whether the PJs should be made ghosts.
Gaudi::Property< bool > m_skipNegativeEnergy
Flag indicating to skip objects with E<0.
std::vector< fastjet::PseudoJet > EMToposToPJs(const xAOD::IParticleContainer &ips, bool skipNegativeEnergy)
std::vector< fastjet::PseudoJet > PFlowsToPJs(const xAOD::IParticleContainer &ips, bool skipNegativeEnergy, bool useChargedPFOs, bool useNeutralPFOs, bool useChargedPV, bool useChargedPUsideband, bool isUFO)
std::vector< fastjet::PseudoJet > IParticlesToPJs(const xAOD::IParticleContainer &ips, bool skipNegativeEnergy)

◆ createPseudoJets() [2/2]

std::vector< fastjet::PseudoJet > PseudoJetAlgorithm::createPseudoJets ( const xAOD::IParticleContainer & ips,
const xAOD::VertexContainer * vertices ) const
private

Definition at line 120 of file PseudoJetAlgorithm.cxx.

120 {
122}
std::vector< fastjet::PseudoJet > ByVertexPFlowsToPJs(const xAOD::IParticleContainer &ips, const xAOD::VertexContainer *pvs, bool skipNegativeEnergy, bool useChargedPFOs, bool useNeutralPFOs, bool isUFO)

◆ declareGaudiProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareGaudiProperty ( Gaudi::Property< T, V, H > & hndl,
const SG::VarHandleKeyType &  )
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKey>

Definition at line 156 of file AthCommonDataStore.h.

158 {
160 hndl.value(),
161 hndl.documentation());
162
163 }
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)

◆ declareProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( Gaudi::Property< T, V, H > & t)
inlineinherited

Definition at line 145 of file AthCommonDataStore.h.

145 {
146 typedef typename SG::HandleClassifier<T>::type htype;
148 }
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>

◆ detStore()

const ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::detStore ( ) const
inlineinherited

The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 95 of file AthCommonDataStore.h.

◆ evtStore()

ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::evtStore ( )
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 85 of file AthCommonDataStore.h.

◆ execute()

StatusCode PseudoJetAlgorithm::execute ( const EventContext & ctx) const
finaloverridevirtual

Definition at line 50 of file PseudoJetAlgorithm.cxx.

50 {
51 ATH_MSG_VERBOSE("Executing " << name() << "...");
52
53 // build and record the container
54 auto incoll = SG::makeHandle(m_incoll, ctx);
55 if( !incoll.isValid() ) {
56 // Return SUCCESS to avoid crashing T0 jobs
57 ATH_MSG_WARNING("Failed to retrieve " << m_incoll.key() << " for PseudoJet creation!" );
58 return StatusCode::SUCCESS;
59 }
60 ATH_MSG_DEBUG("Retrieved xAOD container " << m_incoll.key() << " of size " << incoll->size()
61 << ", isGhost=" << m_isGhost);
62
63 ATH_MSG_DEBUG("Creating PseudoJetContainer...");
64 std::unique_ptr<PseudoJetContainer> pjcont( createPJContainer(*incoll, ctx) );
65
66 auto outcoll = SG::makeHandle(m_outcoll, ctx);
67 ATH_MSG_DEBUG("Created new PseudoJetContainer \"" << m_outcoll.key() << "\" with size " << pjcont->size());
68
69 ATH_CHECK( outcoll.record(std::move(pjcont)) );
70
71 return StatusCode::SUCCESS;
72}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_VERBOSE(x)
#define ATH_MSG_WARNING(x)
SG::WriteHandleKey< PseudoJetContainer > m_outcoll
Output collection name.
virtual std::unique_ptr< PseudoJetContainer > createPJContainer(const xAOD::IParticleContainer &cont, const EventContext &ctx) const
Method to construct the PseudoJetContainer and record in StoreGate.
SG::ReadHandleKey< xAOD::IParticleContainer > m_incoll
Input collection name.

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::extraDeps_update_handler ( Gaudi::Details::PropertyBase & ExtraDeps)
protectedinherited

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

◆ extraOutputDeps()

const DataObjIDColl & AthCommonReentrantAlgorithm< Gaudi::Algorithm >::extraOutputDeps ( ) const
overridevirtualinherited

Return the list of extra output dependencies.

This list is extended to include symlinks implied by inheritance relations.

Definition at line 94 of file AthCommonReentrantAlgorithm.cxx.

90{
91 // If we didn't find any symlinks to add, just return the collection
92 // from the base class. Otherwise, return the extended collection.
93 if (!m_extendedExtraObjects.empty()) {
95 }
97}
An algorithm that can be simultaneously executed in multiple threads.

◆ filterPassed()

virtual bool AthCommonReentrantAlgorithm< Gaudi::Algorithm >::filterPassed ( const EventContext & ctx) const
inlinevirtualinherited

Definition at line 96 of file AthCommonReentrantAlgorithm.h.

96 {
97 return execState( ctx ).filterPassed();
98 }
virtual bool filterPassed(const EventContext &ctx) const

◆ finalize()

StatusCode EL::AnaReentrantAlgorithm::finalize ( )
protectedinherited

finalize this algorithm

This gets called after event processing has finished. The last event may no longer be in memory, and the code should not try to access it.

Definition at line 102 of file AnaReentrantAlgorithm.cxx.

104 {
105 return StatusCode::SUCCESS;
106 }

◆ initialize()

StatusCode PseudoJetAlgorithm::initialize ( )
finaloverridevirtual

Athena algorithm's Hooks.

Definition at line 18 of file PseudoJetAlgorithm.cxx.

18 {
19 ATH_MSG_INFO("Initializing " << name() << "...");
20
21 // This is horrible, but still necessary for the time being
22 // PJG needs to know if this is the basic EMTopo cluster collection
23 // in order to change the cluster signal state.
24 if ( m_label == "EMTopo") m_emtopo = true;
25 // PFlow containers need to have PV matching applied
26 if ( std::string(m_label).find("PFlow") != std::string::npos) m_pflow = true;
27 if ( std::string(m_label).find("UFO") != std::string::npos) m_ufo = true;
28
29 // "Ghost" in output collection name? If so is a ghost collection.
30 m_isGhost = (m_outcoll.key()).find("Ghost") != std::string::npos;
31
32 print();
33
34 if(m_incoll.key().empty() || m_outcoll.key().empty()) {
35 ATH_MSG_ERROR("Either input or output collection is empty!");
36 return StatusCode::FAILURE;
37 }
38
39 ATH_CHECK( m_incoll.initialize() );
40 ATH_CHECK( m_outcoll.initialize() );
41
43
44 return StatusCode::SUCCESS;
45}
#define ATH_MSG_ERROR(x)
#define ATH_MSG_INFO(x)
virtual void print() const
Dump to properties to the log.
std::string find(const std::string &s)
return a remapped string
Definition hcg.cxx:138

◆ inputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::inputHandles ( ) const
overridevirtualinherited

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.

◆ isClonable()

◆ msg()

MsgStream & AthCommonMsg< Gaudi::Algorithm >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

24 {
25 return this->msgStream();
26 }

◆ msgLvl()

bool AthCommonMsg< Gaudi::Algorithm >::msgLvl ( const MSG::Level lvl) const
inlineinherited

Definition at line 30 of file AthCommonMsg.h.

30 {
31 return this->msgLevel(lvl);
32 }

◆ outputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::outputHandles ( ) const
overridevirtualinherited

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 PseudoJetAlgorithm::print ( ) const
privatevirtual

Dump to properties to the log.

Definition at line 127 of file PseudoJetAlgorithm.cxx.

127 {
128 std::string sskip = m_skipNegativeEnergy ? "true" : "false";
129 // May want to change to DEBUG
130 ATH_MSG_INFO("Properties for PseudoJetGetter " << name());
131 ATH_MSG_INFO(" Label: " << m_label);
132 ATH_MSG_INFO(" Input container: " << m_incoll.key());
133 ATH_MSG_INFO(" Output container: " << m_outcoll.key());
134 ATH_MSG_INFO(" Skip negative E: " << sskip);
135 ATH_MSG_INFO(" Is EMTopo: " << m_emtopo);
136 ATH_MSG_INFO(" Is PFlow: " << m_pflow);
137 ATH_MSG_INFO(" Is UFO: " << m_ufo);
138 ATH_MSG_INFO(" Is ghost: " << m_isGhost);
139 ATH_MSG_INFO(" Treat negative E as ghost: " << m_negEnergyAsGhosts.value());
140 ATH_MSG_INFO(" Running by-vertex reco: " << m_byVertex.value());
141 ATH_MSG_INFO(" Vertex input container: " << m_vertexContainer_key.key());
142
143 if(m_pflow){
144 ATH_MSG_INFO(" Use charged FEs: " << m_useCharged.value());
145 ATH_MSG_INFO(" Use neutral FEs: " << m_useNeutral.value());
146 ATH_MSG_INFO("Use charged PV FEs: " << m_useChargedPV.value());
147 ATH_MSG_INFO(" PU sideband def: " << m_useChargedPUsideband.value());
148 }
149 if(m_ufo){
150 ATH_MSG_INFO(" Use charged UFOs: " << m_useCharged.value());
151 ATH_MSG_INFO(" Use neutral UFOs: " << m_useNeutral.value());
152 }
153}
Gaudi::Property< bool > m_negEnergyAsGhosts
Flag indicating to treat objects with E<0 as ghosts (useful for HI)

◆ renounce()

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 > AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::renounce ( T & h)
inlineprotectedinherited

Definition at line 380 of file AthCommonDataStore.h.

381 {
382 h.renounce();
384 }
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)

◆ renounceArray()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::renounceArray ( SG::VarHandleKeyArray & handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364 {
366 }

◆ setFilterPassed()

virtual void AthCommonReentrantAlgorithm< Gaudi::Algorithm >::setFilterPassed ( bool state,
const EventContext & ctx ) const
inlinevirtualinherited

Definition at line 100 of file AthCommonReentrantAlgorithm.h.

100 {
102 }
virtual void setFilterPassed(bool state, const EventContext &ctx) const

◆ sysExecute()

StatusCode AthCommonReentrantAlgorithm< Gaudi::Algorithm >::sysExecute ( const EventContext & ctx)
overridevirtualinherited

Execute an algorithm.

We override this in order to work around an issue with the Algorithm base class storing the event context in a member variable that can cause crashes in MT jobs.

Definition at line 85 of file AthCommonReentrantAlgorithm.cxx.

77{
78 return BaseAlg::sysExecute (ctx);
79}

◆ sysInitialize()

StatusCode AthCommonReentrantAlgorithm< Gaudi::Algorithm >::sysInitialize ( )
overridevirtualinherited

Override sysInitialize.

Override sysInitialize from the base class.

Loop through all output handles, and if they're WriteCondHandles, automatically register them and this Algorithm with the CondSvc

Scan through all outputHandles, and if they're WriteCondHandles, register them with the CondSvc

Reimplemented from AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >.

Reimplemented in HypoBase, and InputMakerBase.

Definition at line 61 of file AthCommonReentrantAlgorithm.cxx.

107 {
109
110 if (sc.isFailure()) {
111 return sc;
112 }
113
114 ServiceHandle<ICondSvc> cs("CondSvc",name());
115 for (auto h : outputHandles()) {
116 if (h->isCondition() && h->mode() == Gaudi::DataHandle::Writer) {
117 // do this inside the loop so we don't create the CondSvc until needed
118 if ( cs.retrieve().isFailure() ) {
119 ATH_MSG_WARNING("no CondSvc found: won't autoreg WriteCondHandles");
120 return StatusCode::SUCCESS;
121 }
122 if (cs->regHandle(this,*h).isFailure()) {
124 ATH_MSG_ERROR("unable to register WriteCondHandle " << h->fullKey()
125 << " with CondSvc");
126 }
127 }
128 }
129 return sc;
130}
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::sysStart ( )
overridevirtualinherited

Handle START transition.

We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.

◆ updateVHKA()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::updateVHKA ( Gaudi::Details::PropertyBase & )
inlineinherited

Definition at line 308 of file AthCommonDataStore.h.

308 {
309 // debug() << "updateVHKA for property " << p.name() << " " << p.toString()
310 // << " size: " << m_vhka.size() << endmsg;
311 for (auto &a : m_vhka) {
313 for (auto k : keys) {
314 k->setOwner(this);
315 }
316 }
317 }

Member Data Documentation

◆ m_byVertex

Gaudi::Property<bool> PseudoJetAlgorithm::m_byVertex {this, "DoByVertex", false, "True if jets should be reconstructed by vertex"}
private

Flag for by-vertex jet reconstruction.

Definition at line 94 of file PseudoJetAlgorithm.h.

94{this, "DoByVertex", false, "True if jets should be reconstructed by vertex"};

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_emtopo

bool PseudoJetAlgorithm::m_emtopo {false}
private

Determines whether the PJs should be made ghosts.

Definition at line 101 of file PseudoJetAlgorithm.h.

101{false};

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_extendedExtraObjects

DataObjIDColl AthCommonReentrantAlgorithm< Gaudi::Algorithm >::m_extendedExtraObjects
privateinherited

Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.

Empty if no symlinks were found.

Definition at line 114 of file AthCommonReentrantAlgorithm.h.

◆ m_incoll

SG::ReadHandleKey<xAOD::IParticleContainer> PseudoJetAlgorithm::m_incoll {this, "InputContainer", "", "The input IParticleContainer name"}
private

Input collection name.

Definition at line 67 of file PseudoJetAlgorithm.h.

67{this, "InputContainer", "", "The input IParticleContainer name"};

◆ m_isGhost

bool PseudoJetAlgorithm::m_isGhost {false}
private

Internal steering flags Set in initialize()

Definition at line 100 of file PseudoJetAlgorithm.h.

100{false};

◆ m_label

Gaudi::Property<std::string> PseudoJetAlgorithm::m_label {this, "Label", "", "String label identifying the pseudojet type"}
private

Label for the collection.

Definition at line 73 of file PseudoJetAlgorithm.h.

73{this, "Label", "", "String label identifying the pseudojet type"};

◆ m_negEnergyAsGhosts

Gaudi::Property<bool> PseudoJetAlgorithm::m_negEnergyAsGhosts {this, "TreatNegativeEnergyAsGhost", false, "Whether to convert negative energy inputs into ghosts"}
private

Flag indicating to treat objects with E<0 as ghosts (useful for HI)

Definition at line 79 of file PseudoJetAlgorithm.h.

79{this, "TreatNegativeEnergyAsGhost", false, "Whether to convert negative energy inputs into ghosts"};

◆ m_outcoll

SG::WriteHandleKey<PseudoJetContainer> PseudoJetAlgorithm::m_outcoll {this, "OutputContainer", "", "The output PseudoJetContainer name"}
private

Output collection name.

Definition at line 70 of file PseudoJetAlgorithm.h.

70{this, "OutputContainer", "", "The output PseudoJetContainer name"};

◆ m_pflow

bool PseudoJetAlgorithm::m_pflow {false}
private

True if inputs are EM-scale topo clusters.

Definition at line 102 of file PseudoJetAlgorithm.h.

102{false};

◆ m_skipNegativeEnergy

Gaudi::Property<bool> PseudoJetAlgorithm::m_skipNegativeEnergy {this, "SkipNegativeEnergy", false, "Whether to skip negative energy inputs"}
private

Flag indicating to skip objects with E<0.

Definition at line 76 of file PseudoJetAlgorithm.h.

76{this, "SkipNegativeEnergy", false, "Whether to skip negative energy inputs"};

◆ m_ufo

bool PseudoJetAlgorithm::m_ufo {false}
private

True if inputs are PFlow.

Definition at line 103 of file PseudoJetAlgorithm.h.

103{false};

◆ m_useCharged

Gaudi::Property<bool> PseudoJetAlgorithm::m_useCharged {this, "UseCharged", true, "Whether to use charged PFOs/FEs"}
private

Flag to define if charged PFOs / FEs should be considered.

Definition at line 82 of file PseudoJetAlgorithm.h.

82{this, "UseCharged", true, "Whether to use charged PFOs/FEs"};

◆ m_useChargedPUsideband

Gaudi::Property<bool> PseudoJetAlgorithm::m_useChargedPUsideband {this, "UseChargedPUsideband", false, "Whether to use charged PU sideband only"}
private

Flag for PFlow sideband definition.

Definition at line 91 of file PseudoJetAlgorithm.h.

91{this, "UseChargedPUsideband", false, "Whether to use charged PU sideband only"};

◆ m_useChargedPV

Gaudi::Property<bool> PseudoJetAlgorithm::m_useChargedPV {this, "UseChargedPV", true, "Whether to use charged PFOs/FEs matched to the PV"}
private

Flag to define if charged PFOs / FEs should be matched to PV.

Definition at line 88 of file PseudoJetAlgorithm.h.

88{this, "UseChargedPV", true, "Whether to use charged PFOs/FEs matched to the PV"};

◆ m_useNeutral

Gaudi::Property<bool> PseudoJetAlgorithm::m_useNeutral {this, "UseNeutral", true, "Whether to use neutral PFOs/FEs"}
private

Flag to define if neutral PFOs / FEs should be considered.

Definition at line 85 of file PseudoJetAlgorithm.h.

85{this, "UseNeutral", true, "Whether to use neutral PFOs/FEs"};

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vertexContainer_key

SG::ReadHandleKey<xAOD::VertexContainer> PseudoJetAlgorithm::m_vertexContainer_key {this, "VertexContainer", "PrimaryVertices", "Vertex container (for by-vertex reconstruction)"}
private

Definition at line 96 of file PseudoJetAlgorithm.h.

96{this, "VertexContainer", "PrimaryVertices", "Vertex container (for by-vertex reconstruction)"};

◆ m_vhka

std::vector<SG::VarHandleKeyArray*> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_vhka
privateinherited

Definition at line 398 of file AthCommonDataStore.h.


The documentation for this class was generated from the following files: