-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
Copy pathProofAux.h
48 lines (40 loc) · 1.28 KB
/
ProofAux.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
/// \file
/// \ingroup tutorial_ProofAux
///
/// Selector used for auxiliary actions in the PROOF tutorials
///
/// \macro_code
///
/// \author Gerardo Ganis (gerardo.ganis@cern.ch)
#ifndef ProofAux_h
#define ProofAux_h
#include <TString.h>
#include <TSelector.h>
class TList;
class ProofAux : public TSelector {
private :
Int_t GenerateTree(const char *fnt, Long64_t ent, TString &fn);
Int_t GenerateFriend(const char *fnt, const char *fnf = nullptr);
Int_t GetAction(TList *input);
public :
// Specific members
Int_t fAction;
Long64_t fNEvents;
TList *fMainList;
TList *fFriendList;
TString fDir;
ProofAux();
~ProofAux() 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(ProofAux,0);
};
#endif