KaliVeda
Toolkit for HIC analysis
Loading...
Searching...
No Matches
KVOldINDRASelector Class Reference

Detailed Description

Former base analysis class for INDRA data.

This class has been automatically generated (Mon Feb 23 13:13:30 2004 by ROOT version3.10/02) from TChain tree/

Obsolete, kept for backwards compatibility only (very very old analysis classes)

Definition at line 46 of file KVOldINDRASelector.h.

#include <KVOldINDRASelector.h>

Inheritance diagram for KVOldINDRASelector:

Public Member Functions

 KVOldINDRASelector (TTree *tree=0)
 ctor
 
virtual ~KVOldINDRASelector ()
 
virtual KVVarGlobAddGV (const Char_t *class_name, const Char_t *name)
 
virtual void AddGV (KVVarGlob *)
 
virtual Bool_t Analysis ()
 
virtual Bool_t AtEndOfRun (void)
 
void Begin (TTree *tree)
 
virtual void BuildEventList (void)
 
virtual void ChangeFragmentMasses (UInt_t mass_formula)
 
 ClassDef (KVOldINDRASelector, 0)
 
virtual void CreateHistos ()
 
virtual void CreateTrees ()
 
virtual void EndAnalysis ()
 
virtual void EndRun ()
 
void FillHisto (KVString sname, Double_t one, Double_t two=1, Double_t three=1, Double_t four=1)
 
void FillTree (KVString sname="")
 
virtual const Char_tGetDataSelector (void)
 
virtual const Char_tGetDataSelectorFileName (void)
 
KVINDRAReconEventGetEvent ()
 
Int_t GetEventNumber ()
 
virtual KVVarGlobGetGV (const Char_t *) const
 
virtual KVGVListGetGVList (void)
 
TH1GetHisto (const Char_t *name)
 
KVHashListGetHistoList ()
 
virtual TString GetOpt (const Char_t *option) const
 
TListGetOutputList () const
 
TTreeGetTree (const Char_t *name)
 
virtual Long64_t GetTreeEntry () const
 
KVHashListGetTreeList ()
 
void Init (TTree *tree)
 
virtual void InitAnalysis ()
 
virtual void InitRun ()
 
virtual Bool_t IsOptGiven (const Char_t *option)
 Returns kTRUE if the option 'opt' has been set.
 
virtual void LoadDataSelector (void)
 
Bool_t Notify ()
 
Bool_t Process (Long64_t entry)
 
virtual void RecalculateGlobalVariables ()
 
virtual void SaveCurrentDataSelection (void)
 
void SetCurrentRun (KVINDRADBRun *r)
 
virtual void SetDataSelector (const Char_t *dataSel="")
 
virtual void SetGVList (KVGVList *list)
 handling global variables for analysis
 
void SetInputList (TList *input)
 
void SetObject (TObject *obj)
 
virtual void SetOpt (const Char_t *option, const Char_t *value)
 Set a value for an option.
 
void SetOption (const char *option)
 
virtual void SetParticleConditions (const KVParticleCondition &)
 
void SlaveBegin (TTree *tree)
 
void SlaveTerminate ()
 Function called at the end of the event loop in each PROOF slave.
 
void Terminate ()
 
virtual void UnsetOpt (const Char_t *opt)
 Removes the option 'opt' from the internal lists, as if it had never been set.
 
Int_t Version () const
 
virtual void WriteHistoToFile (KVString filename="FileFromKVOldINDRASelector.root", Option_t *option="recreate")
 
virtual void WriteTreeToFile (KVString filename="FileFromKVOldINDRASelector.root", Option_t *option="recreate")
 If no filename is specified, assume that the current directory is writable.
 
- Public Member Functions inherited from TSelector
 TSelector ()
 
 ~TSelector () override
 
virtual void Abort (const char *why, EAbort what=kAbortProcess)
 
virtual EAbort GetAbort () const
 
virtual Int_t GetEntry (Long64_t, Int_t=0)
 
virtual TListGetInputList () const
 
const char * GetOption () const override
 
virtual Long64_t GetStatus () const
 
virtual void ImportOutput (TList *output)
 
TClassIsA () const override
 
Bool_t Notify () override
 
virtual Bool_t ProcessCut (Long64_t)
 
virtual void ProcessFill (Long64_t)
 
virtual void ResetAbort ()
 
virtual void SetStatus (Long64_t status)
 
void Streamer (TBuffer &) override
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
- Public Member Functions inherited from TObject
 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 TObjectClone (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 TObjectDrawClone (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=nullptr)
 
virtual void Execute (TMethod *method, TObjArray *params, Int_t *error=nullptr)
 
virtual void ExecuteEvent (Int_t event, Int_t px, Int_t py)
 
virtual void Fatal (const char *method, const char *msgfmt,...) const
 
virtual TObjectFindObject (const char *name) const
 
virtual TObjectFindObject (const TObject *obj) const
 
virtual Option_tGetDrawOption () 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)
 
Bool_t IsDestructed () const
 
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 *vp)
 
void operator delete[] (void *ptr)
 
void operator delete[] (void *ptr, void *vp)
 
voidoperator new (size_t sz)
 
voidoperator new (size_t sz, void *vp)
 
voidoperator new[] (size_t sz)
 
voidoperator new[] (size_t sz, void *vp)
 
TObjectoperator= (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)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
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=nullptr, Int_t option=0, Int_t bufsize=0)
 
virtual Int_t Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0) const
 

Static Public Member Functions

static void Make (const Char_t *kvsname="MyOwnKVOldINDRASelector")
 Automatic generation of KVOldINDRASelector-derived class for KaliVeda analysis.
 
- Static Public Member Functions inherited from TSelector
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
static TSelectorGetSelector (const char *filename)
 
static Bool_t IsStandardDraw (const char *selec)
 
- Static Public Member Functions inherited from TObject
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
static Longptr_t GetDtorOnly ()
 
static Bool_t GetObjectStat ()
 
static void SetDtorOnly (void *obj)
 
static void SetObjectStat (Bool_t stat)
 

Private Types

enum  { kDeleteGVList = BIT(14) , kChangeMasses = BIT(15) }
 

Private Member Functions

void FillKVDalitz (KVDalitzPlot *h2, Double_t one, Double_t two, Double_t three)
 
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)
 
virtual KVINDRADBRunGetCurrentRun () const
 
KVINDRAReconEvent ** GetEventReference ()
 
void ParseOptions ()
 
void SetINDRAReconEventBranchName (const Char_t *br_name)
 

Private Attributes

TBranchb_data
 List of branches.
 
Int_t callnotif
 
KVINDRAReconEventdata
 Declaration of leaves types.
 
KVLockfile dataselector_lock
 for locking user's data selector file
 
TTreefChain
 pointer to the analyzed TTree or TChain
 
KVINDRADBRunfCurrentRun
 current run
 
Int_t fCurrentTreeNumber
 This is the current tree number.
 
TString fDataSelector
 Name of the KVDataSelector.
 
TEventListfEvtList
 this is the current event list.
 
KVDataSelectorfKVDataSelector
 KVDataSelector.
 
UInt_t fNewMassFormula
 new mass formula to apply to fragments, if required
 
KVNameValueList fOptionList
 parsed list of options given to TTree::Process
 
KVParticleConditionfPartCond
 (optional) conditions for selecting particles
 
Bool_tfTEVLexist
 tells if the TEventList exist for each run
 
TStopwatchfTimer
 used to time analysis
 
Long64_t fTreeEntry
 this is the current TTree entry number, i.e. the argument passed to TSelector::Process(Long64_t entry)
 
Long64_tfTreeOffset
 this is the current TTree offset table
 
KVGVListgvlist
 List of global variables.
 
KVHashListlhisto
 !
 
KVHashListltree
 !
 
Int_t NbTreeEntry
 
Bool_t needToCallEndRun
 tells if one needs to call EndRun
 
Bool_t needToSelect
 tells if one needs to build the TEventList
 
Int_t totentry
 

Static Private Attributes

static KVString fBranchName = "INDRAReconEvent"
 name of branch which contains KVINDRAReconEvent objects in the TTree
 

Additional Inherited Members

- Public Types inherited from TSelector
enum  EAbort
 
- Public Types inherited from TObject
enum  EDeprecatedStatusBits
 
enum  EStatusBits
 
- Public Attributes inherited from TSelector
 kAbortFile
 
 kAbortProcess
 
 kContinue
 
- Public Attributes inherited from TObject
 kBitMask
 
 kCanDelete
 
 kCannotPick
 
 kHasUUID
 
 kInconsistent
 
 kInvalidObject
 
 kIsOnHeap
 
 kIsReferenced
 
 kMustCleanup
 
 kNoContextMenu
 
 kNotDeleted
 
 kObjInCanvas
 
 kOverwrite
 
 kSingleKey
 
 kWriteDelete
 
 kZombie
 
- Protected Member Functions inherited from TObject
virtual void DoError (int level, const char *location, const char *fmt, va_list va) const
 
void MakeZombie ()
 
- Protected Attributes inherited from TSelector
EAbort fAbort
 
TListfInput
 
TObjectfObject
 
TString fOption
 
TSelectorListfOutput
 
Long64_t fStatus
 
- Protected Attributes inherited from TObject
 kOnlyPrepStep
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private
Enumerator
kDeleteGVList 
kChangeMasses 

Definition at line 50 of file KVOldINDRASelector.h.

Constructor & Destructor Documentation

◆ KVOldINDRASelector()

KVOldINDRASelector::KVOldINDRASelector ( TTree tree = 0)

ctor

Definition at line 34 of file KVOldINDRASelector.cpp.

◆ ~KVOldINDRASelector()

KVOldINDRASelector::~KVOldINDRASelector ( )
virtual

dtor delete global variable list if it belongs to us, i.e. if created by a call to GetGVList

Definition at line 66 of file KVOldINDRASelector.cpp.

Member Function Documentation

◆ AddGV() [1/2]

KVVarGlob * KVOldINDRASelector::AddGV ( const Char_t class_name,
const Char_t name 
)
virtual

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 (in libKVvVarGlob.so). See "Class Reference" page on website for the available classes (listed by category under "Global Variables: ...").

USER-DEFINED GLOBAL VARIABLES 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:

(1) add to the ROOT macro path the directory where her class's source code is kept, e.g. in $HOME/.rootrc add the following line:

+Unix.*.Root.MacroPath: /root/myVarGlobs

(2) for each user-defined class, add a line to $HOME/.kvrootrc to define a "plugin". E.g. for a class called MyNewVarGlob,

+Plugin.KVVarGlob: MyNewVarGlob MyNewVarGlob MyNewVarGlob.cpp+ "MyNewVarGlob()"

It is assumed that MyNewVarGlob.h and MyNewVarGlob.cpp will be found in $HOME/myVarGlobs (in this example).

"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.

Definition at line 492 of file KVOldINDRASelector.cpp.

◆ AddGV() [2/2]

void KVOldINDRASelector::AddGV ( KVVarGlob vg)
virtual

Add the global variable "vg" to the list of variables for the analysis. This is equivalent to GetGVList()->Add( vg ).

Definition at line 436 of file KVOldINDRASelector.cpp.

◆ Analysis()

virtual Bool_t KVOldINDRASelector::Analysis ( )
inlinevirtual

Definition at line 190 of file KVOldINDRASelector.h.

◆ AtEndOfRun()

Bool_t KVOldINDRASelector::AtEndOfRun ( void  )
virtual

Check whether the end of run is reached for the current tree

Definition at line 768 of file KVOldINDRASelector.cpp.

◆ Begin()

void KVOldINDRASelector::Begin ( TTree tree)
virtual

Function called before starting the event loop. When running with PROOF Begin() is only called in the client. Get the option and the name of the DataSelector if needed

Reimplemented from TSelector.

Definition at line 175 of file KVOldINDRASelector.cpp.

◆ BuildEventList()

void KVOldINDRASelector::BuildEventList ( void  )
virtual

Builds the event list of the TChain by adding the event lists of each TTree. The event list contain the entry number of the TChain

Definition at line 644 of file KVOldINDRASelector.cpp.

◆ ChangeFragmentMasses()

void KVOldINDRASelector::ChangeFragmentMasses ( UInt_t  mass_formula)
virtual

Call this method in your InitAnalysis() if you want to replace the masses of nuclei in each event with masses calculated from the given formula (see KVNucleus::GetAFromZ).

As each event is read, the masses of nuclei with calculated (not measured) masses will be replaced with the new value, and the energy of the nucleus will be replaced with a new value taking into account the effect of the change in mass on the CsI energy calibration (if the particle stops in a CsI detector).

NB: the "CM" frame momenta/energies/angles calculated automatically before your Analysis() method is called will be calculated using the new masses and lab energies. Any subsequent change to the masses and/or energies you make in Analysis() will not change the "CM" momenta. If you change the laboratory energies etc. you must recalculate the c.m. momenta by calling e.g. GetEvent()->SetFrame("CM", ... )

Definition at line 1038 of file KVOldINDRASelector.cpp.

◆ ClassDef()

KVOldINDRASelector::ClassDef ( KVOldINDRASelector  ,
 
)

◆ CreateHistos()

void KVOldINDRASelector::CreateHistos ( )
virtual

Definition at line 1264 of file KVOldINDRASelector.cpp.

◆ CreateTrees()

void KVOldINDRASelector::CreateTrees ( )
virtual

Definition at line 1332 of file KVOldINDRASelector.cpp.

◆ EndAnalysis()

virtual void KVOldINDRASelector::EndAnalysis ( )
inlinevirtual

Definition at line 197 of file KVOldINDRASelector.h.

◆ EndRun()

virtual void KVOldINDRASelector::EndRun ( )
inlinevirtual

Definition at line 194 of file KVOldINDRASelector.h.

◆ FillHisto()

void KVOldINDRASelector::FillHisto ( KVString  sname,
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 1159 of file KVOldINDRASelector.cpp.

◆ FillKVDalitz()

void KVOldINDRASelector::FillKVDalitz ( KVDalitzPlot h2,
Double_t  one,
Double_t  two,
Double_t  three 
)
private

Definition at line 1241 of file KVOldINDRASelector.cpp.

◆ FillTH1()

void KVOldINDRASelector::FillTH1 ( TH1 h1,
Double_t  one,
Double_t  two 
)
private

Definition at line 1194 of file KVOldINDRASelector.cpp.

◆ FillTH2()

void KVOldINDRASelector::FillTH2 ( TH2 h2,
Double_t  one,
Double_t  two,
Double_t  three 
)
private

Definition at line 1218 of file KVOldINDRASelector.cpp.

◆ FillTH3()

void KVOldINDRASelector::FillTH3 ( TH3 h3,
Double_t  one,
Double_t  two,
Double_t  three,
Double_t  four 
)
private

Definition at line 1252 of file KVOldINDRASelector.cpp.

◆ FillTProfile()

void KVOldINDRASelector::FillTProfile ( TProfile h1,
Double_t  one,
Double_t  two,
Double_t  three 
)
private

Definition at line 1206 of file KVOldINDRASelector.cpp.

◆ FillTProfile2D()

void KVOldINDRASelector::FillTProfile2D ( TProfile2D h2,
Double_t  one,
Double_t  two,
Double_t  three,
Double_t  four 
)
private

Definition at line 1230 of file KVOldINDRASelector.cpp.

◆ FillTree()

void KVOldINDRASelector::FillTree ( KVString  sname = "")

Definition at line 1344 of file KVOldINDRASelector.cpp.

◆ GetCurrentRun()

virtual KVINDRADBRun * KVOldINDRASelector::GetCurrentRun ( ) const
inlineprivatevirtual

Definition at line 112 of file KVOldINDRASelector.h.

◆ GetDataSelector()

virtual const Char_t * KVOldINDRASelector::GetDataSelector ( void  )
inlinevirtual

Definition at line 223 of file KVOldINDRASelector.h.

◆ GetDataSelectorFileName()

const Char_t * KVOldINDRASelector::GetDataSelectorFileName ( void  )
virtual

Gets the name of the file where the TEventLists and the KVDataSelectors are stored.

Definition at line 1002 of file KVOldINDRASelector.cpp.

◆ GetEvent()

KVINDRAReconEvent * KVOldINDRASelector::GetEvent ( )
inline

Definition at line 135 of file KVOldINDRASelector.h.

◆ GetEventNumber()

Int_t KVOldINDRASelector::GetEventNumber ( )
inline

returns number of currently analysed event N.B. this may be different to the TTree/TChain entry number etc.

Definition at line 139 of file KVOldINDRASelector.h.

◆ GetEventReference()

KVINDRAReconEvent ** KVOldINDRASelector::GetEventReference ( )
inlineprivate

Definition at line 107 of file KVOldINDRASelector.h.

◆ GetGV()

KVVarGlob * KVOldINDRASelector::GetGV ( const Char_t name) const
virtual

Access the global variable with name "name" in the list of variables for the analysis. This is equivalent to GetGVList()->GetGV( name ).

Definition at line 453 of file KVOldINDRASelector.cpp.

◆ GetGVList()

KVGVList * KVOldINDRASelector::GetGVList ( void  )
virtual

Access to the internal list of global variables If the list does not exist, it is created. In this case it will be automatically deleted with the KVOldINDRASelector object.

Definition at line 418 of file KVOldINDRASelector.cpp.

◆ GetHisto()

TH1 * KVOldINDRASelector::GetHisto ( const Char_t name)

Definition at line 1143 of file KVOldINDRASelector.cpp.

◆ GetHistoList()

KVHashList * KVOldINDRASelector::GetHistoList ( )

Definition at line 1131 of file KVOldINDRASelector.cpp.

◆ GetOpt()

TString KVOldINDRASelector::GetOpt ( const Char_t opt) const
virtual

Returns the value of the option Only use after checking existence of option with IsOptGiven(const Char_t* opt)

Definition at line 1424 of file KVOldINDRASelector.cpp.

◆ GetOutputList()

TList * KVOldINDRASelector::GetOutputList ( ) const
inlinevirtual

Reimplemented from TSelector.

Definition at line 176 of file KVOldINDRASelector.h.

◆ GetTree()

TTree * KVOldINDRASelector::GetTree ( const Char_t name)

Definition at line 1321 of file KVOldINDRASelector.cpp.

◆ GetTreeEntry()

Long64_t KVOldINDRASelector::GetTreeEntry ( ) const
virtual

Definition at line 627 of file KVOldINDRASelector.cpp.

◆ GetTreeList()

KVHashList * KVOldINDRASelector::GetTreeList ( )

Definition at line 1309 of file KVOldINDRASelector.cpp.

◆ Init()

void KVOldINDRASelector::Init ( TTree tree)
virtual

Reimplemented from TSelector.

Definition at line 88 of file KVOldINDRASelector.cpp.

◆ InitAnalysis()

virtual void KVOldINDRASelector::InitAnalysis ( )
inlinevirtual

Definition at line 184 of file KVOldINDRASelector.h.

◆ InitRun()

virtual void KVOldINDRASelector::InitRun ( )
inlinevirtual

Definition at line 187 of file KVOldINDRASelector.h.

◆ IsOptGiven()

Bool_t KVOldINDRASelector::IsOptGiven ( const Char_t option)
virtual

Returns kTRUE if the option 'opt' has been set.

Definition at line 1410 of file KVOldINDRASelector.cpp.

◆ LoadDataSelector()

void KVOldINDRASelector::LoadDataSelector ( void  )
virtual

Set the pointer of the KVDataSelector according to its name

Definition at line 800 of file KVOldINDRASelector.cpp.

◆ Make()

void KVOldINDRASelector::Make ( const Char_t kvsname = "MyOwnKVOldINDRASelector")
static

Automatic generation of KVOldINDRASelector-derived class for KaliVeda analysis.

Return pointer to tree containing pulser and laser events for the current run TTree* GetGeneData() { return fGeneData; }; //Return pointer to tree containing raw data for the current run TTree* GetRawData() { return fRawData; };

Definition at line 386 of file KVOldINDRASelector.cpp.

◆ Notify()

Bool_t KVOldINDRASelector::Notify ( )
virtual

Called when loading a new file. Get branch pointers.

Reimplemented from TObject.

Definition at line 134 of file KVOldINDRASelector.cpp.

◆ ParseOptions()

void KVOldINDRASelector::ParseOptions ( )
private

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 Begin

Definition at line 1453 of file KVOldINDRASelector.cpp.

◆ Process()

Bool_t KVOldINDRASelector::Process ( Long64_t  entry)
virtual

Reimplemented from TSelector.

Definition at line 232 of file KVOldINDRASelector.cpp.

◆ RecalculateGlobalVariables()

void KVOldINDRASelector::RecalculateGlobalVariables ( )
virtual

Use this method if you change e.g. the acceptable particle identification codes 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.

i.e. if in your InitAnalysis() you have: GetEvent()->AcceptIDCodes(kIDCode2|kIDCode3|kIDCode4);

at the beginning of Analysis() the variables have been calculated for all particles with codes 2-4. If you store these values somewhere and then change the code mask:

GetEvent()->AcceptIDCodes(kIDCode2|kIDCode3|kIDCode4|kIDCode6);

you can recalculate the global variable list for particles with codes 2-4 & 6:

RecalculateGlobalVariables();

then at the end of Analysis(), after storing the new values of the variables, you should reset the code mask:

GetEvent()->AcceptIDCodes(kIDCode2|kIDCode3|kIDCode4);

which will be used for the next event read for processing.

Definition at line 584 of file KVOldINDRASelector.cpp.

◆ SaveCurrentDataSelection()

void KVOldINDRASelector::SaveCurrentDataSelection ( void  )
virtual

Save the newly built TEventList in the DataSelection root file

Definition at line 926 of file KVOldINDRASelector.cpp.

◆ SetCurrentRun()

void KVOldINDRASelector::SetCurrentRun ( KVINDRADBRun r)
inline

Definition at line 150 of file KVOldINDRASelector.h.

◆ SetDataSelector()

virtual void KVOldINDRASelector::SetDataSelector ( const Char_t dataSel = "")
inlinevirtual

Definition at line 219 of file KVOldINDRASelector.h.

◆ SetGVList()

void KVOldINDRASelector::SetGVList ( KVGVList list)
virtual

handling global variables for analysis

Use a user-defined list of global variables for the analysis. In this case it is the user's responsibility to delete the list at the end of the analysis.

Definition at line 403 of file KVOldINDRASelector.cpp.

◆ SetINDRAReconEventBranchName()

void KVOldINDRASelector::SetINDRAReconEventBranchName ( const Char_t br_name)
inlineprivate

Definition at line 117 of file KVOldINDRASelector.h.

◆ SetInputList()

void KVOldINDRASelector::SetInputList ( TList input)
inlinevirtual

Reimplemented from TSelector.

Definition at line 172 of file KVOldINDRASelector.h.

◆ SetObject()

void KVOldINDRASelector::SetObject ( TObject obj)
inlinevirtual

Reimplemented from TSelector.

Definition at line 168 of file KVOldINDRASelector.h.

◆ SetOpt()

void KVOldINDRASelector::SetOpt ( const Char_t option,
const Char_t value 
)
virtual

Set a value for an option.

Definition at line 1397 of file KVOldINDRASelector.cpp.

◆ SetOption()

void KVOldINDRASelector::SetOption ( const char *  option)
inlinevirtual

Reimplemented from TSelector.

Definition at line 164 of file KVOldINDRASelector.h.

◆ SetParticleConditions()

void KVOldINDRASelector::SetParticleConditions ( const KVParticleCondition cond)
virtual

Use this method to set criteria for selecting particles (other than the identification or calibration quality codes - see KVINDRAReconEvent::AcceptIDCodes and KVINDRAReconEvent::AcceptECodes).

The criteria defined in the KVParticleCondition object will be applied to every particle which has the right quality codes 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 or event selection criteria (see KVDataSelector).

This method must be called in the user's InitAnalysis() or InitRun() method.

EXAMPLES: To include only particles having a time marker between 90 and 110:

KVParticleCondition cd("_NUC_->GetTimeMarker()>=90 && _NUC_->GetTimeMarker()<=110"); SetParticleConditions( cd );

To include only Z=1 particles having a time marker between 90 and 110, Z>1 particles with time markers between 80 and 120:

KVParticleCondition tm1("_NUC_->GetTimeMarker()>=90 && _NUC_->GetTimeMarker()<=110"); KVParticleCondition tm2("_NUC_->GetTimeMarker()>=80 && _NUC_->GetTimeMarker()<=120"); KVParticleCondition z1("_NUC_->GetZ()==1"); KVParticleCondition zgt1("_NUC_->GetZ()>1"); KVParticleCondition cd = (z1 && tm1) || (zgt1 && tm2); SetParticleConditions( cd );

Definition at line 1090 of file KVOldINDRASelector.cpp.

◆ SlaveBegin()

void KVOldINDRASelector::SlaveBegin ( TTree tree)
virtual

Function called before starting the event loop. When running with PROOF SlaveBegin() is called in each slave Initialize the tree branches. Init(tree); TString option = GetOption();

Reimplemented from TSelector.

Definition at line 202 of file KVOldINDRASelector.cpp.

◆ SlaveTerminate()

void KVOldINDRASelector::SlaveTerminate ( )
virtual

Function called at the end of the event loop in each PROOF slave.

Reimplemented from TSelector.

Definition at line 324 of file KVOldINDRASelector.cpp.

◆ Terminate()

void KVOldINDRASelector::Terminate ( )
virtual

Function called at the end of the event loop. When running with PROOF Terminate() is only called in the client.

Reimplemented from TSelector.

Definition at line 337 of file KVOldINDRASelector.cpp.

◆ UnsetOpt()

void KVOldINDRASelector::UnsetOpt ( const Char_t opt)
virtual

Removes the option 'opt' from the internal lists, as if it had never been set.

Definition at line 1438 of file KVOldINDRASelector.cpp.

◆ Version()

Int_t KVOldINDRASelector::Version ( ) const
inlinevirtual

Reimplemented from TSelector.

Definition at line 146 of file KVOldINDRASelector.h.

◆ WriteHistoToFile()

void KVOldINDRASelector::WriteHistoToFile ( KVString  filename = "FileFromKVOldINDRASelector.root",
Option_t option = "recreate" 
)
virtual

If no filename is specified, assume that the current directory is writable if filename correspond to an already opened file, write in it if not open/create it, depending on the option ("recreate" by default) and write in it

Definition at line 1280 of file KVOldINDRASelector.cpp.

◆ WriteTreeToFile()

void KVOldINDRASelector::WriteTreeToFile ( KVString  filename = "FileFromKVOldINDRASelector.root",
Option_t option = "recreate" 
)
virtual

If no filename is specified, assume that the current directory is writable.

Definition at line 1368 of file KVOldINDRASelector.cpp.

Member Data Documentation

◆ b_data

TBranch* KVOldINDRASelector::b_data
private

List of branches.

Definition at line 62 of file KVOldINDRASelector.h.

◆ callnotif

Int_t KVOldINDRASelector::callnotif
private

Definition at line 55 of file KVOldINDRASelector.h.

◆ data

KVINDRAReconEvent* KVOldINDRASelector::data
private

Declaration of leaves types.

Definition at line 59 of file KVOldINDRASelector.h.

◆ dataselector_lock

KVLockfile KVOldINDRASelector::dataselector_lock
private

for locking user's data selector file

Definition at line 122 of file KVOldINDRASelector.h.

◆ fBranchName

KVString KVOldINDRASelector::fBranchName = "INDRAReconEvent"
staticprivate

name of branch which contains KVINDRAReconEvent objects in the TTree

Definition at line 96 of file KVOldINDRASelector.h.

◆ fChain

TTree* KVOldINDRASelector::fChain
private

pointer to the analyzed TTree or TChain

Definition at line 98 of file KVOldINDRASelector.h.

◆ fCurrentRun

KVINDRADBRun* KVOldINDRASelector::fCurrentRun
private

current run

Definition at line 90 of file KVOldINDRASelector.h.

◆ fCurrentTreeNumber

Int_t KVOldINDRASelector::fCurrentTreeNumber
private

This is the current tree number.

Definition at line 83 of file KVOldINDRASelector.h.

◆ fDataSelector

TString KVOldINDRASelector::fDataSelector
private

Name of the KVDataSelector.

Definition at line 85 of file KVOldINDRASelector.h.

◆ fEvtList

TEventList* KVOldINDRASelector::fEvtList
private

this is the current event list.

Definition at line 77 of file KVOldINDRASelector.h.

◆ fKVDataSelector

KVDataSelector* KVOldINDRASelector::fKVDataSelector
private

KVDataSelector.

Definition at line 86 of file KVOldINDRASelector.h.

◆ fNewMassFormula

UInt_t KVOldINDRASelector::fNewMassFormula
private

new mass formula to apply to fragments, if required

Definition at line 92 of file KVOldINDRASelector.h.

◆ fOptionList

KVNameValueList KVOldINDRASelector::fOptionList
private

parsed list of options given to TTree::Process

TTree* fGeneData; //!pointer to tree containing pulser and laser data for run TTree* fRawData; //!pointer to tree containing raw data for run

Definition at line 104 of file KVOldINDRASelector.h.

◆ fPartCond

KVParticleCondition* KVOldINDRASelector::fPartCond
private

(optional) conditions for selecting particles

Definition at line 94 of file KVOldINDRASelector.h.

◆ fTEVLexist

Bool_t* KVOldINDRASelector::fTEVLexist
private

tells if the TEventList exist for each run

Definition at line 88 of file KVOldINDRASelector.h.

◆ fTimer

TStopwatch* KVOldINDRASelector::fTimer
private

used to time analysis

Definition at line 69 of file KVOldINDRASelector.h.

◆ fTreeEntry

Long64_t KVOldINDRASelector::fTreeEntry
private

this is the current TTree entry number, i.e. the argument passed to TSelector::Process(Long64_t entry)

Definition at line 74 of file KVOldINDRASelector.h.

◆ fTreeOffset

Long64_t* KVOldINDRASelector::fTreeOffset
private

this is the current TTree offset table

Definition at line 81 of file KVOldINDRASelector.h.

◆ gvlist

KVGVList* KVOldINDRASelector::gvlist
private

List of global variables.

Definition at line 65 of file KVOldINDRASelector.h.

◆ lhisto

KVHashList* KVOldINDRASelector::lhisto
private

!

Definition at line 66 of file KVOldINDRASelector.h.

◆ ltree

KVHashList* KVOldINDRASelector::ltree
private

!

Definition at line 67 of file KVOldINDRASelector.h.

◆ NbTreeEntry

Int_t KVOldINDRASelector::NbTreeEntry
private

Definition at line 57 of file KVOldINDRASelector.h.

◆ needToCallEndRun

Bool_t KVOldINDRASelector::needToCallEndRun
private

tells if one needs to call EndRun

Definition at line 89 of file KVOldINDRASelector.h.

◆ needToSelect

Bool_t KVOldINDRASelector::needToSelect
private

tells if one needs to build the TEventList

Definition at line 87 of file KVOldINDRASelector.h.

◆ totentry

Int_t KVOldINDRASelector::totentry
private

Definition at line 56 of file KVOldINDRASelector.h.