ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigAlgorithms
TrigCaloRec
src
HLTCaloCellMaker.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3
*/
4
/*
5
* */
6
16
17
#ifndef TRIGCALOREC_HLTCALOCELLMAKER_H
18
#define TRIGCALOREC_HLTCALOCELLMAKER_H
19
20
#include <string>
21
#include "
AthenaBaseComps/AthReentrantAlgorithm.h
"
22
#include "GaudiKernel/ToolHandle.h"
23
#include "GaudiKernel/ServiceHandle.h"
24
25
#include "
StoreGate/ReadHandleKey.h
"
26
#include "
StoreGate/WriteHandleKey.h
"
27
#include "
StoreGate/ReadCondHandleKey.h
"
28
#include "
CaloEvent/CaloBCIDAverage.h
"
29
#include "
CaloEvent/CaloCellContainerVector.h
"
30
#include "
AthContainers/ConstDataVector.h
"
31
#include "
CaloEvent/CaloConstCellContainer.h
"
32
#include "
TrigSteeringEvent/TrigRoiDescriptorCollection.h
"
33
#include "
TileConditions/TileEMScale.h
"
34
#include "
AthenaMonitoringKernel/GenericMonitoringTool.h
"
35
#include "
TrigT2CaloCommon/ITrigCaloDataAccessSvc.h
"
36
37
40
class
HLTCaloCellMaker
:
public
AthReentrantAlgorithm
{
41
public
:
42
HLTCaloCellMaker
(
const
std::string & name, ISvcLocator* pSvcLocator);
43
44
virtual
StatusCode
execute
(
const
EventContext& context )
const override
;
45
virtual
StatusCode
initialize
()
override
;
46
private
:
47
48
SG::ReadHandleKey<TrigRoiDescriptorCollection>
m_roiCollectionKey
{
this
,
"RoIs"
,
"OutputRoIs"
,
"RoIs to read in"
};
49
SG::ReadHandleKey<CaloBCIDAverage>
m_bcidAvgKey
{
this
,
"BCIDAvgKey"
,
"CaloBCIDAverage"
,
""
};
50
51
SG::WriteHandleKey<ConstDataVector<CaloCellContainerVector>
>
m_cellContainerVKey
{
this
,
"CellsVName"
,
"CellsVClusters"
,
"Calo cells container"
};
52
SG::WriteHandleKey<CaloConstCellContainer >
m_cellContainerKey
{
this
,
"CellsName"
,
"CellsClusters"
,
"Calo cells container"
};
53
55
SG::ReadCondHandleKey<TileEMScale>
m_tileEMScaleKey
{
this
,
"TileEMSCaleKey"
,
"TileEMScale"
,
""
};
56
57
ServiceHandle<ITrigCaloDataAccessSvc>
m_dataAccessSvc
58
{
this
,
"TrigDataAccessMT"
,
"TrigCaloDataAccessSvc/TrigCaloDataAccessSvc"
,
"Data Access for LVL2 Calo Algorithms in MT"
};
59
60
ToolHandle< GenericMonitoringTool >
m_monTool
{
this
,
"MonTool"
,
""
,
"Monitoring tool"
};
61
62
Gaudi::Property<bool>
m_roiMode
{
this
,
"roiMode"
,
true
,
"RoiMode roi->CaloCellCollection"
};
63
Gaudi::Property<bool>
m_monCells
{
this
,
"monitorCells"
, false ,
"monitorCells"
};
64
Gaudi::Property<bool>
m_tileCellsInROI
{
this
,
"TileCellsInROI"
,
false
,
"Require tile cells to be within ROI"
};
65
66
67
// just to help with monitoring
68
static
inline
double
getCellPt
(
const
CaloCell
* aCell){
69
if
(!aCell)
return
-999.0;
70
return
aCell->
et
();
71
}
72
73
// check if tile cell is within the eta boundaries of the ROI, let RegSelCondAlg_Tile handle phi boundaries
74
static
inline
bool
tileCellEtaInRoi
(
const
CaloCell
* cell,
const
TrigRoiDescriptor
* roi) {
75
if
(cell->eta() < roi->
etaMinus
() || cell->eta() > roi->
etaPlus
())
return
false
;
76
return
true
;
77
}
78
79
};
80
81
#endif
82
AthReentrantAlgorithm.h
CaloBCIDAverage.h
CaloCellContainerVector.h
CaloConstCellContainer.h
CaloCellContainer that can accept const cell pointers.
ConstDataVector.h
DataVector adapter that acts like it holds const pointers.
GenericMonitoringTool.h
ITrigCaloDataAccessSvc.h
ReadCondHandleKey.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
TileEMScale.h
TrigRoiDescriptorCollection.h
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition
AthReentrantAlgorithm.h:74
CaloCell
Data object for each calorimeter readout cell.
Definition
CaloCell.h:57
CaloCell::et
virtual double et() const override final
get et
Definition
CaloCell.h:423
HLTCaloCellMaker::m_monCells
Gaudi::Property< bool > m_monCells
Definition
HLTCaloCellMaker.h:63
HLTCaloCellMaker::m_cellContainerVKey
SG::WriteHandleKey< ConstDataVector< CaloCellContainerVector > > m_cellContainerVKey
Definition
HLTCaloCellMaker.h:51
HLTCaloCellMaker::m_tileEMScaleKey
SG::ReadCondHandleKey< TileEMScale > m_tileEMScaleKey
FIXME: Temporary (i hope) to get dependency needed by BS converter.
Definition
HLTCaloCellMaker.h:55
HLTCaloCellMaker::initialize
virtual StatusCode initialize() override
Definition
HLTCaloCellMaker.cxx:25
HLTCaloCellMaker::m_roiCollectionKey
SG::ReadHandleKey< TrigRoiDescriptorCollection > m_roiCollectionKey
Definition
HLTCaloCellMaker.h:48
HLTCaloCellMaker::m_monTool
ToolHandle< GenericMonitoringTool > m_monTool
Definition
HLTCaloCellMaker.h:60
HLTCaloCellMaker::tileCellEtaInRoi
static bool tileCellEtaInRoi(const CaloCell *cell, const TrigRoiDescriptor *roi)
Definition
HLTCaloCellMaker.h:74
HLTCaloCellMaker::HLTCaloCellMaker
HLTCaloCellMaker(const std::string &name, ISvcLocator *pSvcLocator)
Definition
HLTCaloCellMaker.cxx:20
HLTCaloCellMaker::m_cellContainerKey
SG::WriteHandleKey< CaloConstCellContainer > m_cellContainerKey
Definition
HLTCaloCellMaker.h:52
HLTCaloCellMaker::m_roiMode
Gaudi::Property< bool > m_roiMode
Definition
HLTCaloCellMaker.h:62
HLTCaloCellMaker::getCellPt
static double getCellPt(const CaloCell *aCell)
Definition
HLTCaloCellMaker.h:68
HLTCaloCellMaker::execute
virtual StatusCode execute(const EventContext &context) const override
Definition
HLTCaloCellMaker.cxx:37
HLTCaloCellMaker::m_dataAccessSvc
ServiceHandle< ITrigCaloDataAccessSvc > m_dataAccessSvc
Definition
HLTCaloCellMaker.h:58
HLTCaloCellMaker::m_tileCellsInROI
Gaudi::Property< bool > m_tileCellsInROI
Definition
HLTCaloCellMaker.h:64
HLTCaloCellMaker::m_bcidAvgKey
SG::ReadHandleKey< CaloBCIDAverage > m_bcidAvgKey
Definition
HLTCaloCellMaker.h:49
RoiDescriptor::etaMinus
virtual double etaMinus() const override final
gets eta at zMinus
Definition
RoiDescriptor.h:117
RoiDescriptor::etaPlus
virtual double etaPlus() const override final
gets eta at zedPlus
Definition
RoiDescriptor.h:116
SG::ReadCondHandleKey
Definition
ReadCondHandleKey.h:21
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition
StoreGate/StoreGate/WriteHandleKey.h:40
ServiceHandle
Definition
ClusterMakerTool.h:36
TrigRoiDescriptor
nope - should be used for standalone also, perhaps need to protect the class def bits ifndef XAOD_ANA...
Definition
TrigRoiDescriptor.h:48
Generated on
for ATLAS Offline Software by
1.17.0