12#ifndef O2_MC_APPLICATION_H
13#define O2_MC_APPLICATION_H
26#include <fairmq/FwdDecls.h>
101 LOG(
debug) <<
"O2MCApplication: Init primaries from external buffer " <<
mPrimaries.size();
130 void fetchWorkerChunk();
131 bool mIsMTWorker =
false;
132 bool mIsEndOfWork =
false;
133 bool mWorkerInitialized =
false;
135 std::unique_ptr<TRandom> mWorkerRandom;
Definition of the Stack class.
virtual void UpdateTrackIndex(TRefArray *)
virtual void FillTrackArray()
std::list< FairDetector * > listActiveDetectors
FairGenericStack * fStack
FairGenericStack * GetStack()
TRefArray * fActiveDetectors
void finishEventCommon()
some common parts of finishEvent
void BeginRunOnWorker() override
o2::data::SubEventInfo * mSubEventInfo
generic channel on which to send sim data
fair::mq::Channel * mSimDataChannel
std::vector< o2::base::Detector * > mActiveO2Detectors
what are we currently processing?
void setPrimaries(std::vector< TParticle > &&p)
void InitOnWorker() override
static bool isSelectedSubEvent(int eventID, int part)
whether a sub-event passes the O2SIM_RESTRICT_EVENTPART ("event:part") selection, a debugging aid
void setSimDataChannel(fair::mq::Channel *channel)
void BeginEvent() override
a worker thread asks the primary server for its sub-event here, as a worker process does before Proce...
void GeneratePrimaries() override
void attachSubEventInfo(fair::mq::Parts &, o2::data::SubEventInfo const &info) const
~O2MCApplication() override=default
void FinishEvent() override
void FinishRunOnWorker() override
void setPrimaries(std::vector< TParticle > const &p)
std::vector< TParticle > mPrimaries
TVirtualMCApplication * CloneForWorker() const override
void setSubEventInfo(o2::data::SubEventInfo *i)
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"