48StatusCode
CaloMonAlgBase::checkFilters(
bool &ifPass,
bool &passBeamBackgroundRemoval,
const std::string &MonGroupName,
const EventContext &ctx)
const{
50 ATH_MSG_DEBUG(
"CaloMonAlgBase:checkFilters() starts "<<MonGroupName);
53 fill(MonGroupName,evtbin);
60 fill(MonGroupName,evtbin);
65 fill(MonGroupName,evtbin);
69 ATH_MSG_DEBUG(
"CaloMonAlgBase::checkFilters() ATLAS Ready done");
76 if(ifPass) {evtbin=3;
fill(MonGroupName,evtbin);}
83 if(ifPass) {evtbin=3;
fill(MonGroupName,evtbin);}
86 ATH_MSG_DEBUG(
"CaloMonAlgBase::checkFilters() BadLBTool done");
94 if(ifPass) {evtbin=4;
fill(MonGroupName,evtbin);}
97 if (larTime->timeC()!=0 && larTime->timeA()!=0 && std::fabs(larTime->timeC() - larTime->timeA())<10) {
101 ifPass = ifPass && 1;
102 if(ifPass) {evtbin=4;
fill(MonGroupName,evtbin);}
107 if(ifPass) {evtbin=4;
fill(MonGroupName,evtbin);}
109 ATH_MSG_DEBUG(
"CaloMonAlgBase::checkFilters() CollisionFilterTool done");
112 passBeamBackgroundRemoval=
true;
115 if(!beamBackgroundData.
isValid()){
119 if( beamBackgroundData->GetNumSegment() > 0 ) {
120 passBeamBackgroundRemoval =
false;
125 passBeamBackgroundRemoval =
true;
126 ifPass = ifPass && 1;
127 if(ifPass){evtbin=5;
fill(MonGroupName,evtbin);}
132 ifPass = ifPass && 1;
133 if(ifPass) {evtbin=5;
fill(MonGroupName,evtbin);}
136 ATH_MSG_DEBUG(
"CaloMonAlgBase::checkFilters() m_useBeamBackgroundRemoval done");
138 std::string TheTrigger;
140 TheTrigger=
"NoTrigSel";
141 ifPass = ifPass && 1;
142 if(ifPass) {evtbin=6;
fill(MonGroupName,evtbin);}
146 if(ifPass) {evtbin=6;
fill(MonGroupName,evtbin);}
153 ifPass = ifPass && 1;
154 if(ifPass) {evtbin=7;
fill(MonGroupName,evtbin);}
157 ATH_MSG_DEBUG(
"CaloMonAlgBase::checkFilters() is done with pass=" << ifPass);
158 return StatusCode::SUCCESS;
184 const unsigned side=(celleta>0) ? 0 : 1;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
const ServiceHandle< StoreGateSvc > & detStore() const
Gaudi::Property< std::string > m_triggerChainString
Trigger chain string pulled from the job option and parsed into a vector.
virtual StatusCode initialize() override
initialize
std::vector< std::string > m_vTrigChainNames
Vector of trigger chain names parsed from trigger chain string.
SG::ReadHandle< xAOD::EventInfo > GetEventInfo(const EventContext &) const
Return a ReadHandle for an EventInfo object (get run/event numbers, etc.).
AthMonitorAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
This class groups all DetDescr information related to a CaloCell.
float eta_raw() const
cell eta_raw
CaloCell_ID::CaloSample getSampling() const
cell sampling
Identifier identify() const override final
cell identifier
float phi_raw() const
cell phi_raw
bool is_lar_em_endcap_inner() const
cell belongs to the inner wheel of EM end cap
CaloMonAlgBase(const std::string &name, ISvcLocator *pSvcLocator)
ToolHandle< IDQFilterTool > m_ReadyFilterTool
Gaudi::Property< bool > m_useBeamBackgroundRemoval
Gaudi::Property< bool > m_useCollisionFilterTool
Gaudi::Property< bool > m_useLArNoisyAlg
StatusCode checkFilters(bool &ifPass, bool &passBeamBackgroundRemoval, const std::string &MonGroupName, const EventContext &ctx) const
Gaudi::Property< bool > m_useBadLBTool
SG::ReadHandleKey< LArCollisionTime > m_LArCollisionTimeKey
ToolHandle< IDQFilterTool > m_BadLBTool
const std::map< unsigned, LayerEnumNoSides > m_caloSamplingToLyrNS
Gaudi::Property< bool > m_useReadyFilterTool
void getHistoCoordinates(const CaloDetDescrElement *dde, float &celleta, float &cellphi, unsigned &iLyr, unsigned &iLyrNS) const
virtual StatusCode initialize() override
initialize
const CaloCell_ID * m_calo_id
SG::ReadHandleKey< BeamBackgroundData > m_beamBackgroundKey
Declare a monitored scalar variable.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
@ LAr
The LAr calorimeter.
@ Error
The sub-detector issued an error.
::StatusCode StatusCode
StatusCode definition for legacy code.
void fill(H5::Group &out_file, size_t iterations)