mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-13 16:46:47 +00:00
40 lines
863 B
C++
40 lines
863 B
C++
/**
|
|
* FairMQSamplerTask.h
|
|
*
|
|
* @since 2012-11-22
|
|
* @author D. Klein, A. Rybalchenko
|
|
*/
|
|
|
|
#ifndef FAIRMQSAMPLERTASK_H_
|
|
#define FAIRMQSAMPLERTASK_H_
|
|
|
|
#include "FairTask.h"
|
|
#include <vector>
|
|
#include "TClonesArray.h"
|
|
#include <string>
|
|
#include "FairMQMessage.h"
|
|
#include "FairMQTransportFactory.h"
|
|
#include "TString.h"
|
|
|
|
|
|
class FairMQSamplerTask: public FairTask
|
|
{
|
|
public:
|
|
FairMQSamplerTask();
|
|
FairMQSamplerTask(const Text_t* name, int iVerbose=1);
|
|
virtual ~FairMQSamplerTask();
|
|
virtual InitStatus Init();
|
|
virtual void Exec(Option_t* opt) = 0;
|
|
void SetBranch(TString branch);
|
|
FairMQMessage* GetOutput();
|
|
void SetTransport(FairMQTransportFactory* factory);
|
|
|
|
protected:
|
|
TClonesArray* fInput;
|
|
TString fBranch;
|
|
FairMQMessage* fOutput;
|
|
FairMQTransportFactory* fTransportFactory;
|
|
};
|
|
|
|
#endif /* FAIRMQSAMPLERTASK_H_ */
|