ATLAS Offline Software
Loading...
Searching...
No Matches
LVL1::EFexEMAlgorithm Class Reference

#include <EFexEMAlgorithm.h>

Inheritance diagram for LVL1::EFexEMAlgorithm:
Collaboration diagram for LVL1::EFexEMAlgorithm:

Public Member Functions

 EFexEMAlgorithm (const std::string &name, ISvcLocator *pSvcLocator)
virtual ~EFexEMAlgorithm ()
StatusCode initialize ()
StatusCode execute (const EventContext &ctx) const
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

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

Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

Private Attributes

ToolHandle< LVL1::EFexEMClusterToolm_eFexDefaultClusterTool {this,"DefaultClusterTool","LVL1::EFexEMClusterTool/DefaultClusterTool"}
 member variables
ToolHandle< LVL1::EFexEMEnergyWeightedClusterToolm_eFexEWClusterTool {this,"EnergyWeightedClusterTool","LVL1::EFexEMEnergyWeightedClusterTool/EnergyWeightedClusterTool"}
SG::ReadHandleKey< CaloCellContainerm_inputCellContainerKey
 input / output
SG::ReadHandleKey< CaloCellContainerm_inputTileCellContainerKey
 Tile cell input container.
SG::ReadHandleKey< xAOD::TriggerTowerContainerm_inputTriggerTowerContainerKey
 TriggerTowers (if needed)
SG::WriteHandleKey< xAOD::TrigEMClusterContainerm_outputClusterContainerKey
 Cell signal weights in clusters key.
bool m_use_tileCells
 properties
bool m_energyWeightedCluster
 clustering method - choose between default and energy weigthed
bool m_apply_BaseLineCuts
 applying the baseline cuts for default clustering
float m_deta
 deta for the cluster definition
float m_dphi
 dphi for the cluster definition
bool m_useProvenanceSkim
 clear up container from bad BC by making a new container (Denis, old way)
int m_qualBitMask
 Configurable quality bitmask.
float m_timeThr
 cut for time measurement
float m_seedE
 cut for seed energy in MeV
float m_deta_cellFormation
 deta for the cluster definition
float m_dphi_cellFormation
 dphi for the cluster definition
float m_deta_clusterFormation_2
 different deta for some of the shower shapes
float m_dphi_clusterFormation_2
 different dphi for some of the shower shapes
float m_clusterE_EMB2_EMEC2
 minimum cluster energy of SCs in EMB2 or EMEC2
float m_eta_limit
 limit for eta of cluster
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

Definition at line 27 of file EFexEMAlgorithm.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

◆ EFexEMAlgorithm()

LVL1::EFexEMAlgorithm::EFexEMAlgorithm ( const std::string & name,
ISvcLocator * pSvcLocator )

Definition at line 30 of file EFexEMAlgorithm.cxx.

31 : AthReentrantAlgorithm(name, pSvcLocator)
32{
33
34 declareProperty("InputSuperCellContainer", m_inputCellContainerKey = "SCell");
35 declareProperty("InputTileCellContainer", m_inputTileCellContainerKey = "AllCalo");
36 declareProperty("InputTriggerTowerContainer", m_inputTriggerTowerContainerKey = "xAODTriggerTowers");
37 declareProperty("OutputClusterName", m_outputClusterContainerKey = "SCluster_TrigT1CaloEFex");
38
39 declareProperty("UseTileCells", m_use_tileCells = false, "Use Tile cells instead of TriggerTowers");
40 declareProperty("EnergyWeightedCluster", m_energyWeightedCluster = false, "Use energy-weighted clustering (needs TrigggerTowers)");
41 declareProperty("ApplyBaseLineSelection", m_apply_BaseLineCuts = true, "Apply baseline selection to default clustering");
42
43 declareProperty("TimeThreshold", m_timeThr = 200);
44 declareProperty("SeedEnergyThreshold", m_seedE = 100);
45 declareProperty("EtaCellFormation", m_deta_cellFormation = 0.08);
46 declareProperty("PhiCellFormation", m_dphi_cellFormation = 0.21);
47 declareProperty("EtaClusterFormation", m_deta = 0.08);
48 declareProperty("PhiClusterFormation", m_dphi = 0.11);
49 declareProperty("EtaClusterFormation2", m_deta_clusterFormation_2 = 0.21);
50 declareProperty("PhiClusterFormation2", m_dphi_clusterFormation_2 = 0.21);
51 declareProperty("MinimumClusterEnergy", m_clusterE_EMB2_EMEC2 = 100);
52 declareProperty("LimitClusterEta", m_eta_limit = 2.47);
53 declareProperty("CleanCellContainerSkim", m_useProvenanceSkim = false);
54 declareProperty("QualBitMask", m_qualBitMask = 0x40);
55}
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
float m_eta_limit
limit for eta of cluster
bool m_apply_BaseLineCuts
applying the baseline cuts for default clustering
float m_dphi_cellFormation
dphi for the cluster definition
bool m_use_tileCells
properties
float m_deta
deta for the cluster definition
float m_deta_clusterFormation_2
different deta for some of the shower shapes
bool m_energyWeightedCluster
clustering method - choose between default and energy weigthed
float m_seedE
cut for seed energy in MeV
float m_deta_cellFormation
deta for the cluster definition
int m_qualBitMask
Configurable quality bitmask.
float m_timeThr
cut for time measurement
SG::ReadHandleKey< CaloCellContainer > m_inputCellContainerKey
input / output
float m_clusterE_EMB2_EMEC2
minimum cluster energy of SCs in EMB2 or EMEC2
bool m_useProvenanceSkim
clear up container from bad BC by making a new container (Denis, old way)
SG::WriteHandleKey< xAOD::TrigEMClusterContainer > m_outputClusterContainerKey
Cell signal weights in clusters key.
SG::ReadHandleKey< xAOD::TriggerTowerContainer > m_inputTriggerTowerContainerKey
TriggerTowers (if needed)
SG::ReadHandleKey< CaloCellContainer > m_inputTileCellContainerKey
Tile cell input container.
float m_dphi
dphi for the cluster definition
float m_dphi_clusterFormation_2
different dphi for some of the shower shapes

◆ ~EFexEMAlgorithm()

LVL1::EFexEMAlgorithm::~EFexEMAlgorithm ( )
virtualdefault

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}

◆ 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 }

◆ 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 LVL1::EFexEMAlgorithm::execute ( const EventContext & ctx) const

Definition at line 76 of file EFexEMAlgorithm.cxx.

77{
78 // supercells are used by both methods
79 auto scellsHandle = SG::makeHandle(m_inputCellContainerKey, ctx);
80 if (!scellsHandle.isValid())
81 {
82 ATH_MSG_ERROR("Failed to retrieve " << m_inputCellContainerKey.key());
83 return StatusCode::FAILURE;
84 }
85 CaloConstCellContainer scells(SG::VIEW_ELEMENTS);
87 {
88 for (const CaloCell *scell : *scellsHandle)
89 if (scell->provenance() & m_qualBitMask)
90 scells.push_back(scell);
91 }
92 else
93 scells.assign(scellsHandle->begin(), scellsHandle->end());
94
95 auto clusters = std::make_unique<xAOD::TrigEMClusterContainer>();
96 auto auxClusters = std::make_unique<xAOD::TrigEMClusterAuxContainer>();
97 clusters->setStore(auxClusters.get());
98 // standard cluster formation
100 {
101 CaloConstCellContainer tileCellCont(SG::VIEW_ELEMENTS);
102 const xAOD::TriggerTowerContainer *TTs{nullptr};
103 const CaloIdManager *caloMgr{nullptr};
104 ATH_CHECK(detStore()->retrieve(caloMgr));
105 const TileID *tileIDHelper{nullptr};
106 const CaloCell_SuperCell_ID *idHelper = caloMgr->getCaloCell_SuperCell_ID();
107 if (m_use_tileCells)
108 {
109 auto tileCellHandle = SG::makeHandle(m_inputTileCellContainerKey, ctx);
110 if (!tileCellHandle.isValid())
111 {
112 ATH_MSG_ERROR("Failed to retrieve " << m_inputTileCellContainerKey.key());
113 return StatusCode::FAILURE;
114 }
115 tileCellCont.assign(tileCellHandle->begin(), tileCellHandle->end());
116 tileIDHelper = caloMgr->getTileID();
117 }
118 else
119 {
120 auto triggerTowerHandle = SG::makeHandle(m_inputTriggerTowerContainerKey, ctx);
121 if (!triggerTowerHandle.isValid())
122 {
123 ATH_MSG_ERROR("Failed to retrieve " << m_inputTriggerTowerContainerKey.key());
124 return StatusCode::FAILURE;
125 }
126 TTs = triggerTowerHandle.cptr();
127 }
128
129 std::vector<LVL1::EFexEMClusterTool::AlgResult> algResults = m_eFexDefaultClusterTool->clusterAlg(m_apply_BaseLineCuts, &scells, TTs, idHelper, tileIDHelper, &tileCellCont);
130 for (const auto &algCl : algResults)
131 {
132 auto cl = new xAOD::TrigEMCluster();
133 clusters->push_back(cl);
134 cl->setEta(algCl.eta);
135 cl->setPhi(algCl.phi);
136 cl->setEt(algCl.clusterET);
137 cl->setWstot(algCl.l1Width);
138 if (algCl.hadET > -999)
139 {
140 cl->setEhad1(algCl.hadET);
141 }
142 cl->setE233(algCl.l2ClusterET33);
143 cl->setE237(algCl.l2ClusterET37);
144 decRun3REta(*cl) = algCl.rEta;
145 decRun3RHad(*cl) = algCl.rHad;
146 decRun3REtaL12(*cl) = algCl.rEtaL12;
147 decPassRun3ClusterEnergy(*cl) = algCl.passClusterEnergy;
148 decPassRun3REta(*cl) = algCl.passREta;
149 decPassRun3RHad(*cl) = algCl.passRHad;
150 decPassRun3wstot(*cl) = algCl.passWstot;
151 }
152 }
153 // energy weighted cluster formation
154 else
155 {
157 // Note that there are several additional differences
158 // on top of the different cluster formation:
159 // -- Method requires TT, if m_use_tileCells = false do not use
160 // energy weighted cluster formation
161 // -- The energy of the cluster is not given as multiples
162 // of the digitization scale (25 MeV)
163 // -- The cluster sizes differ per default (but can be adjusted)
164 // -- The definition of the lateral isolation wstot differs
165 // -- The isolation variables REta, RHad are not defined
167
168 const xAOD::TriggerTowerContainer *TTs{nullptr};
169 if (!m_use_tileCells)
170 {
172 if (!ttHandle.isValid())
173 {
174 ATH_MSG_ERROR("Failed to retrieve " << m_inputTriggerTowerContainerKey.key());
175 return StatusCode::FAILURE;
176 }
177 TTs = ttHandle.cptr();
178 }
179
180 std::vector<const CaloCell *> cellsAround;
181 std::vector<const CaloCell *> cellsAboveThr;
182 cellsAround.reserve(200);
183 cellsAboveThr.reserve(200);
184
185 // Check cells which are above a user defined threshold (default: 100MeV) in EMB2 or EMEC2
186 m_eFexEWClusterTool->findCellsAbove_EMB2_EMEC2(&scells, m_seedE, cellsAboveThr);
187 // Loop over possible seed cells
188 for (auto cellAbove : cellsAboveThr)
189 {
190 // Builds a vector with all the cells around the seed cell with the default size (deta,dphi)=(0.08,0.21)
191 m_eFexEWClusterTool->findCellsAround(&scells, cellAbove, cellsAround, m_deta_cellFormation, m_dphi_cellFormation);
192
193 // Find cluster center (eta/phiCluster) based on the energy weighted scell position
194 float etaCluster{0}, phiCluster{0};
195 m_eFexEWClusterTool->findCluster(cellsAround, etaCluster, phiCluster);
196 if (std::abs(etaCluster) > 998.0)
197 {
198 continue;
199 }
200
201 // Smaller cluster (closer to egamma standard)
202 m_eFexEWClusterTool->findCellsAround(&scells, etaCluster, phiCluster, cellsAround, m_deta, m_dphi);
203 // SElectron eta should be within the kinematic acceptance, default: Run 2 recommendations
204 if (std::abs(etaCluster) >= m_eta_limit)
205 {
206 continue;
207 }
208
209 if (!m_eFexEWClusterTool->isCellEmMaximum(cellsAround, cellAbove))
210 continue;
211 float clusterTime = 0;
212 float clusterTimeWeight = 0;
213 for (auto cellAround : cellsAround)
214 {
215 if (cellAround->et() < m_timeThr)
216 continue;
217 clusterTime += cellAround->time() * cellAround->et();
218 clusterTimeWeight += cellAround->et();
219 }
220 if (std::abs(clusterTimeWeight) > 0.1)
221 {
222 clusterTime /= clusterTimeWeight;
223 }
224 else
225 {
226 clusterTime = -999.99;
227 }
228 ATH_MSG_DEBUG("CELL versus CLUSTER : " << cellAbove->eta() << " " << cellAbove->phi() << " " << etaCluster << " " << phiCluster << " " << cellAbove->eta() - etaCluster << " " << cellAbove->phi() - phiCluster);
229
230 // Other cluster sizes for some of the shower shapes
231 std::vector<const CaloCell *> cellsAround2;
232 m_eFexEWClusterTool->findCellsAround(&scells, (float)etaCluster, (float)phiCluster, cellsAround2, m_deta_clusterFormation_2, m_dphi_clusterFormation_2);
233
234 // Include TT (for Tile region only)
235 std::vector<const xAOD::TriggerTower *> TTsAround;
236 m_eFexEWClusterTool->findTTsAround(TTs, etaCluster, phiCluster, TTsAround);
237
238 float et = m_eFexEWClusterTool->sumEmCells(cellsAround) / TMath::CosH(cellAbove->eta());
239 float clusterEmEnergy32 = m_eFexEWClusterTool->sumEmCells2nd(cellsAround2);
240 if (clusterEmEnergy32 < m_clusterE_EMB2_EMEC2)
241 {
242 continue;
243 }
244
245 float clusterEmEnergy72 = m_eFexEWClusterTool->sumEmCells2nd(cellsAround);
246 float clusterHadEnergy = m_eFexEWClusterTool->sumHadCells(cellsAround) + m_eFexEWClusterTool->sumHadTTs(TTsAround);
247
248 // build the cluster
250 clusters->push_back(cl);
251 for (unsigned int i = 0; i < (unsigned int)CaloSampling::CaloSample::Unknown; i++)
252 {
253 cl->setEnergy((CaloSampling::CaloSample)i, 0.0);
254 }
255 cl->setEnergy(et * TMath::CosH(cellAbove->eta()));
256 cl->setEt(et);
257 cl->setEta(cellAbove->eta());
258 cl->setPhi(cellAbove->phi());
259 cl->setE237(clusterEmEnergy32);
260 cl->setE277(clusterEmEnergy72);
261 cl->setEhad1(clusterHadEnergy);
262 cl->setE233(clusterTime);
263 float wstot = 0.;
264 float wstot_nor = 0.;
265 for (auto cellAround : cellsAround)
266 {
267 unsigned int layer = cellAround->caloDDE()->getSampling();
268 cl->setEnergy((CaloSampling::CaloSample)layer, cl->energy((CaloSampling::CaloSample)layer) + cellAround->energy());
269 if ((layer == 1) || (layer == 5))
270 {
271 if (cellAround->et() < 10)
272 continue;
273 wstot += (cellAround->et() * pow(cellAround->eta() - etaCluster, 2));
274 wstot_nor += (cellAround->et());
275 }
276 }
277 if (std::abs(wstot_nor) > 0.01)
278 wstot = std::sqrt(wstot / wstot_nor);
279 cl->setWstot(wstot);
280 }
281 }
282
283 SG::WriteHandle<xAOD::TrigEMClusterContainer> writeHandle(m_outputClusterContainerKey, ctx);
284 ATH_CHECK(writeHandle.record(std::move(clusters), std::move(auxClusters)));
285
286 return StatusCode::SUCCESS;
287}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_ERROR(x)
#define ATH_MSG_DEBUG(x)
float et(const xAOD::jFexSRJetRoI *j)
constexpr int pow(int base, int exp) noexcept
const ServiceHandle< StoreGateSvc > & detStore() const
const TileID * getTileID(void) const
const CaloCell_SuperCell_ID * getCaloCell_SuperCell_ID(void) const
ToolHandle< LVL1::EFexEMClusterTool > m_eFexDefaultClusterTool
member variables
ToolHandle< LVL1::EFexEMEnergyWeightedClusterTool > m_eFexEWClusterTool
@ VIEW_ELEMENTS
this data object is a view, it does not own its elmts
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
@ layer
Definition HitInfo.h:79
cl
print [x.__class__ for x in toList(dqregion.getSubRegions()) ]
retrieve(aClass, aKey=None)
Definition PyKernel.py:110
TriggerTowerContainer_v2 TriggerTowerContainer
Define the latest version of the TriggerTower container.
TrigEMCluster_v1 TrigEMCluster
Define the latest version of the trigger EM cluster class.
setEt setPhi setE277 setWeta2 setEta1 setE2tsts1 wstot

◆ 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

◆ initialize()

StatusCode LVL1::EFexEMAlgorithm::initialize ( )

Definition at line 60 of file EFexEMAlgorithm.cxx.

61{
62
66
67
69
72 return StatusCode::SUCCESS;
73}

◆ 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.

◆ 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}
#define ATH_MSG_WARNING(x)
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_apply_BaseLineCuts

bool LVL1::EFexEMAlgorithm::m_apply_BaseLineCuts
private

applying the baseline cuts for default clustering

Definition at line 56 of file EFexEMAlgorithm.h.

◆ m_clusterE_EMB2_EMEC2

float LVL1::EFexEMAlgorithm::m_clusterE_EMB2_EMEC2
private

minimum cluster energy of SCs in EMB2 or EMEC2

Definition at line 68 of file EFexEMAlgorithm.h.

◆ m_deta

float LVL1::EFexEMAlgorithm::m_deta
private

deta for the cluster definition

Definition at line 57 of file EFexEMAlgorithm.h.

◆ m_deta_cellFormation

float LVL1::EFexEMAlgorithm::m_deta_cellFormation
private

deta for the cluster definition

Definition at line 64 of file EFexEMAlgorithm.h.

◆ m_deta_clusterFormation_2

float LVL1::EFexEMAlgorithm::m_deta_clusterFormation_2
private

different deta for some of the shower shapes

Definition at line 66 of file EFexEMAlgorithm.h.

◆ 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_dphi

float LVL1::EFexEMAlgorithm::m_dphi
private

dphi for the cluster definition

Definition at line 58 of file EFexEMAlgorithm.h.

◆ m_dphi_cellFormation

float LVL1::EFexEMAlgorithm::m_dphi_cellFormation
private

dphi for the cluster definition

Definition at line 65 of file EFexEMAlgorithm.h.

◆ m_dphi_clusterFormation_2

float LVL1::EFexEMAlgorithm::m_dphi_clusterFormation_2
private

different dphi for some of the shower shapes

Definition at line 67 of file EFexEMAlgorithm.h.

◆ m_eFexDefaultClusterTool

ToolHandle<LVL1::EFexEMClusterTool> LVL1::EFexEMAlgorithm::m_eFexDefaultClusterTool {this,"DefaultClusterTool","LVL1::EFexEMClusterTool/DefaultClusterTool"}
private

member variables

Definition at line 39 of file EFexEMAlgorithm.h.

39{this,"DefaultClusterTool","LVL1::EFexEMClusterTool/DefaultClusterTool"};

◆ m_eFexEWClusterTool

ToolHandle<LVL1::EFexEMEnergyWeightedClusterTool> LVL1::EFexEMAlgorithm::m_eFexEWClusterTool {this,"EnergyWeightedClusterTool","LVL1::EFexEMEnergyWeightedClusterTool/EnergyWeightedClusterTool"}
private

Definition at line 40 of file EFexEMAlgorithm.h.

40{this,"EnergyWeightedClusterTool","LVL1::EFexEMEnergyWeightedClusterTool/EnergyWeightedClusterTool"};

◆ m_energyWeightedCluster

bool LVL1::EFexEMAlgorithm::m_energyWeightedCluster
private

clustering method - choose between default and energy weigthed

Definition at line 55 of file EFexEMAlgorithm.h.

◆ m_eta_limit

float LVL1::EFexEMAlgorithm::m_eta_limit
private

limit for eta of cluster

Definition at line 69 of file EFexEMAlgorithm.h.

◆ 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_inputCellContainerKey

SG::ReadHandleKey<CaloCellContainer> LVL1::EFexEMAlgorithm::m_inputCellContainerKey
private

input / output

LAr SuperCell input container

Definition at line 45 of file EFexEMAlgorithm.h.

◆ m_inputTileCellContainerKey

SG::ReadHandleKey<CaloCellContainer> LVL1::EFexEMAlgorithm::m_inputTileCellContainerKey
private

Tile cell input container.

Definition at line 46 of file EFexEMAlgorithm.h.

◆ m_inputTriggerTowerContainerKey

SG::ReadHandleKey<xAOD::TriggerTowerContainer> LVL1::EFexEMAlgorithm::m_inputTriggerTowerContainerKey
private

TriggerTowers (if needed)

Definition at line 47 of file EFexEMAlgorithm.h.

◆ m_outputClusterContainerKey

SG::WriteHandleKey<xAOD::TrigEMClusterContainer> LVL1::EFexEMAlgorithm::m_outputClusterContainerKey
private

Cell signal weights in clusters key.

Definition at line 49 of file EFexEMAlgorithm.h.

◆ m_qualBitMask

int LVL1::EFexEMAlgorithm::m_qualBitMask
private

Configurable quality bitmask.

Definition at line 60 of file EFexEMAlgorithm.h.

◆ m_seedE

float LVL1::EFexEMAlgorithm::m_seedE
private

cut for seed energy in MeV

Definition at line 63 of file EFexEMAlgorithm.h.

◆ m_timeThr

float LVL1::EFexEMAlgorithm::m_timeThr
private

cut for time measurement

Definition at line 62 of file EFexEMAlgorithm.h.

◆ m_use_tileCells

bool LVL1::EFexEMAlgorithm::m_use_tileCells
private

properties

boolean for using Tile cells instead of Tile TT

Definition at line 54 of file EFexEMAlgorithm.h.

◆ m_useProvenanceSkim

bool LVL1::EFexEMAlgorithm::m_useProvenanceSkim
private

clear up container from bad BC by making a new container (Denis, old way)

Definition at line 59 of file EFexEMAlgorithm.h.

◆ m_varHandleArraysDeclared

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

Definition at line 399 of file AthCommonDataStore.h.

◆ 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: