mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 09:31:45 +00:00
merge the trunk with the development of ZeroMQ branch
git-svn-id: https://subversion.gsi.de/fairroot/fairbase/trunk@22451 0381ead4-6506-0410-b988-94b70fbc4730
This commit is contained in:
@@ -29,14 +29,6 @@
|
||||
*/
|
||||
class FairMQSampler: public FairMQDevice
|
||||
{
|
||||
protected:
|
||||
FairRunAna* fFairRunAna;
|
||||
FairMQSamplerTask* fSamplerTask;
|
||||
TString fInputFile; // Filename of a root file containing the simulated digis.
|
||||
TString fParFile;
|
||||
TString fBranch; // The name of the sub-detector branch to stream the digis from.
|
||||
Int_t fEventRate;
|
||||
Int_t fEventCounter;
|
||||
public:
|
||||
enum {
|
||||
InputFile = FairMQDevice::Last,
|
||||
@@ -46,15 +38,25 @@ class FairMQSampler: public FairMQDevice
|
||||
};
|
||||
FairMQSampler();
|
||||
virtual ~FairMQSampler();
|
||||
|
||||
void ResetEventCounter();
|
||||
virtual void ListenToCommands();
|
||||
virtual void SetProperty(const Int_t& key, const TString& value, const Int_t& slot = 0);
|
||||
virtual TString GetProperty(const Int_t& key, const TString& default_ = "", const Int_t& slot = 0);
|
||||
virtual void SetProperty(const Int_t& key, const Int_t& value, const Int_t& slot = 0);
|
||||
virtual Int_t GetProperty(const Int_t& key, const Int_t& default_ = 0, const Int_t& slot = 0);
|
||||
protected:
|
||||
FairRunAna* fFairRunAna;
|
||||
Int_t fNumEvents;
|
||||
FairMQSamplerTask* fSamplerTask;
|
||||
TString fInputFile; // Filename of a root file containing the simulated digis.
|
||||
TString fParFile;
|
||||
TString fBranch; // The name of the sub-detector branch to stream the digis from.
|
||||
Int_t fEventRate;
|
||||
Int_t fEventCounter;
|
||||
virtual void Init();
|
||||
virtual void Run();
|
||||
void Log(Int_t intervalInMs);
|
||||
void* ResetEventCounter();
|
||||
static void* callResetEventCounter(void* arg) { return ((FairMQSampler*)arg)->ResetEventCounter(); }
|
||||
virtual void SetProperty(Int_t key, TString value, Int_t slot = 0);
|
||||
virtual TString GetProperty(Int_t key, TString default_ = "", Int_t slot = 0);
|
||||
virtual void SetProperty(Int_t key, Int_t value, Int_t slot = 0);
|
||||
virtual Int_t GetProperty(Int_t key, Int_t default_ = 0, Int_t slot = 0);
|
||||
|
||||
};
|
||||
|
||||
#endif /* FAIRMQSAMPLER_H_ */
|
||||
|
Reference in New Issue
Block a user