-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
Copy pathProofSimpleFile.h
52 lines (44 loc) · 1.38 KB
/
ProofSimpleFile.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/// \file
/// \ingroup tutorial_ProofSimpleFile
///
/// Selector to fill a set of histograms and merging via file
///
/// \macro_code
///
/// \author Gerardo Ganis (gerardo.ganis@cern.ch)
#ifndef ProofSimpleFile_h
#define ProofSimpleFile_h
#include <TSelector.h>
class TH1F;
class TRandom3;
class TFile;
class TProofOutputFile;
class TDirectory;
class ProofSimpleFile : public TSelector {
private:
Int_t CreateHistoArrays();
void PlotHistos(Int_t opt = 0);
public :
// Specific members
Int_t fNhist;
TH1F **fHistTop;//[fNhist]
TH1F **fHistDir;//[fNhist]
TRandom3 *fRandom;
TFile *fFile;
TProofOutputFile *fProofFile; // For merging via file
TDirectory *fFileDir; // Subdirectory for some histos
ProofSimpleFile();
~ProofSimpleFile() override;
Int_t Version() const override { return 2; }
void Begin(TTree *tree) override;
void SlaveBegin(TTree *tree) override;
Bool_t Process(Long64_t entry) override;
void SetOption(const char *option) override { fOption = option; }
void SetObject(TObject *obj) override { fObject = obj; }
void SetInputList(TList *input) override { fInput = input; }
TList *GetOutputList() const override { return fOutput; }
void SlaveTerminate() override;
void Terminate() override;
ClassDefOverride(ProofSimpleFile,0);
};
#endif