PandaRoot
MvdOfflineTBAnalysis_Topix4/MQ/PndMvdMQFileSampler.h
Go to the documentation of this file.
1 /********************************************************************************
2  * Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
3  * *
4  * This software is distributed under the terms of the *
5  * GNU Lesser General Public Licence version 3 (LGPL) version 3, *
6  * copied verbatim in the file "LICENSE" *
7  ********************************************************************************/
15 #ifndef PndMvdMQFileSampler_H_
16 #define PndMvdMQFileSampler_H_
17 
18 #include <string>
19 
20 #include "TClonesArray.h"
21 
22 #include "FairFileSource.h"
23 #include "FairRunAna.h"
24 
25 #include "FairMQDevice.h"
26 
27 class PndMvdMQFileSampler : public FairMQDevice {
28  public:
29  enum { InputFileName = FairMQDevice::Last, Last };
30 
32  virtual ~PndMvdMQFileSampler();
33 
34  void AddInputFileName(std::string tempString) { fFileNames.push_back(tempString); }
35  void AddInputBranchName(std::string tempString) { fBranchNames.push_back(tempString); }
36 
37  void SetMaxIndex(int64_t tempInt) { fMaxIndex = tempInt; }
38 
39  protected:
40  virtual void Run();
41  virtual void InitTask();
42 
43  private:
44  FairRunAna *fRunAna;
45  FairFileSource *fSource;
46  TObject *fInputObjects[100];
47  int fNObjects;
48  int64_t fMaxIndex;
49  std::vector<std::string> fBranchNames;
50  std::vector<std::string> fFileNames;
51 };
52 
53 #endif /* PndMvdMQFileSampler_H_ */
virtual void Run()
virtual ~PndMvdMQFileSampler()
virtual void InitTask()