FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairRunAnaProof.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 (LGPL) version 3, *
6  * copied verbatim in the file "LICENSE" *
7  ********************************************************************************/
8 #ifndef FAIRRUNANAPROOF_H
9 #define FAIRRUNANAPROOF_H
10 
18 #include "FairFileSource.h" // FairRunAnaProof can only accept FairFileSource as source
19 #include "FairRunAna.h"
20 
21 #include <Rtypes.h>
22 #include <TProof.h>
23 
25 {
26  public:
27  static FairRunAnaProof* Instance();
28  virtual ~FairRunAnaProof();
29  FairRunAnaProof(const char* proofName = "");
30 
32  void Init();
33 
35  void InitContainers();
36 
40  // virtual void SetOutputFile(const char* fname);
44  // virtual void SetOutputFile(TFile* f);
45 
47  void Run(Int_t NStart = 0, Int_t NStop = 0);
49  void RunOneEvent(Long64_t entry);
51  void RunOnProof(Int_t NStart, Int_t NStop);
52 
54  /* void SetInTree (TTree* tempTree) { */
55  /* fRootManager->SetInTree (tempTree); */
56  /* } */
57 
59  TProof* GetProof() { return fProof; }
60 
62  void SetRunOnProofWorker(Bool_t tb = kTRUE) { fRunOnProofWorker = tb; }
64  void SetProofParName(TString parName) { fProofParName = parName; }
66  void SetOutputDirectory(TString dirName) { fOutputDirectory = dirName; }
68  void SetProofOutputStatus(TString outStat) { fProofOutputStatus = outStat; }
69 
70  virtual void SetSource(FairSource* tempSource);
71 
72  protected:
74 
76  TProof* fProof;
79 
80  TString fProofServerName;
81 
82  TString fProofParName;
83 
84  TString fOutputDirectory;
85 
87 
88  private:
90  FairRunAnaProof operator=(const FairRunAnaProof&);
91 
92  FairFileSource* fProofFileSource;
93 
94  ClassDef(FairRunAnaProof, 1);
95 };
96 
97 #endif // FAIRRUNANAPROOF_H
Bool_t fRunOnProofWorker
virtual ~FairRunAnaProof()
void SetOutputDirectory(TString dirName)
void RunOnProof(Int_t NStart, Int_t NStop)
TProof * GetProof()
FairRunAnaProof(const char *proofName="")
void Run(Int_t NStart=0, Int_t NStop=0)
static FairRunAnaProof * fRAPInstance
void SetRunOnProofWorker(Bool_t tb=kTRUE)
TString fProofServerName
TString fProofOutputStatus
static FairRunAnaProof * Instance()
void SetProofParName(TString parName)
void SetProofOutputStatus(TString outStat)
TString fOutputDirectory
virtual void SetSource(FairSource *tempSource)
void RunOneEvent(Long64_t entry)