![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
7 #include "GaudiKernel/ITHistSvc.h"
8 #include "GaudiKernel/MsgStream.h"
9 #include "GaudiKernel/StatusCode.h"
20 #include "Identifier/Identifier.h"
26 ToolHandle<LVL1::IL1CaloOfflineTriggerTowerTools>&offlineTT_tool,
27 const unsigned int lumimax,
28 const std::string& pathInRootFile)
34 "EtCaloL1Correlation",
36 "EtCaloL1Correlation",
39 m_storeGate(
"StoreGateSvc", histoSvc->
name()),
40 m_caloTool(
"LVL1::L1CaloMonitoringCaloTool/L1CaloMonitoringCaloTool"),
49 ToolHandle<LVL1::IL1TriggerTowerTool>&onlineTT_tool,
50 const unsigned int lumimax,
51 const std::string& pathInRootFile)
57 "EtCaloL1Correlation",
59 "EtCaloL1Correlation",
61 m_storeGate(
"StoreGateSvc", aMonObj->
name()),
62 m_caloTool(
"LVL1::L1CaloMonitoringCaloTool/L1CaloMonitoringCaloTool"),
79 if (
sc.isFailure() || !caloCellContainer) {
90 if (
sc.isFailure() ) {
104 float caloEnergy = 0.;
105 float ttCpEnergy = trigTower->
cpET()*0.5;
108 if (ttCpEnergy <=
m_EtMin)
return -1000.;
111 CaloCellEnergyByLayerAcc(
"CaloCellEnergyByLayer");
112 if ( CaloCellEnergyByLayerAcc.
isAvailable(*trigTower) ) {
113 for (
float e : CaloCellEnergyByLayerAcc(*trigTower)) {
116 caloEnergy = caloEnergy / cosh( trigTower->
eta() );
121 CaloCellETByLayerAcc(
"CaloCellETByLayer");
122 if( CaloCellETByLayerAcc.
isAvailable(*trigTower) ){
123 for (
float et : CaloCellETByLayerAcc(*trigTower)) {
129 caloEnergy=
int(caloEnergy+0.5);
132 if (caloEnergy>255.) { caloEnergy=255.; }
137 return ttCpEnergy/caloEnergy;
150 return (
value!=-1000. );
161 if (
sc.isFailure()) {
167 if (
sc.isFailure()) {
Extra patterns decribing particle interation process.
uint8_t cpET() const
get cpET from peak of lut_cp
StatusCode getCaloCells()
L1CaloPprEtCorrelationPlotManager(ITHistSvc *histoSvc, ToolHandle< LVL1::IL1CaloOfflineTriggerTowerTools > &offlineTT_tool, const unsigned int lumimax, const std::string &pathInRootFile)
bool doMonitoring(double &value)
Helper class to provide constant type-safe access to aux data.
ToolHandle< LVL1::IL1CaloMonitoringCaloTool > m_caloTool
::StatusCode StatusCode
StatusCode definition for legacy code.
Description of TriggerTower_v2.
virtual double eta() const final
The pseudorapidity ( ) of the particle.
ServiceHandle< StoreGateSvc > m_storeGate
double getMonitoringValue(const xAOD::TriggerTower *trigTower, CalLayerEnum theLayer)
Container class for CaloCell.
ToolHandle< LVL1::IL1CaloOfflineTriggerTowerTools > m_ttToolOffline
#define ATH_MSG_WARNING(x)
bool absEta(const xAOD::TauJet &tau, double &out)
std::string m_caloCellContainerName
bool isAvailable(const ELT &e) const
Test to see if this variable exists in the store.
Helper class to provide constant type-safe access to aux data.