| 31 |
#include <TTree.h> |
#include <TTree.h> |
| 32 |
#include <TFriendElement.h> |
#include <TFriendElement.h> |
| 33 |
#include <TChain.h> |
#include <TChain.h> |
| 34 |
|
#include <TChainElement.h> |
| 35 |
#include <TFile.h> |
#include <TFile.h> |
| 36 |
#include <TList.h> |
#include <TList.h> |
| 37 |
#include <TKey.h> |
#include <TKey.h> |
| 39 |
#include <TSystemDirectory.h> |
#include <TSystemDirectory.h> |
| 40 |
#include <TSQLServer.h> |
#include <TSQLServer.h> |
| 41 |
|
|
| 42 |
|
#include <stdlib.h> |
| 43 |
#include <iostream> |
#include <iostream> |
| 44 |
|
#include <iomanip> |
| 45 |
|
using namespace std; |
| 46 |
|
|
| 47 |
#define NCLONES 10 |
#define NCLONES 10 |
| 48 |
|
|
| 112 |
TTree* run_tree_clone; |
TTree* run_tree_clone; |
| 113 |
TChain* sel_tree; |
TChain* sel_tree; |
| 114 |
TTree* sel_tree_clone; |
TTree* sel_tree_clone; |
| 115 |
|
|
| 116 |
|
// ------------------------------------------- |
| 117 |
|
// variables to store total live and dead time |
| 118 |
|
// ------------------------------------------- |
| 119 |
|
ULong64_t totdltime[3];// 0=live 1=dead 2=n.events |
| 120 |
|
|
| 121 |
// --------------------------------- |
// --------------------------------- |
| 122 |
// variables to retrieve level0 info |
// variables to retrieve level0 info |
| 123 |
// --------------------------------- |
// --------------------------------- |
| 195 |
|
|
| 196 |
Bool_t RUN; |
Bool_t RUN; |
| 197 |
|
|
| 198 |
|
Bool_t ISGP; //GP simulation |
| 199 |
|
|
| 200 |
|
|
| 201 |
Int_t SELLI; //trees of selected events (there is a selection list) |
Int_t SELLI; //trees of selected events (there is a selection list) |
| 202 |
|
|
| 203 |
void Initialize(); |
void Initialize(); |
| 222 |
void GetWhichTrees(TFile*); |
void GetWhichTrees(TFile*); |
| 223 |
|
|
| 224 |
TTree* GetPamTree(TFile*,TString); |
TTree* GetPamTree(TFile*,TString); |
| 225 |
TTree* GetPamTree(TFile* f){return GetPamTree(f,"");}; |
TTree* GetPamTree(TFile* f){return GetPamTree(f,"");}; |
| 226 |
|
|
| 227 |
TList* GetListOfLevel2Files(TString, TString); |
TList* GetListOfLevel2Files(TString, TString); |
| 228 |
Bool_t CheckLevel2File(TString); |
Bool_t CheckLevel2File(TString); |
| 229 |
TChain* GetPamTree(TList*,TString); |
TChain* GetPamTree(TList*,TString); |
| 230 |
TChain* GetPamTree(TString ddir,TString list,TString detlist){ return GetPamTree(GetListOfLevel2Files(ddir,list),detlist); }; |
TChain* GetPamTree(TString ddir,TString list,TString detlist){ return GetPamTree(GetListOfLevel2Files(ddir,list),detlist); }; |
| 231 |
TChain* GetPamTree(TString ddir,TString list){ return GetPamTree(GetListOfLevel2Files(ddir,list),""); }; |
TChain* GetPamTree(TString ddir,TString list){ return GetPamTree(GetListOfLevel2Files(ddir,list),""); }; |
| 232 |
|
TChain* AddFriend(TString); |
| 233 |
|
|
| 234 |
TTree* GetRunTree(TFile*); |
TTree* GetRunTree(TFile*); |
| 235 |
TChain* GetRunTree(TList*); |
TChain* GetRunTree(TList*); |
| 353 |
|
|
| 354 |
Int_t IsSELLI(){return SELLI;}; //trees of selected events (there is a selection list) |
Int_t IsSELLI(){return SELLI;}; //trees of selected events (there is a selection list) |
| 355 |
|
|
| 356 |
|
Bool_t IsGP(){return ISGP;}; |
| 357 |
|
|
| 358 |
|
void SetGP(Bool_t tt){ISGP=tt;}; |
| 359 |
|
|
| 360 |
|
|
| 361 |
ClassDef(PamLevel2,1); |
ClassDef(PamLevel2,1); |
| 362 |
}; |
}; |
| 363 |
|
|