KaliVeda
1.13/01
Heavy-Ion Analysis Toolkit
|
GUI for simple intuitive analysis of data in TTree ,.
In .kvrootrc file, user can configure the following options, corresponding to check boxes in the interface:
KVTreeAnalyzer.LogScale: off KVTreeAnalyzer.UserBinning: off KVTreeAnalyzer.UserWeight: off KVTreeAnalyzer.NewCanvas: off KVTreeAnalyzer.Normalize: off KVTreeAnalyzer.Stats: off
Change value to 'on' if required.
Definition at line 146 of file KVTreeAnalyzer.h.
Public Member Functions | |
KVTreeAnalyzer (Bool_t nogui=kTRUE) | |
KVTreeAnalyzer (TTree *, Bool_t nogui=kFALSE) | |
virtual | ~KVTreeAnalyzer () |
Destructor. More... | |
void | AddSelectedHistos () |
void | AutoSaveHisto (TH1 *h) |
ClassDef (KVTreeAnalyzer, 5) void OpenSingleFile(TFile *file) | |
void | CombineSelectionsAnd () |
void | CombineSelectionsOr () |
void | Copy (TObject &obj) const |
void | CurrentSelection () |
Print the currently active selection (TEntryList set on TTree). More... | |
void | DeleteHisto (const Char_t *expr, const Char_t *selection, const Char_t *weight) |
void | DeleteSelectedHisto () |
Delete all currently selected histograms. More... | |
void | DeleteSelections () |
Delete the currently selected selection(s) More... | |
void | DeleteThis () |
void | DrawAsDalitz () |
void | DrawCut (TCutG *) |
void | DrawHisto (TObject *o, Bool_t gen=kTRUE) |
void | DrawHistogram (TH1 *histo, Bool_t same=false, Bool_t logscale=false) |
void | DrawLeaf (TObject *) |
Method called when user double-clicks a leaf/alias in list. More... | |
void | DrawLeafExpr () |
void | EnablePROOF (Bool_t yes=kTRUE) |
void | GenerateAlias () |
void | GenerateAllAliases (TCollection *list) |
Generate all user aliases in list which are not already defined. More... | |
void | GenerateAllHistograms (TCollection *) |
void | GenerateAllSelections (TCollection *) |
For applying existing analysis to new data. More... | |
void | GenerateConstantXSecSelections (const char *name, Double_t sigmaTot, Double_t sigmaBin) |
void | GenerateSelection () |
TNamed * | GetAlias (const Char_t *expr) |
TChain * | GetChain () const |
Long64_t | GetEntriesInCurrentSelection () const |
TH1 * | GetHisto (const Char_t *expr, const Char_t *selection, const Char_t *weight="") |
KVHistogram * | GetHistoByTitle (const Char_t *title) |
TH1 * | GetHistogram (const Char_t *name) const |
Return histogram with given name. More... | |
const KVList * | GetHistoList () const |
TList * | GetHistosByData (const Char_t *expr) |
TList * | GetHistosBySelection (const Char_t *expr) |
void | GetHistosFromFile (TFile *file, const KVUnownedList &keys) |
Int_t | GetNx () |
Int_t | GetNxD () |
Int_t | GetNxF () |
Int_t | GetNy () |
Int_t | GetNyD () |
Bool_t | GetOrderedDalitz () |
TEntryList * | GetSelection (const Char_t *) |
Look for selection in list of selections. More... | |
const char * | GetWeight () |
Double_t | GetXmax () |
Double_t | GetXmaxF () |
Double_t | GetXmin () |
Double_t | GetXminF () |
Double_t | GetYmax () |
Double_t | GetYmin () |
void | GUIClosed () |
Called when graphical window is closed. More... | |
void | HandleHistoFileMenu (Int_t) |
void | HandleOptionsMenu (Int_t opt) |
void | HandleSelectionsMenu (Int_t) |
void | HistoAddition (Double_t c1=1, Double_t c2=1) |
void | HistoFileMenu_Apply () |
void | HistoFileMenu_OpenFriend () |
void | HistoSelectionChanged () |
Method called when user histo selection changes in GUI histogram list. More... | |
Bool_t | IsCurrentSelection (const Char_t *sel) |
Bool_t | IsPROOFEnabled () const |
Bool_t | IsPROOFEnabledForSelections () const |
void | LeafChanged () |
void | MakeAbsoluteIPScale (const char *name, Double_t sigmaTot) |
TH1 * | MakeHisto (const Char_t *expr, const Char_t *selection, Int_t nX, Int_t nY=0, const Char_t *weight="", Double_t xmin=-1, Double_t xmax=-1, Double_t ymin=-1, Double_t ymax=-1) |
TH1 * | MakeIntHisto (const Char_t *expr, const Char_t *selection, Int_t Xmin, Int_t Xmax, const Char_t *weight="") |
Bool_t | MakeSelection (const Char_t *selection) |
void | OpenAnyFile (const Char_t *filepath) |
void | OpenAnyFriendFile (const Char_t *filepath) |
void | OpenChain (const TString &treename, const TString &treetitle, const TSeqCollection *files) |
void | OpenGUI () |
Launch the GUI (unless fNoGui=kTRUE in which case this does nothing) More... | |
void | ReadFromFile (const Char_t *filename) |
open a previously saved analysis session. More... | |
void | ReadFromFile (TFile *f) |
open a previously saved analysis session. More... | |
void | ReapplyAnyFile (const Char_t *filepath) |
TH1 * | RemakeHisto (TH1 *h, const Char_t *expr, const Char_t *weight="") |
void | Save () |
void | SaveAs (const char *filename="", Option_t *option="") const |
void | SelectionChanged () |
Method called whenever the selected selection in the GUI list changes. More... | |
void | SetAlias (const Char_t *name, const Char_t *expr) |
void | SetApplySelection (Bool_t yes=kTRUE) |
void | SetAutoSaveHisto (Bool_t yes=kTRUE) |
void | SetDrawLog (Bool_t yes=kTRUE) |
void | SetDrawOption (Option_t *option="") |
void | SetDrawSame (Bool_t yes=kTRUE) |
void | SetNewCanvas (Bool_t yes=kTRUE) |
void | SetNormHisto (Bool_t yes=kTRUE) |
void | SetNormHistoEvents (Bool_t yes=kTRUE) |
void | SetProfileHisto (Bool_t yes=kTRUE) |
void | SetSelection (const Char_t *) |
void | SetSelection (TObject *) |
void | SetStatsHisto (Bool_t yes=kTRUE) |
void | SetTree (TTree *t) |
Connects a TChain for analysis. More... | |
void | SetTreeFileName (TTree *t) |
void | SetUpHistoAutoSave () |
void | SetUserBinning (Bool_t ub) |
void | SetUserWeight (Bool_t uw) |
void | ShowAliases () |
void | ShowHistos () |
void | ShowSelections () |
void | ShowVariables () |
void | UpdateEntryLists () |
regenerate entry lists for all selections More... | |
Public Member Functions inherited from TNamed | |
TNamed () | |
TNamed (const char *name, const char *title) | |
TNamed (const TNamed &named) | |
TNamed (const TString &name, const TString &title) | |
virtual | ~TNamed () |
virtual void | Clear (Option_t *option="") |
virtual TObject * | Clone (const char *newname="") const |
virtual Int_t | Compare (const TObject *obj) const |
virtual void | FillBuffer (char *&buffer) |
virtual const char * | GetName () const |
virtual const char * | GetTitle () const |
virtual ULong_t | Hash () const |
virtual Bool_t | IsSortable () const |
virtual void | ls (Option_t *option="") const |
TNamed & | operator= (const TNamed &rhs) |
virtual void | Print (Option_t *option="") const |
virtual void | SetName (const char *name) |
virtual void | SetNameTitle (const char *name, const char *title) |
virtual void | SetTitle (const char *title="") |
virtual Int_t | Sizeof () const |
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 | 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 char * | GetObjectInfo (Int_t px, Int_t py) const |
virtual Option_t * | GetOption () const |
virtual UInt_t | GetUniqueID () const |
virtual Bool_t | HandleTimer (TTimer *timer) |
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 |
R__ALWAYS_INLINE Bool_t | IsZombie () const |
void | MayNotUse (const char *method) const |
virtual Bool_t | Notify () |
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 Int_t | Read (const char *name) |
virtual void | RecursiveRemove (TObject *obj) |
void | ResetBit (UInt_t f) |
virtual void | SavePrimitive (std::ostream &out, Option_t *option="") |
void | SetBit (UInt_t f) |
void | SetBit (UInt_t f, Bool_t set) |
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 |
Static Public Member Functions | |
static KVTreeAnalyzer * | GetAnalyzer (const Char_t *title) |
static KVList * | GetListOfAnalyzers () |
static KVTreeAnalyzer * | OpenFile (const Char_t *filename, Bool_t nogui=kFALSE) |
Static Public Member Functions inherited from TObject | |
static Longptr_t | GetDtorOnly () |
static Bool_t | GetObjectStat () |
static void | SetDtorOnly (void *obj) |
static void | SetObjectStat (Bool_t stat) |
Private Types | |
enum | { MH_OPEN_FILE , MH_OPEN_CHAIN , MH_ADD_FRIEND , MH_SAVE_FILE , MH_SAVE , MH_CLOSE , MH_QUIT , OPT_PROOF , MH_APPLY_ANALYSIS , SEL_COMB_AND , SEL_COMB_OR , SEL_UPDATE , SEL_DELETE , SEL_GEN_CONST_XSEC } |
Private Member Functions | |
void | AddCut (TCutG *) |
void | AddHisto (TH1 *) |
void | AddSelection (TEntryList *) |
void | AnalysisSaveCheck () |
bool | DefineUserBinning () |
bool | DefineUserBinning1F () |
bool | DefineUserBinningD () |
bool | DefineWeight () |
void | FillLeafList () |
void | GenerateHistoTitle (TString &title, const Char_t *exp, const Char_t *sel, const Char_t *weight="") |
const Char_t * | get_leaf_type_name (const TNamed *l) |
const TGMainFrame * | GetMainWindow () const |
void | HistoFileMenu_Open () |
Open a previous analysis session. More... | |
void | HistoFileMenu_Save () |
void | init () |
Default initialization. More... | |
Bool_t | MethodNotCalled () |
void | OpenChain () |
Open a file or files containing TTrees to analyse. More... | |
void | ReconnectTree () |
Backwards compatibility: to read old analysis files. More... | |
void | ResetMethodCalled () |
void | SetAnalysisModifiedSinceLastSave (Bool_t) |
void | SetEntryList (TEntryList *) |
void | SetRelativePathToAnalysisFile (const Char_t *p) |
Static Private Attributes | |
static KVList * | fgAnalyzerList = new KVList(0) |
static list of all analyzers in memory More... | |
Additional Inherited Members | |
Public Types inherited from TObject | |
enum | EDeprecatedStatusBits |
enum | EStatusBits |
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 TNamed | |
TString | fName |
TString | fTitle |
Protected Attributes inherited from TObject | |
kOnlyPrepStep | |
#include <KVTreeAnalyzer.h>
|
private |
Enumerator | |
---|---|
MH_OPEN_FILE | |
MH_OPEN_CHAIN | |
MH_ADD_FRIEND | |
MH_SAVE_FILE | |
MH_SAVE | |
MH_CLOSE | |
MH_QUIT | |
OPT_PROOF | |
MH_APPLY_ANALYSIS | |
SEL_COMB_AND | |
SEL_COMB_OR | |
SEL_UPDATE | |
SEL_DELETE | |
SEL_GEN_CONST_XSEC |
Definition at line 200 of file KVTreeAnalyzer.h.
Default constructor - used when loading from a file. The 'nogui' option (default=kTRUE) controls whether or not to launch the graphical interface
Definition at line 108 of file KVTreeAnalyzer.cpp.
Initialize analyzer for a given TTree. (in fact we re-open the tree using a TChain) If 'nogui' option (default=kFALSE) is kTRUE we do not launch the graphical interface.
Definition at line 127 of file KVTreeAnalyzer.cpp.
|
virtual |
Destructor.
Definition at line 146 of file KVTreeAnalyzer.cpp.
Adds histogram to internal list of user histograms and updates GUI display
Definition at line 1157 of file KVTreeAnalyzer.cpp.
Adds histogram to internal list of user histograms and updates GUI display
Definition at line 1125 of file KVTreeAnalyzer.cpp.
void KVTreeAnalyzer::AddSelectedHistos | ( | ) |
Called when G_histo_add button is pressed There should be 2 histograms in fSelectedHistos We assume that both are of same type and have same binning etc.
Definition at line 2650 of file KVTreeAnalyzer.cpp.
|
private |
Adds selection to internal list of user histograms and updates GUI display
Definition at line 1141 of file KVTreeAnalyzer.cpp.
|
private |
if analysis has been modified since last save, open an invite to ask if user wants to save with current default filename
Definition at line 608 of file KVTreeAnalyzer.cpp.
Save currently displayed histo as an image file If 'same' checkbox is ticked, we use the same filename as used for the first histogram
Definition at line 3214 of file KVTreeAnalyzer.cpp.
KVTreeAnalyzer::ClassDef | ( | KVTreeAnalyzer | , |
5 | |||
) |
void KVTreeAnalyzer::CombineSelectionsAnd | ( | ) |
void MakeIPScale(); void GenerateIPSelection();
Method called when user hits 'combine selections' button in selections GUI. Generates new selection which is the intersection (logical AND) of the currently selected selections.
Definition at line 1669 of file KVTreeAnalyzer.cpp.
void KVTreeAnalyzer::CombineSelectionsOr | ( | ) |
Method called when user hits 'combine selections' button in selections GUI. Generates new selection which is the intersection (logical AND) of the currently selected selections.
Definition at line 1699 of file KVTreeAnalyzer.cpp.
This method copies the current state of 'this' object into 'obj' You should add here any member variables, for example: (supposing a member variable KVTreeAnalyzer::fToto) CastedObj.fToto = fToto; or CastedObj.SetToto( GetToto() );
Reimplemented from TNamed.
Definition at line 167 of file KVTreeAnalyzer.cpp.
void KVTreeAnalyzer::CurrentSelection | ( | ) |
Print the currently active selection (TEntryList set on TTree).
Definition at line 526 of file KVTreeAnalyzer.cpp.
|
private |
Definition at line 1877 of file KVTreeAnalyzer.cpp.
|
private |
Definition at line 1898 of file KVTreeAnalyzer.cpp.
|
private |
Definition at line 1915 of file KVTreeAnalyzer.cpp.
|
private |
Open dialogue box for user to fill required weight for histo
returns false if Cancel button is pressed
Definition at line 2191 of file KVTreeAnalyzer.cpp.
void KVTreeAnalyzer::DeleteHisto | ( | const Char_t * | expr, |
const Char_t * | selection, | ||
const Char_t * | weight | ||
) |
Definition at line 2605 of file KVTreeAnalyzer.cpp.
void KVTreeAnalyzer::DeleteSelectedHisto | ( | ) |
Delete all currently selected histograms.
Definition at line 2626 of file KVTreeAnalyzer.cpp.
void KVTreeAnalyzer::DeleteSelections | ( | ) |
Delete the currently selected selection(s)
Definition at line 1727 of file KVTreeAnalyzer.cpp.
|
inline |
Definition at line 325 of file KVTreeAnalyzer.h.
void KVTreeAnalyzer::DrawAsDalitz | ( | ) |
Definition at line 2071 of file KVTreeAnalyzer.cpp.
Definition at line 1318 of file KVTreeAnalyzer.cpp.
Method called when a user double-clicks a histogram in the GUI list.
Definition at line 1476 of file KVTreeAnalyzer.cpp.
Definition at line 1377 of file KVTreeAnalyzer.cpp.
Method called when user double-clicks a leaf/alias in list.
Definition at line 2212 of file KVTreeAnalyzer.cpp.
void KVTreeAnalyzer::DrawLeafExpr | ( | ) |
Method called when user hits 'draw' button in TTree GUI. If only one leaf/alias is selected, this actually calls DrawLeaf.
Definition at line 1944 of file KVTreeAnalyzer.cpp.
Definition at line 2313 of file KVTreeAnalyzer.cpp.
|
private |
Fills the GUI list with the names of all leaves in the TTree and any friend TTrees and all aliases defined by the user
Definition at line 557 of file KVTreeAnalyzer.cpp.
void KVTreeAnalyzer::GenerateAlias | ( | ) |
Method called when user hits 'return' in TTree leaf/alias GUI text-box Generates a new alias using the expression in the text-box.
Definition at line 1649 of file KVTreeAnalyzer.cpp.
void KVTreeAnalyzer::GenerateAllAliases | ( | TCollection * | list | ) |
Generate all user aliases in list which are not already defined.
Definition at line 3079 of file KVTreeAnalyzer.cpp.
void KVTreeAnalyzer::GenerateAllHistograms | ( | TCollection * | list | ) |
For every histogram in the list, we generate histograms with the same binning for the same expression, selection and weight if they don't already exist
Definition at line 3267 of file KVTreeAnalyzer.cpp.
void KVTreeAnalyzer::GenerateAllSelections | ( | TCollection * | list | ) |
For applying existing analysis to new data.
We take the title of every object in 'list' and generate the corresponding selection if it does not already exist
Definition at line 3246 of file KVTreeAnalyzer.cpp.
void KVTreeAnalyzer::GenerateConstantXSecSelections | ( | const char * | name, |
Double_t | sigmaTot, | ||
Double_t | sigmaBin | ||
) |
|
private |
PRIVATE utility method Encodes the histogram title for the desired expression and an optional selection. The expression and selection should be valid TTreeFormula strings (i.e. they use TTree leaves and/or alias names) If there is already an active selection (TEntryList set on TTree) then the corresponding selection expression will also be included in the title. The format of the resulting title string is one of the following:
"expr1[:expr2]" "expr1[:expr2] {selection}" "expr1[:expr2] {active selection}" "expr1[:expr2] {(active selection) && (selection)}"
If histogram is weighted, the weight is added such as:
"expr1:expr2 [weight] {active selection}"
Definition at line 211 of file KVTreeAnalyzer.cpp.
void KVTreeAnalyzer::GenerateSelection | ( | ) |
Method called when user hits 'return' in selection GUI text-box Takes expression from text-box and generates the corresponding selection which is added to the GUI list of selections.
Definition at line 1632 of file KVTreeAnalyzer.cpp.
Definition at line 1932 of file KVTreeAnalyzer.cpp.
Definition at line 363 of file KVTreeAnalyzer.h.
|
inlinestatic |
Definition at line 566 of file KVTreeAnalyzer.h.
|
inline |
Definition at line 581 of file KVTreeAnalyzer.h.
Long64_t KVTreeAnalyzer::GetEntriesInCurrentSelection | ( | ) | const |
Return number of entries (events) in the currently active selection, or the number of entries in the analysed TTree/TChain if no selection active
Definition at line 542 of file KVTreeAnalyzer.cpp.
TH1 * KVTreeAnalyzer::GetHisto | ( | const Char_t * | expr, |
const Char_t * | selection, | ||
const Char_t * | weight = "" |
||
) |
Definition at line 2575 of file KVTreeAnalyzer.cpp.
KVHistogram * KVTreeAnalyzer::GetHistoByTitle | ( | const Char_t * | title | ) |
Definition at line 2596 of file KVTreeAnalyzer.cpp.
Return histogram with given name.
Definition at line 411 of file KVTreeAnalyzer.cpp.
|
inline |
Definition at line 338 of file KVTreeAnalyzer.h.
fill and return TList with histos containing the given data which may be 1D ("mult", "zmax", etc.) or 2D ("zmax:mult") DELETE LIST AFTER USE
Definition at line 2534 of file KVTreeAnalyzer.cpp.
fill and return TList with histos using the given selection criteria DELETE LIST AFTER USE
Definition at line 2556 of file KVTreeAnalyzer.cpp.
void KVTreeAnalyzer::GetHistosFromFile | ( | TFile * | file, |
const KVUnownedList & | keys | ||
) |
Definition at line 2972 of file KVTreeAnalyzer.cpp.
|
inlinestatic |
Definition at line 562 of file KVTreeAnalyzer.h.
|
inlineprivate |
Definition at line 191 of file KVTreeAnalyzer.h.
|
inline |
void FitGum1(); void FitGum2(); void FitGum3(); void FitGausGum1(); void FitGausGum2(); void FitGausGum3();
Definition at line 492 of file KVTreeAnalyzer.h.
|
inline |
Definition at line 517 of file KVTreeAnalyzer.h.
|
inline |
Definition at line 530 of file KVTreeAnalyzer.h.
|
inline |
Definition at line 496 of file KVTreeAnalyzer.h.
|
inline |
Definition at line 521 of file KVTreeAnalyzer.h.
|
inline |
Definition at line 525 of file KVTreeAnalyzer.h.
TEntryList * KVTreeAnalyzer::GetSelection | ( | const Char_t * | selection | ) |
Look for selection in list of selections.
Definition at line 2304 of file KVTreeAnalyzer.cpp.
|
inline |
Definition at line 543 of file KVTreeAnalyzer.h.
|
inline |
Definition at line 504 of file KVTreeAnalyzer.h.
|
inline |
Definition at line 538 of file KVTreeAnalyzer.h.
|
inline |
Definition at line 500 of file KVTreeAnalyzer.h.
|
inline |
Definition at line 534 of file KVTreeAnalyzer.h.
|
inline |
Definition at line 512 of file KVTreeAnalyzer.h.
|
inline |
Definition at line 508 of file KVTreeAnalyzer.h.
void KVTreeAnalyzer::GUIClosed | ( | ) |
Called when graphical window is closed.
Definition at line 1110 of file KVTreeAnalyzer.cpp.
Definition at line 2732 of file KVTreeAnalyzer.cpp.
Definition at line 2813 of file KVTreeAnalyzer.cpp.
Definition at line 2781 of file KVTreeAnalyzer.cpp.
Definition at line 2689 of file KVTreeAnalyzer.cpp.
void KVTreeAnalyzer::HistoFileMenu_Apply | ( | ) |
Definition at line 2924 of file KVTreeAnalyzer.cpp.
|
private |
Open a previous analysis session.
Definition at line 2833 of file KVTreeAnalyzer.cpp.
void KVTreeAnalyzer::HistoFileMenu_OpenFriend | ( | ) |
Definition at line 2858 of file KVTreeAnalyzer.cpp.
|
private |
Definition at line 2945 of file KVTreeAnalyzer.cpp.
void KVTreeAnalyzer::HistoSelectionChanged | ( | ) |
Method called when user histo selection changes in GUI histogram list.
Definition at line 2272 of file KVTreeAnalyzer.cpp.
Default initialization.
Definition at line 59 of file KVTreeAnalyzer.cpp.
Returns kTRUE if "sel" corresponds to current active selection (i.e. entry list of TTree)
Definition at line 1562 of file KVTreeAnalyzer.cpp.
|
inline |
Definition at line 390 of file KVTreeAnalyzer.h.
|
inline |
Generation of TEntryList with PROOF only works from 20/11/2015 onwards Variable in .kvrootrc file KVTreeAnalyzer.PROOFSelections: on controls whether to use it or not (default: no/off/false)
Definition at line 394 of file KVTreeAnalyzer.h.
void KVTreeAnalyzer::LeafChanged | ( | ) |
Method called whenever the leaf/alias selection in the TTree GUI list changes. Updates the names of the leaves/aliases displayed next to the 'draw' button.
Definition at line 1795 of file KVTreeAnalyzer.cpp.
TH1 * KVTreeAnalyzer::MakeHisto | ( | const Char_t * | expr, |
const Char_t * | selection, | ||
Int_t | nX, | ||
Int_t | nY = 0 , |
||
const Char_t * | weight = "" , |
||
Double_t | xmin = -1 , |
||
Double_t | xmax = -1 , |
||
Double_t | ymin = -1 , |
||
Double_t | ymax = -1 |
||
) |
Create and fill a new histogram with the desired expression (expr="expr1[:expr2]" etc.) with the given selection (selection="" if no selection required). Any currently active selection (TEntryList set on TTree) will also be applied. The new histogram is not drawn but added to the internal list of histograms (see method AddHisto).
Histograms are automatically named 'h1', 'h2', etc. in order of creation. Histogram title is generated with method GenerateHistoTitle. Number of bins on X (and Y for a 2-D spectrum) are given. Axis limits are automatically adjusted to data unless given.
For 2-D spectra the initial drawing option is set to "COL"
If normalisation of spectra is required (fNormHisto = kTRUE) the histogram bin contents are divided by the integral (sum of weights).
Definition at line 275 of file KVTreeAnalyzer.cpp.
TH1 * KVTreeAnalyzer::MakeIntHisto | ( | const Char_t * | expr, |
const Char_t * | selection, | ||
Int_t | Xmin, | ||
Int_t | Xmax, | ||
const Char_t * | weight = "" |
||
) |
Like MakeHisto but only used for 1-D spectra of integer variables. The number of bins is Xmax-Xmin+1 and bins are defined over [x-0.5,x+0.5] for all values of x.
Histograms are automatically named 'Ih1', 'Ih2', etc. in order of creation.
Definition at line 352 of file KVTreeAnalyzer.cpp.
Generate a new user-selection (TEntryList) of events in the TTree according to the given selection expression (valid TTreeFormula expression using TTree leaf and/or alias names). The new selection is not applied immediately but added to the internal list of selections (see method AddSelection).
If there is already an active selection (TEntryList set on TTree) this will generate the composite selection, {(active selection) && (selection)}. The selection's title will then be in the following format:
"[(active selection) && ](selection)"
TEntryList objects are automatically named 'el1', 'el2', etc. in order of creation.
Definition at line 437 of file KVTreeAnalyzer.cpp.
|
inlineprivate |
Definition at line 298 of file KVTreeAnalyzer.h.
assuming filepath is the URL of a ROOT file containing a previously-saved analysis, open it and open the KVTreeAnalyzer object stored in it
Definition at line 3020 of file KVTreeAnalyzer.cpp.
assuming filepath is the URL of a ROOT file, open it and add the first TTree found in file as a friend of the current TTree Any histograms in the file are added to the list of histograms
Definition at line 3413 of file KVTreeAnalyzer.cpp.
|
private |
Open a file or files containing TTrees to analyse.
Definition at line 2879 of file KVTreeAnalyzer.cpp.
void KVTreeAnalyzer::OpenChain | ( | const TString & | treename, |
const TString & | treetitle, | ||
const TSeqCollection * | files | ||
) |
Open a TChain for analysis treename/title is the name/title of the TTree :) files is a list of objects with the names of the files in the chain
Definition at line 3045 of file KVTreeAnalyzer.cpp.
|
static |
STATIC method to open a previously saved analysis session.
Use: root[0] KVTreeAnalyzer* TA = KVTreeAnalyzer::OpenFile("my_analysis.root")
If option nogui=kTRUE the GUI will not be launched
Definition at line 1264 of file KVTreeAnalyzer.cpp.
void KVTreeAnalyzer::OpenGUI | ( | ) |
Launch the GUI (unless fNoGui=kTRUE in which case this does nothing)
Definition at line 692 of file KVTreeAnalyzer.cpp.
open a previously saved analysis session.
Definition at line 1287 of file KVTreeAnalyzer.cpp.
open a previously saved analysis session.
Definition at line 1300 of file KVTreeAnalyzer.cpp.
assuming filepath is the URL of a ROOT file, open it and, if no KVTreeAnalyzer object is found, open first TTree in file and apply all selections and generate all histograms which were made for this analysis. Any histograms in the file are added to the list of histograms. If filepath contains an existing analysis, we add to it any histograms/selections/aliases which are not defined
Definition at line 3107 of file KVTreeAnalyzer.cpp.
|
private |
Backwards compatibility: to read old analysis files.
Definition at line 1217 of file KVTreeAnalyzer.cpp.
Remake an existing histogram of data 'expr' using the current active selection If such a histogram already exists, we just return its address. We must have the same binning in the new as in the original histogram.
Definition at line 1582 of file KVTreeAnalyzer.cpp.
|
inlineprivate |
Definition at line 294 of file KVTreeAnalyzer.h.
void KVTreeAnalyzer::Save | ( | ) |
Definition at line 2330 of file KVTreeAnalyzer.cpp.
Override TObject::SaveAs We need to:
Reimplemented from TObject.
Definition at line 2346 of file KVTreeAnalyzer.cpp.
void KVTreeAnalyzer::SelectionChanged | ( | ) |
Method called whenever the selected selection in the GUI list changes.
Definition at line 1754 of file KVTreeAnalyzer.cpp.
Definition at line 3145 of file KVTreeAnalyzer.cpp.
Definition at line 643 of file KVTreeAnalyzer.cpp.
Definition at line 473 of file KVTreeAnalyzer.h.
Definition at line 424 of file KVTreeAnalyzer.h.
Definition at line 469 of file KVTreeAnalyzer.h.
Reimplemented from TObject.
Definition at line 445 of file KVTreeAnalyzer.h.
deselect 'new canvas' if it was selected
Definition at line 459 of file KVTreeAnalyzer.h.
|
private |
Modify currently active selection (TEntryList) Instead of calling fChain->SetEntryList(l); call this method which works with or without PROOF. When using PROOF, fChain->SetEntryList(nullptr) does not work (bug in TProofChain), the last selection remains active. This problem is corrected here.
Definition at line 669 of file KVTreeAnalyzer.cpp.
deselect 'same' if it was selected
Definition at line 450 of file KVTreeAnalyzer.h.
Definition at line 433 of file KVTreeAnalyzer.h.
Definition at line 439 of file KVTreeAnalyzer.h.
Definition at line 477 of file KVTreeAnalyzer.h.
Definition at line 285 of file KVTreeAnalyzer.h.
Definition at line 2294 of file KVTreeAnalyzer.cpp.
Method called when a selection is double-clicked in the GUI list. The required selection is passed as argument (address of TEntryList object) and becomes the currently active selection (TEntryList set on TTree). If the requested selection was already active, it is deactivated (remove TEntryList from TTree). The 'CURRENT SELECTION' message in the GUI status bar is updated.
Definition at line 501 of file KVTreeAnalyzer.cpp.
Definition at line 429 of file KVTreeAnalyzer.h.
Connects a TChain for analysis.
Definition at line 1201 of file KVTreeAnalyzer.cpp.
the Tree file name is used as the basis for the default analysis backup filename. for a TChain there may be many files with a common root. we look for this common root and replace any "wildcard" characters with "X" i.e. for files "run_001.root", "run_002.root", ..., "run_999.root" we will use "Analysis_run_XXX.root" as default name
Definition at line 1176 of file KVTreeAnalyzer.cpp.
void KVTreeAnalyzer::SetUpHistoAutoSave | ( | ) |
Open file dialog box for user to choose directory and image file-type for generating picture files of all histos as they are drawn
Definition at line 3181 of file KVTreeAnalyzer.cpp.
Definition at line 415 of file KVTreeAnalyzer.h.
Definition at line 419 of file KVTreeAnalyzer.h.
|
inline |
Definition at line 375 of file KVTreeAnalyzer.h.
|
inline |
Definition at line 379 of file KVTreeAnalyzer.h.
|
inline |
Definition at line 367 of file KVTreeAnalyzer.h.
|
inline |
Definition at line 371 of file KVTreeAnalyzer.h.
void KVTreeAnalyzer::UpdateEntryLists | ( | ) |
regenerate entry lists for all selections
Definition at line 2708 of file KVTreeAnalyzer.cpp.
|
private |
list of TTree aliases
Definition at line 275 of file KVTreeAnalyzer.h.
|
private |
used for automatic naming of TTree aliases
Definition at line 274 of file KVTreeAnalyzer.h.
|
private |
Definition at line 159 of file KVTreeAnalyzer.h.
|
private |
Definition at line 290 of file KVTreeAnalyzer.h.
|
private |
=kTRUE: apply current selection to existing histogram
Definition at line 237 of file KVTreeAnalyzer.h.
|
private |
directory for autosaving histos
Definition at line 243 of file KVTreeAnalyzer.h.
|
private |
=kTRUE: on draw, generate image file of current displayed histo
Definition at line 242 of file KVTreeAnalyzer.h.
|
private |
filetype for autosaving histos
Definition at line 244 of file KVTreeAnalyzer.h.
|
private |
Definition at line 155 of file KVTreeAnalyzer.h.
|
private |
Definition at line 152 of file KVTreeAnalyzer.h.
|
private |
=kTRUE: draw histograms with log-Y (1-D) or log-Z (2-D) scale
Definition at line 236 of file KVTreeAnalyzer.h.
|
private |
Definition at line 233 of file KVTreeAnalyzer.h.
|
private |
=kTRUE: draw histograms in same plot
Definition at line 234 of file KVTreeAnalyzer.h.
static list of all analyzers in memory
Definition at line 149 of file KVTreeAnalyzer.h.
|
private |
list of generated histograms
Definition at line 269 of file KVTreeAnalyzer.h.
|
private |
used for automatic naming of histograms
Definition at line 272 of file KVTreeAnalyzer.h.
|
private |
Definition at line 167 of file KVTreeAnalyzer.h.
|
private |
clones of leaves in TChain
Definition at line 164 of file KVTreeAnalyzer.h.
|
private |
GUI for handling histograms.
Definition at line 190 of file KVTreeAnalyzer.h.
|
private |
GUI for access to TTree leaves and aliases.
Definition at line 162 of file KVTreeAnalyzer.h.
|
private |
GUI for handling selections.
KVGumbelDistribution *GDfirst;//! KVGumbelDistribution *GDsecond;//! KVGumbelDistribution *GDthird;//! KVGausGumDistribution *GausGum1;//! KVGausGumDistribution *GausGum2;//! KVGausGumDistribution *GausGum3;//!
Definition at line 263 of file KVTreeAnalyzer.h.
|
private |
Definition at line 220 of file KVTreeAnalyzer.h.
|
private |
Definition at line 219 of file KVTreeAnalyzer.h.
|
private |
Definition at line 195 of file KVTreeAnalyzer.h.
|
private |
Definition at line 196 of file KVTreeAnalyzer.h.
|
private |
allows to know if context menu methods are called
Definition at line 278 of file KVTreeAnalyzer.h.
|
private |
=kTRUE: draw each histogram in a new canvas
Definition at line 238 of file KVTreeAnalyzer.h.
|
private |
=kTRUE if no graphical interface is required
Definition at line 276 of file KVTreeAnalyzer.h.
|
private |
=kTRUE: generate normalised histograms (normalise to integral of histo)
Definition at line 239 of file KVTreeAnalyzer.h.
|
private |
=kTRUE: generate normalised histograms (normalise to number of events)
Definition at line 240 of file KVTreeAnalyzer.h.
|
private |
Definition at line 181 of file KVTreeAnalyzer.h.
|
private |
Definition at line 186 of file KVTreeAnalyzer.h.
|
private |
Definition at line 183 of file KVTreeAnalyzer.h.
|
private |
Definition at line 181 of file KVTreeAnalyzer.h.
|
private |
Definition at line 186 of file KVTreeAnalyzer.h.
|
private |
Definition at line 198 of file KVTreeAnalyzer.h.
|
private |
Definition at line 187 of file KVTreeAnalyzer.h.
|
private |
Definition at line 174 of file KVTreeAnalyzer.h.
|
private |
Definition at line 292 of file KVTreeAnalyzer.h.
|
private |
Definition at line 284 of file KVTreeAnalyzer.h.
|
private |
Definition at line 235 of file KVTreeAnalyzer.h.
|
private |
Definition at line 158 of file KVTreeAnalyzer.h.
|
private |
Definition at line 197 of file KVTreeAnalyzer.h.
|
private |
Definition at line 245 of file KVTreeAnalyzer.h.
|
private |
Definition at line 168 of file KVTreeAnalyzer.h.
|
private |
Definition at line 267 of file KVTreeAnalyzer.h.
|
private |
used for automatic naming of selections
Definition at line 273 of file KVTreeAnalyzer.h.
|
private |
list of TEntryList user selections
Definition at line 156 of file KVTreeAnalyzer.h.
|
private |
Definition at line 199 of file KVTreeAnalyzer.h.
|
private |
=kTRUE: display histo stats box
Definition at line 241 of file KVTreeAnalyzer.h.
|
private |
for backwards compatibility
Definition at line 154 of file KVTreeAnalyzer.h.
|
private |
name of file containing analyzed TTree
Definition at line 271 of file KVTreeAnalyzer.h.
|
private |
name of analyzed TTree
Definition at line 270 of file KVTreeAnalyzer.h.
|
private |
Definition at line 176 of file KVTreeAnalyzer.h.
|
private |
Definition at line 178 of file KVTreeAnalyzer.h.
|
private |
Definition at line 179 of file KVTreeAnalyzer.h.
|
private |
Definition at line 169 of file KVTreeAnalyzer.h.
|
private |
Definition at line 182 of file KVTreeAnalyzer.h.
|
private |
Definition at line 184 of file KVTreeAnalyzer.h.
|
private |
Definition at line 182 of file KVTreeAnalyzer.h.
|
private |
Definition at line 184 of file KVTreeAnalyzer.h.
|
private |
Definition at line 170 of file KVTreeAnalyzer.h.
|
private |
Definition at line 182 of file KVTreeAnalyzer.h.
|
private |
Definition at line 182 of file KVTreeAnalyzer.h.
|
private |
Definition at line 171 of file KVTreeAnalyzer.h.
|
private |
Definition at line 172 of file KVTreeAnalyzer.h.
|
private |
Definition at line 247 of file KVTreeAnalyzer.h.
|
private |
Definition at line 248 of file KVTreeAnalyzer.h.
|
private |
Definition at line 249 of file KVTreeAnalyzer.h.
|
private |
Definition at line 250 of file KVTreeAnalyzer.h.
|
private |
Definition at line 251 of file KVTreeAnalyzer.h.
|
private |
Definition at line 252 of file KVTreeAnalyzer.h.
|
private |
Definition at line 223 of file KVTreeAnalyzer.h.
|
private |
Definition at line 225 of file KVTreeAnalyzer.h.
|
private |
Definition at line 231 of file KVTreeAnalyzer.h.
|
private |
Definition at line 175 of file KVTreeAnalyzer.h.
|
private |
Definition at line 222 of file KVTreeAnalyzer.h.
|
private |
Definition at line 232 of file KVTreeAnalyzer.h.
|
private |
Definition at line 226 of file KVTreeAnalyzer.h.
|
private |
Definition at line 227 of file KVTreeAnalyzer.h.
|
private |
Definition at line 228 of file KVTreeAnalyzer.h.
|
private |
Definition at line 229 of file KVTreeAnalyzer.h.
|
private |
Definition at line 173 of file KVTreeAnalyzer.h.
|
private |
Definition at line 224 of file KVTreeAnalyzer.h.
|
private |
Definition at line 230 of file KVTreeAnalyzer.h.
|
private |
Definition at line 177 of file KVTreeAnalyzer.h.
|
private |
GUI list of histograms.
Definition at line 221 of file KVTreeAnalyzer.h.
|
private |
Definition at line 254 of file KVTreeAnalyzer.h.
|
private |
Definition at line 166 of file KVTreeAnalyzer.h.
|
private |
Definition at line 165 of file KVTreeAnalyzer.h.
|
private |
GUI list of TTree leaves and aliases.
Definition at line 163 of file KVTreeAnalyzer.h.
|
private |
Definition at line 246 of file KVTreeAnalyzer.h.
|
private |
Definition at line 253 of file KVTreeAnalyzer.h.
|
private |
status bar in selections GUI
Definition at line 265 of file KVTreeAnalyzer.h.
|
private |
Definition at line 266 of file KVTreeAnalyzer.h.
|
private |
GUI list of TEntryList selections.
Definition at line 264 of file KVTreeAnalyzer.h.
|
private |
Definition at line 282 of file KVTreeAnalyzer.h.
|
private |
Definition at line 280 of file KVTreeAnalyzer.h.
|
private |
Definition at line 281 of file KVTreeAnalyzer.h.