Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ProofNtuple.h File Reference

Detailed Description

Selector to fill a simple ntuple.

#ifndef ProofNtuple_h
#define ProofNtuple_h
#include <TSelector.h>
class TFile;
class TNtuple;
class TRandom3;
class ProofNtuple : public TSelector {
// Specific members
TFile *fFile;
TProofOutputFile *fProofFile; // For optimized merging of the ntuple
TNtuple *fNtp2; // To test double TTree in the same file
TRandom3 *fRandom;
TNtuple *fNtpRndm; // Ntuple with random numbers
ProofNtuple() : fFile(nullptr), fProofFile(nullptr), fNtp(nullptr), fNtp2(nullptr), fRandom(nullptr), fPlotNtuple(kTRUE), fNtpRndm(nullptr) { }
~ProofNtuple() 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;
void PlotNtuple(TNtuple *, const char *);
};
#endif
bool Bool_t
Definition RtypesCore.h:63
int Int_t
Definition RtypesCore.h:45
long long Long64_t
Definition RtypesCore.h:69
constexpr Bool_t kTRUE
Definition RtypesCore.h:93
#define ClassDefOverride(name, id)
Definition Rtypes.h:346
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Option_t Option_t option
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void input
A ROOT file is an on-disk file, usually with extension .root, that stores objects in a file-system-li...
Definition TFile.h:53
A doubly linked list.
Definition TList.h:38
A simple TTree restricted to a list of float variables only.
Definition TNtuple.h:28
Mother of all ROOT objects.
Definition TObject.h:41
Class to steer the merging of files produced on the workers.
Random number generator class based on M.
Definition TRandom3.h:27
A TSelector object is used by the TTree::Draw, TTree::Scan, TTree::Process to navigate in a TTree and...
Definition TSelector.h:31
A TTree represents a columnar dataset.
Definition TTree.h:79
void Begin(Int_t type)
Author
Gerardo Ganis (gerar.nosp@m.do.g.nosp@m.anis@.nosp@m.cern.nosp@m..ch)

Definition in file ProofNtuple.h.