|
ATLAS Offline Software
|
Go to the documentation of this file.
4 #ifndef TRIGT1CALOMONITORING_CPMSIMMONITORALGORITHM_H
5 #define TRIGT1CALOMONITORING_CPMSIMMONITORALGORITHM_H
37 class ITrigT1CaloMonErrorTool;
51 StringProperty
m_packageName{
this,
"PackageName",
"CpmSimMonitor",
"group name for histograming"};
56 Gaudi::Property<int>
m_crates{
this,
"s_crates", 4,
"Number of CPM crates"};
57 Gaudi::Property<int>
m_modules{
this,
"s_modules", 14,
"Number of modules per crate (modules numbered 1-14)"};
58 Gaudi::Property<int>
m_maxSlices{
this,
"s_maxSlices", 5,
"Maximum number of slices"};
59 Gaudi::Property<int>
m_cmxs{
this,
"s_cmxs", 2,
"Number of CMXs"};
61 Gaudi::Property<bool>
m_legacyCpHadInputsDisabled{
this,
"s_legacyCpHadInputsDisabled",
false,
"Status of the L1Calo Legacy CP hadronic inputs"};
113 std::vector<int>* parityMap = 0)
const;
130 const std::vector<int> & parityMap,
153 const EventContext& ctx)
const;
160 int fpga(
int crate,
double phi)
const;
170 int thresholdsSame(
int val1,
int val2,
int nThresh,
int nBits)
const;
173 int thresholdsDiff(
int val1,
int val2,
int nThresh,
int nBits)
const;
177 int x,
int val,
int nThresh,
178 int nBits,
int offset = 0)
const;
Property holding a SG store/key/clid from which a ReadHandle is made.
CpmSimMonitorAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
std::map< int, const CPMTobRoI * > CPMTobRoIMap_t
void simulate(const CpmTowerMap *towers, const CpmTowerMap *towersOv, xAOD::CPMTobRoIContainer *rois, const EventContext &ctx) const
ToolHandle< LVL1::IL1CPMTools > m_cpmTool
ToolHandle< LVL1::ITrigT1CaloMonErrorTool > m_errorTool
static const std::string RODHeaderLocation
std::map< int, const xAOD::TriggerTower * > TriggerTowerMapHad
int thresholdsSame(int val1, int val2, int nThresh, int nBits) const
std::map< uint32_t, int > m_errorLB_thresh_counter ATLAS_THREAD_SAFE
StringProperty m_packageName
void fillXVsThresholds(Monitored::Scalar< int > &xitem, Monitored::Scalar< int > &yitem, Monitored::Scalar< int > &witem, int x, int val, int nThresh, int nBits, int offset=0) const
int fpga(int crate, double phi) const
virtual ~CpmSimMonitorAlgorithm()=default
SG::ReadHandleKey< xAOD::RODHeaderContainer > m_rodHeaderLocation
std::map< uint32_t, int > m_errorLB_tt_counter ATLAS_THREAD_SAFE
std::map< uint32_t, int > m_errorLB_roi_counter ATLAS_THREAD_SAFE
static const std::string CMXCPTobLocation
int thresholdsDiff(int val1, int val2, int nThresh, int nBits) const
Property holding a SG store/key/clid from which a ReadHandle is made.
ToolHandle< LVL1::IL1CPCMXTools > m_cpCmxTool
SG::ReadHandleKey< xAOD::CMXCPTobContainer > m_cmxCpTobLocation
bool limitedRoiSet(int crate, SG::ReadHandle< xAOD::RODHeaderContainer > &rodTES) const
xAOD::CPMTowerMap_t CpmTowerMap
bool compareHad(const TriggerTowerMapHad &ttMap, const CpmTowerMap &cpMap, ErrorVector &errors, bool overlap) const
Base class for Athena Monitoring Algorithms.
SG::ReadHandleKey< xAOD::CPMTowerContainer > m_cpmTowerLocation
SG::ReadHandleKey< xAOD::CPMTowerContainer > m_cpmTowerLocationOverlap
void compare(const CpmTobRoiMap &roiSimMap, const CpmTobRoiMap &roiMap, ErrorVector &errors, const xAOD::RODHeaderContainer *rodTES) const
SG::WriteHandleKey< std::vector< int > > m_errorLocation
Property holding a SG store/key/clid from which a WriteHandle is made.
std::vector< int > ErrorVector
std::map< int, const xAOD::CMXCPTob * > CmxCpTobMap
::StatusCode StatusCode
StatusCode definition for legacy code.
SG::ReadHandleKey< xAOD::CPMTobRoIContainer > m_cpmTobRoiLocation
CpmTowerMap::mapped_type ttCheck(CpmTowerMap::mapped_type tt, xAOD::CPMTowerContainer *coll) const
std::map< int, const xAOD::TriggerTower * > TriggerTowerMapEm
std::map< int, const CPMTower * > CPMTowerMap_t
Gaudi::Property< bool > m_legacyCpHadInputsDisabled
StatusCode setupMap(const xAOD::TriggerTowerContainer *coll, TriggerTowerMapEm &emmap, TriggerTowerMapHad &hadmap) const
Gaudi::Property< int > m_cmxs
virtual StatusCode initialize() override
initialize
static const std::string CPMTowerLocation
SG::ReadHandleKey< xAOD::TriggerTowerContainer > m_triggerTowerLocation
Gaudi::Property< int > m_crates
Header file to be included by clients of the Monitored infrastructure.
SG::ReadHandleKey< xAOD::CMXCPHitsContainer > m_cmxCpHitsLocation
ServiceHandle< TrigConf::ITrigConfigSvc > m_configSvc
const std::string selection
Gaudi::Property< int > m_modules
static const std::string xAODTriggerTowerLocation
void simulate(const xAOD::CMXCPHitsContainer *hitsIn, xAOD::CMXCPHitsContainer *hitsOut) const
Gaudi::Property< int > m_maxSlices
std::map< uint32_t, int > m_errorLB_tob_counter ATLAS_THREAD_SAFE
virtual StatusCode fillHistograms(const EventContext &ctx) const override
adds event to the monitoring histograms
const TrigConf::L1Menu * getL1Menu(const EventContext &ctx) const
static const std::string CPMTobRoILocation
bool compareEm(const TriggerTowerMapEm &ttMap, const CpmTowerMap &cpMap, ErrorVector &errors, bool overlap) const
SG::ReadHandleKey< TrigConf::L1Menu > m_L1MenuKey
std::map< int, const xAOD::CMXCPHits * > CmxCpHitsMap
xAOD::CPMTobRoIMap_t CpmTobRoiMap
Declare a monitored scalar variable.
static const std::string CMXCPHitsLocation