|
ATLAS Offline Software
|
Go to the documentation of this file.
71 bunch_crossing_id = thisEvent->
bcid();
78 ATH_MSG_WARNING(
"Unable to retrieve BunchCrossing conditions object" );
79 return StatusCode::SUCCESS;
83 if (!bcData->
isFilled(bunch_crossing_id)) {
84 ATH_MSG_INFO(
"BCID: "<<bunch_crossing_id<<
" empty ? not filling the coll. time" );
85 return StatusCode::SUCCESS;
96 return StatusCode::SUCCESS;
98 ATH_MSG_DEBUG(
"LArCollisionTime successfully retrieved from event store" );
113 ATH_MSG_DEBUG(
"time A = " << larTime->
timeA() <<
" time C = " << larTime->
timeC() <<
" diff = " << larTime->
timeC() - larTime->
timeA() <<
"saved diff = " << ecTimeDiff );
117 lumi_block_timeWindow=lumi_block;
121 lumi_block_singleBeam_timeWindow=lumi_block;
127 ATH_MSG_DEBUG(
"BCID: "<<bunch_crossing_id<<
" distance from Front: "<<bcid_distance<<
"Filling in train...");
138 else ATH_MSG_WARNING(
"I should be filling the 'inTrain' group now, but it looks undefined. Did you remember to set 'm_InTrain_MonGroupName' in the python?" );
141 ATH_MSG_DEBUG(
"LAr below cuts ncells: " << larTime->
ncellA() <<
" " << larTime->
ncellC() <<
" times: " << larTime->
timeA() <<
" " <<larTime->
timeC() <<
" " << std::fabs(ecTimeDiff) <<
", not filling !" );
145 return StatusCode::SUCCESS;
virtual ~LArCollisionTimeMonAlg()
Default destructor.
virtual StatusCode fillHistograms(const EventContext &ctx) const override
Called each event.
double energyC() const
total energy C side
double energyA() const
total energy A side
SG::ReadCondHandleKey< BunchCrossingCondData > m_bunchCrossingKey
@ LAr
The LAr calorimeter.
Base class for Athena Monitoring Algorithms.
int ncellC() const
get number of cells for time C side
Gaudi::Property< std::string > m_MonGroupName
Generic monitoring tool for athena components.
::StatusCode StatusCode
StatusCode definition for legacy code.
LArCollisionTimeMonAlg(const std::string &name, ISvcLocator *pSvcLocator)
@ BunchCrossings
Distance in units of 25 nanoseconds.
double timeC() const
time C side
void fill(const ToolHandle< GenericMonitoringTool > &groupHandle, std::vector< std::reference_wrapper< Monitored::IMonitoredVariable >> &&variables) const
Fills a vector of variables to a group by reference.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Gaudi::Property< float > m_timeCut
SG::ReadHandle< xAOD::EventInfo > GetEventInfo(const EventContext &) const
Return a ReadHandle for an EventInfo object (get run/event numbers, etc.)
uint32_t lumiBlock() const
The current event's luminosity block number.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
int distanceFromFront(const bcid_type bcid, const BunchDistanceType type=NanoSec) const
The distance of the specific bunch crossing from the front of the train.
Gaudi::Property< std::string > m_InTrain_MonGroupName
Gaudi::Property< bool > m_eWeighted
SG::ReadDecorHandleKey< xAOD::EventInfo > m_eventInfoDecorKey
StatusCode initialize(bool used=true)
SG::ReadHandleKey< LArCollisionTime > m_LArCollisionTimeKey
Gaudi::Property< int > m_minCells
virtual StatusCode initialize() override
initialize
int ncellA() const
get number of cells for time A side
#define ATH_MSG_WARNING(x)
Gaudi::Property< int > m_distance
bool isEventFlagBitSet(EventFlagSubDet subDet, size_t bit) const
Check one particular bit of one particular sub-detector.
Handle class for reading a decoration on an object.
double timeA() const
time A side
Declare a monitored scalar variable.
Gaudi::Property< bool > m_IsOnline
uint32_t bcid() const
The bunch crossing ID of the event.
Gaudi::Property< double > m_timeUnit
bool isFilled(const bcid_type bcid) const
The simplest query: Is the bunch crossing filled or not?
virtual StatusCode initialize() override
Overwrite dummy method from AlgTool.