 |
ATLAS Offline Software
|
#include <EFexEMAlgorithm.h>
|
| EFexEMAlgorithm (const std::string &name, ISvcLocator *pSvcLocator) |
|
virtual | ~EFexEMAlgorithm () |
|
StatusCode | initialize () |
|
StatusCode | execute (const EventContext &ctx) const |
|
virtual StatusCode | sysInitialize () override |
| Override sysInitialize. More...
|
|
virtual bool | isClonable () const override |
| Specify if the algorithm is clonable. More...
|
|
virtual unsigned int | cardinality () const override |
| Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant. More...
|
|
virtual StatusCode | sysExecute (const EventContext &ctx) override |
| Execute an algorithm. More...
|
|
virtual const DataObjIDColl & | extraOutputDeps () const override |
| Return the list of extra output dependencies. More...
|
|
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 . 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 | 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 |
|
Definition at line 27 of file EFexEMAlgorithm.h.
◆ StoreGateSvc_t
◆ EFexEMAlgorithm()
LVL1::EFexEMAlgorithm::EFexEMAlgorithm |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ ~EFexEMAlgorithm()
LVL1::EFexEMAlgorithm::~EFexEMAlgorithm |
( |
| ) |
|
|
virtualdefault |
◆ cardinality()
Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant.
Override this to return 0 for reentrant algorithms.
Override this to return 0 for reentrant algorithms.
Definition at line 75 of file AthCommonReentrantAlgorithm.cxx.
◆ 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);
◆ 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.
◆ 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.
◆ 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()
StatusCode LVL1::EFexEMAlgorithm::execute |
( |
const EventContext & |
ctx | ) |
const |
Definition at line 76 of file EFexEMAlgorithm.cxx.
80 if (!scellsHandle.isValid())
83 return StatusCode::FAILURE;
88 for (
const CaloCell *scell : *scellsHandle)
90 scells.push_back(scell);
93 scells.assign(scellsHandle->begin(), scellsHandle->end());
95 auto clusters = std::make_unique<xAOD::TrigEMClusterContainer>();
96 auto auxClusters = std::make_unique<xAOD::TrigEMClusterAuxContainer>();
97 clusters->setStore(auxClusters.get());
105 const TileID *tileIDHelper{
nullptr};
110 if (!tileCellHandle.isValid())
113 return StatusCode::FAILURE;
115 tileCellCont.assign(tileCellHandle->begin(), tileCellHandle->end());
116 tileIDHelper = caloMgr->getTileID();
121 if (!triggerTowerHandle.isValid())
124 return StatusCode::FAILURE;
126 TTs = triggerTowerHandle.cptr();
130 for (
const auto &algCl : algResults)
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)
140 cl->setEhad1(algCl.hadET);
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;
172 if (!ttHandle.isValid())
175 return StatusCode::FAILURE;
177 TTs = ttHandle.cptr();
180 std::vector<const CaloCell *> cellsAround;
181 std::vector<const CaloCell *> cellsAboveThr;
182 cellsAround.reserve(200);
183 cellsAboveThr.reserve(200);
188 for (
auto cellAbove : cellsAboveThr)
194 float etaCluster{0}, phiCluster{0};
196 if (std::abs(etaCluster) > 998.0)
211 float clusterTime = 0;
212 float clusterTimeWeight = 0;
213 for (
auto cellAround : cellsAround)
217 clusterTime += cellAround->time() * cellAround->et();
218 clusterTimeWeight += cellAround->et();
220 if (std::abs(clusterTimeWeight) > 0.1)
222 clusterTime /= clusterTimeWeight;
226 clusterTime = -999.99;
228 ATH_MSG_DEBUG(
"CELL versus CLUSTER : " << cellAbove->eta() <<
" " << cellAbove->phi() <<
" " << etaCluster <<
" " << phiCluster <<
" " << cellAbove->eta() - etaCluster <<
" " << cellAbove->phi() - phiCluster);
231 std::vector<const CaloCell *> cellsAround2;
235 std::vector<const xAOD::TriggerTower *> TTsAround;
255 cl->setEnergy(
et * TMath::CosH(cellAbove->eta()));
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);
264 float wstot_nor = 0.;
265 for (
auto cellAround : cellsAround)
267 unsigned int layer = cellAround->caloDDE()->getSampling();
271 if (cellAround->et() < 10)
273 wstot += (cellAround->et() *
pow(cellAround->eta() - etaCluster, 2));
274 wstot_nor += (cellAround->et());
277 if (std::abs(wstot_nor) > 0.01)
286 return StatusCode::SUCCESS;
◆ 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
◆ extraOutputDeps()
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.
◆ filterPassed()
◆ initialize()
StatusCode LVL1::EFexEMAlgorithm::initialize |
( |
| ) |
|
◆ 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.
◆ isClonable()
◆ msg() [1/2]
◆ msg() [2/2]
◆ 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.
◆ renounce()
◆ renounceArray()
◆ setFilterPassed()
◆ sysExecute()
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.
◆ sysInitialize()
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 InputMakerBase, and HypoBase.
Definition at line 61 of file AthCommonReentrantAlgorithm.cxx.
110 if (
sc.isFailure()) {
118 if ( cs.retrieve().isFailure() ) {
120 return StatusCode::SUCCESS;
122 if (cs->regHandle(
this,*
h).isFailure()) {
123 sc = StatusCode::FAILURE;
124 ATH_MSG_ERROR(
"unable to register WriteCondHandle " <<
h->fullKey()
◆ 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_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 |
◆ m_deta_cellFormation
float LVL1::EFexEMAlgorithm::m_deta_cellFormation |
|
private |
◆ m_deta_clusterFormation_2
float LVL1::EFexEMAlgorithm::m_deta_clusterFormation_2 |
|
private |
◆ m_detStore
◆ m_dphi
float LVL1::EFexEMAlgorithm::m_dphi |
|
private |
◆ m_dphi_cellFormation
float LVL1::EFexEMAlgorithm::m_dphi_cellFormation |
|
private |
◆ m_dphi_clusterFormation_2
float LVL1::EFexEMAlgorithm::m_dphi_clusterFormation_2 |
|
private |
◆ m_eFexDefaultClusterTool
◆ m_eFexEWClusterTool
◆ 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 |
◆ m_evtStore
◆ m_extendedExtraObjects
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
◆ m_inputTileCellContainerKey
◆ m_inputTriggerTowerContainerKey
◆ m_outputClusterContainerKey
◆ m_qualBitMask
int LVL1::EFexEMAlgorithm::m_qualBitMask |
|
private |
◆ m_seedE
float LVL1::EFexEMAlgorithm::m_seedE |
|
private |
◆ m_timeThr
float LVL1::EFexEMAlgorithm::m_timeThr |
|
private |
◆ m_use_tileCells
bool LVL1::EFexEMAlgorithm::m_use_tileCells |
|
private |
◆ 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
◆ m_vhka
The documentation for this class was generated from the following files:
def retrieve(aClass, aKey=None)
Extra patterns decribing particle interation process.
@ VIEW_ELEMENTS
this data object is a view, it does not own its elmts
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
ToolHandle< LVL1::EFexEMClusterTool > m_eFexDefaultClusterTool
member variables
SG::WriteHandleKey< xAOD::TrigEMClusterContainer > m_outputClusterContainerKey
Cell signal weights in clusters key.
float m_dphi_clusterFormation_2
different dphi for some of the shower shapes
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)
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
setEt setPhi setE277 setWeta2 setEta1 setE2tsts1 wstot
const std::string & key() const
Return the StoreGate ID for the referenced object.
SG::ReadHandleKey< CaloCellContainer > m_inputCellContainerKey
input / output
bool m_energyWeightedCluster
clustering method - choose between default and energy weigthed
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual void setOwner(IDataHandleHolder *o)=0
An algorithm that can be simultaneously executed in multiple threads.
SG::ReadHandleKey< xAOD::TriggerTowerContainer > m_inputTriggerTowerContainerKey
TriggerTowers (if needed)
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
virtual const DataObjIDColl & extraOutputDeps() const override
Return the list of extra output dependencies.
float m_deta
deta for the cluster definition
This class initializes the Calo (LAr and Tile) offline identifiers.
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
Helper class for offline supercell identifiers.
float m_deta_cellFormation
deta for the cluster definition
float m_clusterE_EMB2_EMEC2
minimum cluster energy of SCs in EMB2 or EMEC2
Helper class for TileCal offline identifiers.
::StatusCode StatusCode
StatusCode definition for legacy code.
float m_seedE
cut for seed energy in MeV
TrigEMCluster_v1 TrigEMCluster
Define the latest version of the trigger EM cluster class.
virtual StatusCode sysExecute(const EventContext &ctx) override
Execute an algorithm.
int m_qualBitMask
Configurable quality bitmask.
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.
float m_timeThr
cut for time measurement
float m_deta_clusterFormation_2
different deta for some of the shower shapes
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
bool m_use_tileCells
properties
float m_dphi_cellFormation
dphi for the cluster definition
bool m_apply_BaseLineCuts
applying the baseline cuts for default clustering
Data object for each calorimeter readout cell.
CaloCellContainer that can accept const cell pointers.
#define ATH_MSG_WARNING(x)
bool m_useProvenanceSkim
clear up container from bad BC by making a new container (Denis, old way)
SG::ReadHandleKey< CaloCellContainer > m_inputTileCellContainerKey
Tile cell input container.
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
virtual StatusCode sysInitialize() override
Override sysInitialize.
float m_dphi
dphi for the cluster definition
ToolHandle< LVL1::EFexEMEnergyWeightedClusterTool > m_eFexEWClusterTool
Description of a trigger EM cluster.
DataObjIDColl m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
constexpr int pow(int base, int exp) noexcept
cl
print [x.__class__ for x in toList(dqregion.getSubRegions()) ]
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
float m_eta_limit
limit for eta of cluster