KaliVeda
1.13/01
Heavy-Ion Analysis Toolkit
|
General purpose analysis class for TTree containing KVEvent objects.
Use this TSelector to analyse data in TTrees containing a branch with KVEvent-derived objects:
where "[options]"
is the list of options in the form "BranchName=toto, ..."
.
The following options MUST be given:
The following are optional options:
When AuxFiles
is used, the user can access the events in these files in her Analysis()
method by doing the following:
Any other options can be defined by the user and parsed in her analysis class with methods IsOptGiven() and GetOpt()
Global variables for the analysis should be declared in InitAnalysis() using method AddGV(). These variables are calculated automatically for each event before user's Analysis() method is called.
If the user needs to define new reference frames for the data which must exist before global variables are automatically calculated in the analysis loop, she can do so by overriding the method SetAnalysisFrame(), like so:
Note that the global variables are only calculated using particles which have their "OK" status set, for example because they correspond to the global particle selection criteria given to SetParticleConditions(). Any further particle selections applied to individual global variables will then select from among these "OK" particles.
If one or more global variables have event selection conditions defined (i.e. cuts on the values of the global variables) - see KVVarGlob::SetEventSelection() and KVGVList - then for each event which does not satisfy all conditions the Analysis() method will not be called.
In order to use a KVEventSelector with PROOF:
Histograms can also be declared 'on the fly' in the Analysis() method in the same way;
If you want all results of your analysis to be written in a single file containing both histos and trees, call method SetJobOutputFileName() with the required filename in your InitAnalysis() method;
If, at the end of processing, you want to generate a histogram from one or more histograms filled in your analysis, for example generate a TProfile from a 2D histogram, or store the result of dividing one histogram by the other, you need to do the following:
Definition at line 153 of file KVEventSelector.h.
Public Member Functions | |
KVEventSelector (TTree *=0) | |
KVVarGlob * | AddGV (const Char_t *class_name, const Char_t *name) |
void | AddGV (KVVarGlob *vg) |
KVGVList * | AddGVList (const KVString &list_name, const KVParticleCondition &selection=KVParticleCondition()) |
template<typename HistoType , typename... Args> | |
HistoType * | AddHisto (Args &&... args) |
void | AddHisto (TH1 *histo) |
TTree * | AddTree (const TString &name, const TString &title="") |
Add TTree with given name and title to list of TTree to be filled by user's analysis. More... | |
void | AddTree (TTree *tree) |
virtual Bool_t | Analysis () |
Bool_t | AtEndOfRun (void) |
virtual void | Begin (TTree *tree) |
virtual void | CheckEndOfRun () |
Testing whether EndRun() should be called. More... | |
Bool_t | CreateTreeFile (const Char_t *filename="") |
virtual void | EndAnalysis () |
virtual void | EndRun () |
void | FillHisto (const Char_t *sname, const Char_t *label, Double_t weight=1) |
Fill 1D histogram with named bins. More... | |
void | FillHisto (const Char_t *sname, Double_t one, Double_t two=1, Double_t three=1, Double_t four=1) |
void | FillTree (const Char_t *sname="") |
const Char_t * | GetBranchName () const |
virtual Int_t | GetEntry (Long64_t entry, Int_t getall=0) |
KVEvent * | GetEvent () const |
Int_t | GetEventNumber () const |
KVEvent * | GetFriendEvent () const |
Int_t | GetFriendTreeEntry (Long64_t entry, Int_t getall=0) |
KVVarGlob * | GetGV (const Char_t *name) const |
KVGVList * | GetGVList (const KVString &list_name="default") |
const KVGVList * | GetGVList (const KVString &list_name="default") const |
TH1 * | GetHisto (const Char_t *name) const |
const KVHashList * | GetHistoList () const |
return the list of created trees More... | |
TString | GetOpt (const Char_t *option) const |
virtual TList * | GetOutputList () const |
TTree * | GetTree (const Char_t *name) const |
return the tree named tree_name More... | |
const KVHashList * | GetTreeList () const |
return the list of created trees More... | |
virtual void | Init (TTree *tree) |
virtual void | InitAnalysis () |
void | InitFriendTree (TTree *tree, const TString &branchname) |
virtual void | InitRun () |
Bool_t | IsOptGiven (const Char_t *option) |
virtual Bool_t | Notify () |
virtual void | ParseOptions () |
virtual Bool_t | Process (Long64_t entry) |
virtual void | RecalculateGlobalVariables () |
virtual void | SaveHistos (const Char_t *="", Option_t *="recreate", Bool_t=kFALSE) |
virtual void | SetAdditionalBranchAddress () |
virtual void | SetAnalysisFrame () |
void | SetBranchName (const Char_t *n) |
virtual void | SetCurrentRun (KVDBRun *) |
void | SetEvent (KVEvent *e) |
void | SetEventsReadInterval (Long64_t N) |
virtual void | SetInputList (TList *input) |
void | SetJobOutputFileName (const TString &filename) |
virtual void | SetObject (TObject *obj) |
void | SetOpt (const Char_t *option, const Char_t *value) |
void | SetParticleConditions (const KVParticleCondition &, const KVString &="") |
void | SetParticleConditionsParticleClassName (const KVString &t) |
void | SetTriggerConditionsForRun (int) |
virtual void | SlaveBegin (TTree *tree) |
virtual void | SlaveTerminate () |
virtual void | Terminate () |
void | UnsetOpt (const Char_t *opt) |
virtual Int_t | Version () const |
![]() | |
TSelector () | |
virtual | ~TSelector () |
virtual void | Abort (const char *why, EAbort what=kAbortProcess) |
virtual EAbort | GetAbort () const |
virtual TList * | GetInputList () const |
virtual const char * | GetOption () const |
virtual Long64_t | GetStatus () const |
virtual void | ImportOutput (TList *output) |
virtual Bool_t | ProcessCut (Long64_t) |
virtual void | ProcessFill (Long64_t) |
virtual void | ResetAbort () |
virtual void | SetOption (const char *option) |
virtual void | SetStatus (Long64_t status) |
![]() | |
TObject () | |
TObject (const TObject &object) | |
virtual | ~TObject () |
void | AbstractMethod (const char *method) const |
virtual void | AppendPad (Option_t *option="") |
virtual void | Browse (TBrowser *b) |
ULong_t | CheckedHash () |
virtual const char * | ClassName () const |
virtual void | Clear (Option_t *="") |
virtual TObject * | Clone (const char *newname="") const |
virtual Int_t | Compare (const TObject *obj) const |
virtual void | Copy (TObject &object) const |
virtual void | Delete (Option_t *option="") |
virtual Int_t | DistancetoPrimitive (Int_t px, Int_t py) |
virtual void | Draw (Option_t *option="") |
virtual void | DrawClass () const |
virtual TObject * | DrawClone (Option_t *option="") const |
virtual void | Dump () const |
virtual void | Error (const char *method, const char *msgfmt,...) const |
virtual void | Execute (const char *method, const char *params, Int_t *error=0) |
virtual void | Execute (TMethod *method, TObjArray *params, Int_t *error=0) |
virtual void | ExecuteEvent (Int_t event, Int_t px, Int_t py) |
virtual void | Fatal (const char *method, const char *msgfmt,...) const |
virtual TObject * | FindObject (const char *name) const |
virtual TObject * | FindObject (const TObject *obj) const |
virtual Option_t * | GetDrawOption () const |
virtual const char * | GetIconName () const |
virtual const char * | GetName () const |
virtual char * | GetObjectInfo (Int_t px, Int_t py) const |
virtual const char * | GetTitle () const |
virtual UInt_t | GetUniqueID () const |
virtual Bool_t | HandleTimer (TTimer *timer) |
virtual ULong_t | Hash () const |
Bool_t | HasInconsistentHash () const |
virtual void | Info (const char *method, const char *msgfmt,...) const |
virtual Bool_t | InheritsFrom (const char *classname) const |
virtual Bool_t | InheritsFrom (const TClass *cl) const |
virtual void | Inspect () const |
void | InvertBit (UInt_t f) |
virtual Bool_t | IsEqual (const TObject *obj) const |
virtual Bool_t | IsFolder () const |
R__ALWAYS_INLINE Bool_t | IsOnHeap () const |
virtual Bool_t | IsSortable () const |
R__ALWAYS_INLINE Bool_t | IsZombie () const |
virtual void | ls (Option_t *option="") const |
void | MayNotUse (const char *method) const |
void | Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const |
void | operator delete (void *ptr) |
void | operator delete[] (void *ptr) |
void * | operator new (size_t sz) |
void * | operator new (size_t sz, void *vp) |
void * | operator new[] (size_t sz) |
void * | operator new[] (size_t sz, void *vp) |
TObject & | operator= (const TObject &rhs) |
virtual void | Paint (Option_t *option="") |
virtual void | Pop () |
virtual void | Print (Option_t *option="") const |
virtual Int_t | Read (const char *name) |
virtual void | RecursiveRemove (TObject *obj) |
void | ResetBit (UInt_t f) |
virtual void | SaveAs (const char *filename="", Option_t *option="") const |
virtual void | SavePrimitive (std::ostream &out, Option_t *option="") |
void | SetBit (UInt_t f) |
void | SetBit (UInt_t f, Bool_t set) |
virtual void | SetDrawOption (Option_t *option="") |
virtual void | SetUniqueID (UInt_t uid) |
virtual void | SysError (const char *method, const char *msgfmt,...) const |
R__ALWAYS_INLINE Bool_t | TestBit (UInt_t f) const |
Int_t | TestBits (UInt_t f) const |
virtual void | UseCurrentStyle () |
virtual void | Warning (const char *method, const char *msgfmt,...) const |
virtual Int_t | Write (const char *name=0, Int_t option=0, Int_t bufsize=0) |
virtual Int_t | Write (const char *name=0, Int_t option=0, Int_t bufsize=0) const |
Protected Member Functions | |
void | add_histo (TH1 *histo) |
for merging with PROOF More... | |
void | add_tree (TTree *tree) |
void | create_output_file () |
void | FillTH1 (TH1 *h1, Double_t one, Double_t two) |
void | FillTH2 (TH2 *h2, Double_t one, Double_t two, Double_t three) |
void | FillTH3 (TH3 *h3, Double_t one, Double_t two, Double_t three, Double_t four) |
void | FillTProfile (TProfile *h1, Double_t one, Double_t two, Double_t three) |
void | FillTProfile2D (TProfile2D *h2, Double_t one, Double_t two, Double_t three, Double_t four) |
void | SetCombinedOutputFile (const TString &filename) |
void | SetUpAuxEventChain () |
![]() | |
virtual void | DoError (int level, const char *location, const char *fmt, va_list va) const |
void | MakeZombie () |
Protected Attributes | |
KVEvent * | AuxEvent |
[optional] events in fAuxChain More... | |
TBranch * | b_Event |
List of branches. More... | |
KVEvent * | Event |
Declaration of leaf types. More... | |
TTree * | fAuxChain |
[optional] pointer to another TTree or TChain which may be used during analysis More... | |
KVString | fBranchName |
name of branch which contains events to analyse More... | |
TTree * | fChain |
pointer to the analyzed TTree or TChain More... | |
KVString | fCombinedOutputFile |
name for ROOT file containing histos and/or trees produced by analysis More... | |
Bool_t | fDisableCreateTreeFile |
used with PROOF More... | |
Long64_t | fEventsRead |
number of events read More... | |
Long64_t | fEventsReadInterval |
interval at which to print number of events read More... | |
Bool_t | fFirstEvent |
set to kFALSE after first event is read More... | |
Bool_t | fGlobalVariableAbortEventAnalysis |
KVUniqueNameList | fGlobalVariables |
Lists of global variables with different selection criteria. More... | |
Bool_t | fNotifyCalled |
avoid multiple calls to Notify/InitRun More... | |
KVUserAnalysisOptionList | fOptionList |
parsed list of options given to TTree::Process More... | |
KVParticleCondition | fPartCond |
(optional) conditions for selecting particles More... | |
KVString | fPartName |
(optional) classname for upcasting in KVParticleCondition::Optimize More... | |
Long64_t | fTreeEntry |
current tree entry number More... | |
KVHashList | lhisto |
list of histograms added with AddHisto More... | |
KVHashList | ltree |
list of trees added with AddTree More... | |
TProofOutputFile * | mergeFile = nullptr |
output file for trees and histos More... | |
TFile * | writeFile = nullptr |
![]() | |
EAbort | fAbort |
TList * | fInput |
TObject * | fObject |
TString | fOption |
TSelectorList * | fOutput |
Long64_t | fStatus |
![]() | |
kOnlyPrepStep | |
Additional Inherited Members | |
![]() | |
enum | EAbort |
![]() | |
enum | EDeprecatedStatusBits |
enum | EStatusBits |
![]() | |
static TSelector * | GetSelector (const char *filename) |
static Bool_t | IsStandardDraw (const char *selec) |
![]() | |
static Longptr_t | GetDtorOnly () |
static Bool_t | GetObjectStat () |
static void | SetDtorOnly (void *obj) |
static void | SetObjectStat (Bool_t stat) |
![]() | |
kAbortFile | |
kAbortProcess | |
kContinue | |
![]() | |
kBitMask | |
kCanDelete | |
kCannotPick | |
kHasUUID | |
kInconsistent | |
kInvalidObject | |
kIsOnHeap | |
kIsReferenced | |
kMustCleanup | |
kNoContextMenu | |
kNotDeleted | |
kObjInCanvas | |
kOverwrite | |
kSingleKey | |
kWriteDelete | |
kZombie | |
#include <KVEventSelector.h>
|
inline |
Definition at line 231 of file KVEventSelector.h.
for merging with PROOF
Declare a histogram to be used in analysis. This method must be called when using PROOF.
Definition at line 496 of file KVEventSelector.cpp.
Declare a TTree to be used in analysis. This method must be called when using PROOF.
Definition at line 515 of file KVEventSelector.cpp.
Add a global variable to the list of variables for the analysis.
"class_name"
must be the name of a valid class inheriting from KVVarGlob, e.g. any of the default global variable classes defined as part of the standard KaliVeda package (see the global variables module), or the name of a user-defined class (see below).
"name"
is a unique name for the new global variable object which will be created and added to the internal list of global variables. This name can be used to retrieve the object (see GetGV()) in the user's analysis.
Returns pointer to new global variable object in case more than the usual default initialisation is necessary.
The user may use her own global variables in an analysis class, without having to add them to the main libraries. If the given class name is not known, it is assumed to be a user-defined class and we attempt to compile and load the class from the user's source code. For this to work, the user must:
$HOME/.rootrc
add the following line:It is assumed that MyNewVarGlob.h
and MyNewVarGlob.cpp
will be found in $HOME/myVarGlobs
(in this example).
Definition at line 353 of file KVEventSelector.cpp.
Add the global variable "vg" to the default list of variables for the analysis.
This is equivalent to GetGVList()->Add( vg ).
Definition at line 367 of file KVEventSelector.h.
|
inline |
Create a new list of global variables with given name and an optional particle selection.
[in] | list_name | name of new list, can be used to retrieve list with GetGVList() |
[in] | selection | [optional] selection criteria for particles to be used by global variables, default is no selection |
Definition at line 335 of file KVEventSelector.h.
|
inline |
Add a user histogram to the analysis. The name of the histogram can later be used in calls to FillHisto().
To use, supply a specific histogram type, HistoType, and all necessary arguments for the appropriate constructor. The method returns the address of the newly-created histogram as a pointer of type HistoType*:
Definition at line 411 of file KVEventSelector.h.
Definition at line 403 of file KVEventSelector.h.
Add TTree with given name and title to list of TTree to be filled by user's analysis.
Definition at line 589 of file KVEventSelector.cpp.
Definition at line 431 of file KVEventSelector.h.
AbstractMethod("Analysis");
Reimplemented in KVEventFiltering, and KVDataQualityAuditSelector.
Definition at line 322 of file KVEventSelector.h.
Check whether the end of run is reached for the current tree
Definition at line 391 of file KVEventSelector.h.
Need to parse options here for use in Terminate Also, on PROOF, any KVDataAnalyser instance has to be passed to the workers via the TSelector input list.
Reimplemented from TSelector.
Definition at line 25 of file KVEventSelector.cpp.
|
virtual |
Testing whether EndRun() should be called.
Reimplemented in KVFAZIASelector.
Definition at line 242 of file KVEventSelector.cpp.
|
protected |
Create the file for saving histos and/or trees created during analysis.
The name of the file must first be set using SetJobOutputFileName()
Definition at line 536 of file KVEventSelector.cpp.
Definition at line 577 of file KVEventSelector.cpp.
|
inlinevirtual |
Reimplemented in KVEventFiltering, and KVDataQualityAuditSelector.
Definition at line 331 of file KVEventSelector.h.
|
inlinevirtual |
Reimplemented in KVEventFiltering, and KVDataQualityAuditSelector.
Definition at line 327 of file KVEventSelector.h.
Fill 1D histogram with named bins.
Definition at line 640 of file KVEventSelector.cpp.
void KVEventSelector::FillHisto | ( | const Char_t * | histo_name, |
Double_t | one, | ||
Double_t | two = 1 , |
||
Double_t | three = 1 , |
||
Double_t | four = 1 |
||
) |
Find in the list, if there is an histogram named "sname" If not print an error message If yes redirect to the right method according to its closest mother class to fill it
Definition at line 607 of file KVEventSelector.cpp.
Definition at line 658 of file KVEventSelector.cpp.
Definition at line 682 of file KVEventSelector.cpp.
|
protected |
Definition at line 705 of file KVEventSelector.cpp.
|
protected |
Definition at line 670 of file KVEventSelector.cpp.
|
protected |
Definition at line 694 of file KVEventSelector.cpp.
Filltree method, the tree named tree_name has to be declared with AddTTree(TTree*) method
if no sname="", all trees in the list is filled
Definition at line 787 of file KVEventSelector.cpp.
|
inline |
Definition at line 282 of file KVEventSelector.h.
Reimplemented from TSelector.
Reimplemented in KVFAZIASelector.
Definition at line 251 of file KVEventSelector.h.
|
inline |
Definition at line 296 of file KVEventSelector.h.
|
inline |
Definition at line 304 of file KVEventSelector.h.
|
inline |
Definition at line 259 of file KVEventSelector.h.
Definition at line 255 of file KVEventSelector.h.
Access the global variable with name "name" in the default list of global variables for the analysis.
This is equivalent to GetGVList()->GetGV( name ).
Definition at line 378 of file KVEventSelector.h.
Access the named list of global variables
If the list_name = "default" and no global variable lists have been defined, this will automatically create the default list, for which the default selection is only 'OK' particles (this will change in future to default selection = no selection)
Definition at line 347 of file KVEventSelector.h.
Access the named list of global variables
Definition at line 362 of file KVEventSelector.h.
Definition at line 482 of file KVEventSelector.cpp.
const KVHashList * KVEventSelector::GetHistoList | ( | ) | const |
return the list of created trees
Definition at line 469 of file KVEventSelector.cpp.
Definition at line 462 of file KVEventSelector.h.
|
inlinevirtual |
Reimplemented from TSelector.
Definition at line 271 of file KVEventSelector.h.
return the tree named tree_name
Definition at line 769 of file KVEventSelector.cpp.
const KVHashList * KVEventSelector::GetTreeList | ( | ) | const |
return the list of created trees
Definition at line 756 of file KVEventSelector.cpp.
The Init() function is called when the selector needs to initialize a new tree or chain. Typically here the branch addresses and branch pointers of the tree will be set. It is normally not necessary to make changes to the generated code, but the routine can be extended by the user if needed. Init() will be called many times when running on PROOF (once per file to be processed). Set object pointer
Reimplemented from TSelector.
Reimplemented in KVReconEventSelector, KVINDRAEventSelector, and KVFAZIASelector.
Definition at line 871 of file KVEventSelector.cpp.
|
inlinevirtual |
Reimplemented in KVEventFiltering, and KVDataQualityAuditSelector.
Definition at line 314 of file KVEventSelector.h.
Set up a "friend" TTree/TChain containing KVEvent-derived objects in branch 'branchname' N.B. this is not a "friend" in the sense of TTree::AddFriend, the main TTree and the "friend" TTree can have different numbers of entries
After calling this method at the beginning of the analysis, you can access any of the events stored in the "friend" by doing:
Definition at line 921 of file KVEventSelector.cpp.
Reimplemented in KVEventFiltering, KVDataQualityAuditSelector, and KVDataQualityAuditSelector_E789.
Definition at line 318 of file KVEventSelector.h.
Definition at line 458 of file KVEventSelector.h.
|
virtual |
The Notify() function is called when a new file is opened. This can be either for a new TTree in a TChain or when when a new TTree is started when using PROOF. It is normally not necessary to make changes to the generated code, but the routine can be extended by the user if needed. The return value is currently not used.
Reimplemented from TSelector.
Reimplemented in KVFAZIASelector.
Definition at line 952 of file KVEventSelector.cpp.
|
virtual |
Analyse comma-separated list of options given to TTree::Process and store all "option=value"
pairs in fOptionList. Options can then be accessed using IsOptGiven(), GetOptString(), etc.
This method is called by SlaveBegin
Reimplemented in KVFAZIASelector.
Definition at line 837 of file KVEventSelector.cpp.
The Process() function is called for each entry in the tree (or possibly keyed object in the case of PROOF) to be processed. The entry argument specifies which entry in the currently loaded tree is to be processed. It can be passed to either KVEventSelector::GetEntry() or TBranch::GetEntry() to read either all or the required parts of the data. When processing keyed objects with PROOF, the object is already loaded and is available via the fObject pointer.
This function should contain the "body" of the analysis. It can contain simple or elaborate selection criteria, run algorithms on the data of the event and typically fill histograms.
Processing will abort cleanly if static flag fCleanAbort has been set by some external controlling process.
Use fStatus to set the return value of TTree::Process().
The return value is currently not used.
Reimplemented from TSelector.
Definition at line 173 of file KVEventSelector.cpp.
|
virtual |
Use this method if you change e.g. the particle selection criteria in your Analysis() method and want to recalculate the values of all global variables for your new selection.
WARNING: the global variables are calculated automatically for you for each event before method Analysis() is called. In order for the correct particles to be included in this calculation, make sure that at the END of Analysis() you reset the selection criteria.
Definition at line 403 of file KVEventSelector.cpp.
|
inlinevirtual |
Definition at line 449 of file KVEventSelector.h.
|
inlinevirtual |
if user wants to read additional branches of the tree
Definition at line 471 of file KVEventSelector.h.
|
inlinevirtual |
If this analysis class is used in a context where the events correspond to a known reaction for which the kinematics have been defined, we can define the centre of mass ("CM") frame for the particles in the event.
Definition at line 286 of file KVEventSelector.h.
Definition at line 278 of file KVEventSelector.h.
Call in InitAnalysis() to set the name of the single output file containing all histograms and TTrees produced by analysis (but see also SetJobOutputFileName).
This is equivalent to running the analysis with option
but setting this option in InitAnalysis() will not work.
Note that if this method is not called/the option is not given, histograms and TTrees will be written in separate files.
try to initialise output file
Definition at line 203 of file KVEventSelector.h.
Reimplemented in KVReconEventSelector, and KVINDRAEventSelector.
Definition at line 294 of file KVEventSelector.h.
Definition at line 300 of file KVEventSelector.h.
Definition at line 236 of file KVEventSelector.h.
Reimplemented from TSelector.
Definition at line 267 of file KVEventSelector.h.
Call in InitAnalysis() to set the name of the output file containing all histograms and TTrees produced by analysis.
For interactive jobs or jos using PROOF, filename will be used for the ROOT file.
For jobs using a batch system to execute many jobs in parallel, we use the job name with the '.root' extension.
Definition at line 477 of file KVEventSelector.h.
Reimplemented from TSelector.
Definition at line 263 of file KVEventSelector.h.
Definition at line 454 of file KVEventSelector.h.
void KVEventSelector::SetParticleConditions | ( | const KVParticleCondition & | cond, |
const KVString & | upcast_class = "" |
||
) |
Use this method to set criteria for selecting particles to include in analysis. The criteria defined in the KVParticleCondition object will be applied to every particle and if they are not satisfied the particle's "OK" flag will be set to false, i.e. the particle's IsOK() method will return kFALSE, and the particle will not be included in iterations such as GetEvent()->GetNextParticle("OK"). Neither will the particle be included in the evaluation of any global variables.
This method must be called in the user's InitAnalysis() or InitRun() method.
If the methods used in the condition are not defined for KVNucleus, you can give the name of the class to which the methods refer (upcast_class), or you can set it before hand (SetParticleConditionsParticleClassName)
Definition at line 443 of file KVEventSelector.cpp.
Definition at line 398 of file KVEventSelector.h.
void KVEventSelector::SetTriggerConditionsForRun | ( | int | run | ) |
Call this method in your InitRun() method with the current run number in order to automatically reject events which are not consistent with the acquisition trigger.
Definition at line 815 of file KVEventSelector.cpp.
|
protected |
Called by SlaveBegin() when user gives the following options:
Definition at line 723 of file KVEventSelector.cpp.
The SlaveBegin() function is called after the Begin() function. When running with PROOF SlaveBegin() is called on each slave server. The tree argument is deprecated (on PROOF 0 is passed).
ParseOptions : Manage options passed as arguments
Called user method InitAnalysis where users can create trees or histos using the appropiate methods : CreateTrees and CreateMethods
Test the presence or not of such histo or tree to manage it properly
Reimplemented from TSelector.
Reimplemented in KVFAZIASelector.
Definition at line 79 of file KVEventSelector.cpp.
|
virtual |
The SlaveTerminate() function is called after all entries or objects have been processed. When running with PROOF SlaveTerminate() is called on each slave server.
Reimplemented from TSelector.
Definition at line 262 of file KVEventSelector.cpp.
|
virtual |
The Terminate() function is the last function to be called during a query. It always runs on the client, it can be used to present the results graphically or save the results to file.
This method call the user defined EndAnalysis where user can do what she wants
Reimplemented from TSelector.
Definition at line 299 of file KVEventSelector.cpp.
Definition at line 466 of file KVEventSelector.h.
|
inlinevirtual |
Reimplemented from TSelector.
Definition at line 240 of file KVEventSelector.h.
|
protected |
[optional] events in fAuxChain
Definition at line 161 of file KVEventSelector.h.
|
protected |
List of branches.
Definition at line 164 of file KVEventSelector.h.
|
protected |
Declaration of leaf types.
the events to be analysed
Definition at line 160 of file KVEventSelector.h.
|
protected |
[optional] pointer to another TTree or TChain which may be used during analysis
Definition at line 157 of file KVEventSelector.h.
|
protected |
name of branch which contains events to analyse
Definition at line 170 of file KVEventSelector.h.
|
protected |
pointer to the analyzed TTree or TChain
Definition at line 156 of file KVEventSelector.h.
|
protected |
name for ROOT file containing histos and/or trees produced by analysis
Definition at line 185 of file KVEventSelector.h.
|
protected |
used with PROOF
Definition at line 190 of file KVEventSelector.h.
|
protected |
number of events read
Definition at line 177 of file KVEventSelector.h.
|
protected |
interval at which to print number of events read
Definition at line 178 of file KVEventSelector.h.
|
protected |
set to kFALSE after first event is read
Definition at line 175 of file KVEventSelector.h.
|
protected |
Definition at line 168 of file KVEventSelector.h.
|
protected |
Lists of global variables with different selection criteria.
Definition at line 167 of file KVEventSelector.h.
|
protected |
avoid multiple calls to Notify/InitRun
Definition at line 184 of file KVEventSelector.h.
|
protected |
parsed list of options given to TTree::Process
Definition at line 188 of file KVEventSelector.h.
|
protected |
(optional) conditions for selecting particles
Definition at line 172 of file KVEventSelector.h.
|
protected |
(optional) classname for upcasting in KVParticleCondition::Optimize
Definition at line 173 of file KVEventSelector.h.
|
protected |
current tree entry number
Definition at line 179 of file KVEventSelector.h.
|
protected |
list of histograms added with AddHisto
Definition at line 181 of file KVEventSelector.h.
|
protected |
list of trees added with AddTree
Definition at line 182 of file KVEventSelector.h.
|
protected |
output file for trees and histos
Definition at line 192 of file KVEventSelector.h.
|
protected |
Definition at line 191 of file KVEventSelector.h.