|
ATLAS Offline Software
|
Go to the documentation of this file.
28 #include "EventInfo/EventInfo.h"
31 #include "GaudiKernel/ISvcLocator.h"
32 #include "GaudiKernel/GenericAddress.h"
33 #include "GaudiKernel/StatusCode.h"
34 #include "GaudiKernel/MsgStream.h"
35 #include "GaudiKernel/IIncidentSvc.h"
36 #include "GaudiKernel/Incident.h"
66 const unsigned int &initRunNo,
const uint64_t &initEventNo,
68 const unsigned int &initLBNo,
const unsigned int &evPLB,
69 const unsigned int &initTimeStamp,
70 const unsigned int &timeStampInt);
76 return (
void*)m_pSelector;
94 m_eventNo = m_initEventNo;
95 m_runNo = m_initRunNo;
97 m_timeStamp = m_initTimeStamp;
105 m_firstEvent =
false;
107 m_eventNo = m_initEventNo;
108 m_runNo = m_initRunNo;
110 m_timeStamp = m_initTimeStamp;
119 if(m_eventNo>=m_eventsP) {
126 if (++m_LBTick >= m_eventsPLB) {
130 m_timeStamp += m_timeStampInt;
136 m_timeStamp -= m_timeStampInt;
137 if (--m_LBTick <=0) {
138 m_LBTick=m_eventsPLB;
160 m_pSelector(pSelector),
163 m_eventsP(2000000000),
178 const unsigned int &initRunNo,
181 const unsigned int &initLBNo,
182 const unsigned int &evPLB,
183 const unsigned int &initTimeStamp,
184 const unsigned int &timeStampInt):
185 m_pSelector(pSelector),
186 m_initRunNo(initRunNo), m_initEventNo(initEventNo), m_eventsP(evPR),
187 m_initLBNo(initLBNo), m_eventsPLB(evPLB),
188 m_initTimeStamp(initTimeStamp), m_timeStampInt(timeStampInt),
204 base_class(
name, svcloc),
208 declareProperty(
"RunNumber",
m_runNo = 0 );
248 return StatusCode::SUCCESS;
252 ATH_MSG_INFO (
" Enter McEventSelector Initialization ");
253 return StatusCode::SUCCESS;
262 Incident lastInputIncident(
name(),
"LastInput");
263 incSvc->fireIncident(lastInputIncident);
265 return StatusCode::SUCCESS;
279 sc = StatusCode::SUCCESS;
292 ATH_MSG_DEBUG (
"............. Next (" << jump <<
") .............");
295 for (
int i = 0;
i < jump; ++
i ) {
297 if ( !
status.isSuccess() ) {
301 return StatusCode::SUCCESS;
303 return StatusCode::FAILURE;
318 sc = StatusCode::SUCCESS;
333 for (
int i = 0;
i < jump; ++
i ) {
335 if ( !
status.isSuccess() ) {
339 return StatusCode::SUCCESS;
341 return StatusCode::FAILURE;
346 ATH_MSG_ERROR (
"............. Last Event Not Implemented .............");
347 return StatusCode::FAILURE;
361 sc = StatusCode::SUCCESS;
374 IOpaqueAddress*& addr)
const {
387 return StatusCode::FAILURE;
390 return StatusCode::SUCCESS;
398 return StatusCode::SUCCESS;
405 ATH_MSG_ERROR (
"............. resetCriteria Not Implemented .............");
406 return StatusCode::FAILURE;
413 ATH_MSG_DEBUG (
"............. seek(" << evtNum <<
") .............");
417 for (
int i=0;
i < evtNum; ++
i) {
421 return StatusCode::SUCCESS;
Gaudi::CheckedProperty< unsigned > m_runNo
const McEventSelector * m_pSelector
virtual int curEvent(const Context &refCtxt) const override
Gaudi::CheckedProperty< unsigned long long > m_eventsPerRun
Gaudi::Property< bool > m_overrideLBNumber
virtual StatusCode stop() override
#define ATLAS_NOT_THREAD_SAFE
getNoisyStrip() Find noisy strips from hitmaps and write out into xml/db formats
void setEventNumber(uint64_t eventNo)
virtual StatusCode rewind(Context &refCtxt) const override
virtual StatusCode seek(Context &refCtxt, int) const override
void setTimeStampInterval(unsigned int intvl)
Gaudi::Property< bool > m_overrideRunNumber
Flags to indicate override of run/event/time These are always true and are here for consistency with ...
uint64_t eventNumber() const
Gaudi::Property< bool > m_overrideTimeStamp
Gaudi::Property< unsigned > m_timeStampInterval
virtual StatusCode releaseContext(Context *&refCtxt) const override
int serialEventNumber() const
Gaudi::Property< bool > m_overrideEventNumber
void setTimeStamp(unsigned int time)
static const CLID & classID()
void setRunNumber(unsigned int runNo)
virtual StatusCode next(Context &refCtxt) const override
virtual StatusCode previous(Context &refCtxt) const override
unsigned int m_timeStampInt
::StatusCode StatusCode
StatusCode definition for legacy code.
unsigned int runNumber() const
unsigned int timeStamp() const
McEventSelector(const std::string &name, ISvcLocator *svcloc)
Service Constructor.
virtual StatusCode createAddress(const Context &refCtxt, IOpaqueAddress *&) const override
virtual int size(Context &refCtxt) const override
Gaudi::CheckedProperty< unsigned > m_initTimeStamp
unsigned int m_initTimeStamp
Gaudi::CheckedProperty< unsigned > m_eventsPerLB
virtual StatusCode initialize() override
unsigned int lumiBlock() const
void setEventsPerRun(uint64_t eventsP)
Gaudi::CheckedProperty< unsigned long long > m_firstEventNo
virtual void * identifier() const
virtual StatusCode last(Context &refContext) const override
def time(flags, cells_name, *args, **kw)
virtual StatusCode resetCriteria(const std::string &cr, Context &c) const override
void setCriteria(const std::string &crit)
virtual StatusCode createContext(Context *&refpCtxt) const override
McContext(const McEventSelector *pSelector)
Standard constructor.
virtual ~McContext()
Standard destructor.
Gaudi::CheckedProperty< unsigned > m_firstLBNo