10 #ifndef ProofFriends_h
11 #define ProofFriends_h
19 class ProofFriends :
public TSelector {
51 virtual ~ProofFriends() { }
52 virtual Int_t Version()
const {
return 2; }
53 virtual void Begin(TTree *tree);
54 virtual void SlaveBegin(TTree *tree);
55 virtual void Init(TTree *tree);
56 virtual Bool_t Notify();
57 virtual Bool_t Process(Long64_t entry);
58 virtual Int_t GetEntry(Long64_t entry, Int_t getall = 0) {
return fChain ? fChain->GetTree()->GetEntry(entry, getall) : 0; }
59 virtual void SetOption(
const char *option) { fOption = option; }
60 virtual void SetObject(TObject *obj) { fObject = obj; }
61 virtual void SetInputList(TList *input) { fInput = input; }
62 virtual TList *GetOutputList()
const {
return fOutput; }
63 virtual void SlaveTerminate();
64 virtual void Terminate();
66 ClassDef(ProofFriends,0);
71 #ifdef ProofFriends_cxx
72 void ProofFriends::Init(TTree *tree)
85 fChain->SetMakeClass(1);
87 fChain->SetBranchAddress(
"Run", &Run, &b_Run);
88 fChain->SetBranchAddress(
"Event", &Event, &b_Event);
89 fChain->SetBranchAddress(
"x", &x, &b_x);
90 fChain->SetBranchAddress(
"y", &y, &b_y);
91 fChain->SetBranchAddress(
"z", &z, &b_z);
93 fChain->SetBranchAddress(
"r", &r, &b_r);
96 Bool_t ProofFriends::Notify()
107 #endif // #ifdef ProofFriends_cxx