///////////////////////////////////////////////////////// // This class has been automatically generated on // Mon Aug 12 15:14:06 2013 by ROOT version 5.34/00 // from TTree physics/physics // found on file: /home/straessn/data/tauNtuples/mc12_14TeV.147912.Pythia8_AU2CT10_jetjet_JZ2W.merge.NTUP_COMMON.e1996_s1715_s1691_r4741_p1573_tid01325509_00/NTUP_COMMON.01325509._000001.root.2 //////////////////////////////////////////////////////////

#ifndef CaloD3PD_h #define CaloD3PD_h

#include <TROOT.h> #include <TChain.h> #include <TFile.h>

// Header file for the classes stored in the TTree if any. #include

using namespace std;

// Fixed size dimensions of array or collections stored in the TTree if any.

class CaloD3PD { public : TTree *fChain; //!pointer to the analyzed TTree or TChain Int_t fCurrent; //!current Tree number in a TChain Int_t trig_L1_emtau_n; vector *trig_L1_emtau_eta; vector *trig_L1_emtau_phi; vector<vector > *trig_L1_emtau_thrNames; vector<vector > *trig_L1_emtau_thrValues; vector *trig_L1_emtau_core; vector *trig_L1_emtau_EMClus; vector *trig_L1_emtau_tauClus; vector *trig_L1_emtau_EMIsol; vector *trig_L1_emtau_hadIsol; vector *trig_L1_emtau_hadCore;

Int_t mc_n; vector *mc_pt; vector *mc_m; vector *mc_eta; vector *mc_phi; vector *mc_status; vector *mc_barcode; vector *mc_pdgId; vector *mc_charge; vector<vector > *mc_parents; vector<vector > *mc_children; vector *mc_vx_x; vector *mc_vx_y; vector *mc_vx_z; vector *mc_vx_barcode; vector<vector > *mc_child_index; vector<vector > *mc_parent_index;

Int_t tau_n; vector *tau_Et; vector *tau_pt; vector *tau_m; vector *tau_eta; vector *tau_phi;

Int_t scells_n; vector *scells_E; vector *scells_pt; vector *scells_eta; vector *scells_phi; vector *scells_QCells; vector *scells_GainCells; vector *scells_DetCells; vector *scells_TimeCells; vector *scells_IdCells;

Int_t jet_AntiKt4TopoEM_n; vector *jet_AntiKt4TopoEM_E; vector *jet_AntiKt4TopoEM_pt; vector *jet_AntiKt4TopoEM_m; vector *jet_AntiKt4TopoEM_eta; vector *jet_AntiKt4TopoEM_phi;

// List of branches

TBranch *b_jet_AntiKt4TopoEM_n; //! TBranch *b_jet_AntiKt4TopoEM_E; //! TBranch *b_jet_AntiKt4TopoEM_pt; //! TBranch *b_jet_AntiKt4TopoEM_m; //! TBranch *b_jet_AntiKt4TopoEM_eta; //! TBranch *b_jet_AntiKt4TopoEM_phi; //!

TBranch *b_tau_n; //! TBranch *b_tau_Et; //! TBranch *b_tau_pt; //! TBranch *b_tau_m; //! TBranch *b_tau_eta; //! TBranch *b_tau_phi;

TBranch *b_scells_n; //! TBranch *b_scells_E; //! TBranch *b_scells_pt; //! TBranch *b_scells_eta; //! TBranch *b_scells_phi; //! TBranch *b_scells_QCells; //! TBranch *b_scells_GainCells; //! TBranch *b_scells_DetCells; //! TBranch *b_scells_TimeCells; //! TBranch *b_scells_IdCells; //!

TBranch *b_trig_L1_emtau_n; //! TBranch *b_trig_L1_emtau_eta; //! TBranch *b_trig_L1_emtau_phi; //! TBranch *b_trig_L1_emtau_thrNames; //! TBranch *b_trig_L1_emtau_thrValues; //! TBranch *b_trig_L1_emtau_core; //! TBranch *b_trig_L1_emtau_EMClus; //! TBranch *b_trig_L1_emtau_tauClus; //! TBranch *b_trig_L1_emtau_EMIsol; //! TBranch *b_trig_L1_emtau_hadIsol; //! TBranch *b_trig_L1_emtau_hadCore; //!

TBranch *b_mc_n; //! TBranch *b_mc_pt; //! TBranch *b_mc_m; //! TBranch *b_mc_eta; //! TBranch *b_mc_phi; //! TBranch *b_mc_status; //! TBranch *b_mc_barcode; //! TBranch *b_mc_pdgId; //! TBranch *b_mc_charge; //! TBranch *b_mc_parents; //! TBranch *b_mc_children; //! TBranch *b_mc_vx_x; //! TBranch *b_mc_vx_y; //! TBranch *b_mc_vx_z; //! TBranch *b_mc_vx_barcode; //! TBranch *b_mc_child_index; //! TBranch *b_mc_parent_index; //!

CaloD3PD(TTree *tree=0); virtual ~CaloD3PD(); virtual Int_t Cut(Long64_t entry); virtual Int_t GetEntry(Long64_t entry); virtual Long64_t LoadTree(Long64_t entry); virtual void Init(TTree *tree); virtual void Loop(); virtual Bool_t Notify(); virtual void Show(Long64_t entry = -1); };

#endif

#ifdef CaloD3PD_cxx CaloD3PD::CaloD3PD(TTree *tree) : fChain(0) { // if parameter tree is not specified (or zero), connect the file // used to generate this class and read the Tree. if (tree == 0) { //!//TFile f = (TFile)gROOT->GetListOfFiles()->FindObject("caloD3PD_from_esd_example.root"); TFile f = (TFile)gROOT->GetListOfFiles()->FindObject("SubSample1.root");

//I:/Cpp/RobertWolff/Bachelorarbeit/Samples/mc11_14TeV.105334.HerwigVBFH120tautaulh.digit.RDO.e940_s1321_d602/TheSample.root"); if (f || f->IsOpen()) { //!// f = new TFile("caloD3PD_from_esd_example.root"); f = new TFile("SubSample1.root");

//I:/Cpp/RobertWolff/Bachelorarbeit/Samples/mc11_14TeV.105334.HerwigVBFH120tautaulh.digit.RDO.e940_s1321_d602/TheSample.root"); } f->GetObject("caloD3PD",tree);

} Init(tree); }

CaloD3PD::~CaloD3PD() { if (fChain) return; delete fChain->GetCurrentFile(); }

Int_t CaloD3PD::GetEntry(Long64_t entry) { // Read contents of entry. if (fChain) return 0; return fChain->GetEntry(entry); } Long64_t CaloD3PD::LoadTree(Long64_t entry) { // Set the environment to read one entry if (fChain) return -5; Long64_t centry = fChain->LoadTree(entry); if (centry < 0) return centry; if (fChain->GetTreeNumber() = fCurrent) { fCurrent = fChain->GetTreeNumber(); Notify(); } return centry; } void CaloD3PD::Init(TTree *tree) { // 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 scells_E = 0; scells_pt = 0; scells_eta = 0; scells_phi = 0; scells_QCells = 0; scells_GainCells = 0; scells_DetCells = 0; scells_TimeCells = 0; scells_IdCells = 0;

mc_pt = 0; mc_m = 0; mc_eta = 0; mc_phi = 0; mc_status = 0; mc_barcode = 0; mc_pdgId = 0; mc_charge = 0; mc_parents = 0; mc_children = 0; mc_vx_x = 0; mc_vx_y = 0; mc_vx_z = 0; mc_vx_barcode = 0; mc_child_index = 0; mc_parent_index = 0;

jet_AntiKt4TopoEM_E = 0; jet_AntiKt4TopoEM_pt = 0; jet_AntiKt4TopoEM_m = 0; jet_AntiKt4TopoEM_eta = 0; jet_AntiKt4TopoEM_phi = 0;

/* AntiKt4TruthJets_E = 0; AntiKt4TruthJets_pt = 0; AntiKt4TruthJets_m = 0; AntiKt4TruthJets_eta = 0; AntiKt4TruthJets_phi = 0; */

trig_L1_emtau_eta = 0; trig_L1_emtau_phi = 0; trig_L1_emtau_thrNames = 0; trig_L1_emtau_thrValues = 0; trig_L1_emtau_core = 0; trig_L1_emtau_EMClus = 0; trig_L1_emtau_tauClus = 0; trig_L1_emtau_EMIsol = 0; trig_L1_emtau_hadIsol = 0; trig_L1_emtau_hadCore = 0;

tau_Et = 0; tau_pt = 0; tau_m = 0; tau_eta = 0; tau_phi = 0;

// Set branch addresses and branch pointers if (tree) return; fChain = tree; fCurrent = -1; fChain->SetMakeClass(1);

/*fChain->SetBranchAddress("RunNumber", &RunNumber, &b_RunNumber); fChain->SetBranchAddress("EventNumber", &EventNumber, &b_EventNumber); fChain->SetBranchAddress("timestamp", &timestamp, &b_timestamp); fChain->SetBranchAddress("timestamp_ns", &timestamp_ns, &b_timestamp_ns); fChain->SetBranchAddress("lbn", &lbn, &b_lbn); fChain->SetBranchAddress("bcid", &bcid, &b_bcid); fChain->SetBranchAddress("detmask0", &detmask0, &b_detmask0); fChain->SetBranchAddress("detmask1", &detmask1, &b_detmask1); fChain->SetBranchAddress("actualIntPerXing", &actualIntPerXing, &b_actualIntPerXing); fChain->SetBranchAddress("averageIntPerXing", &averageIntPerXing, &b_averageIntPerXing); fChain->SetBranchAddress("mc_channel_number", &mc_channel_number, &b_mc_channel_number); fChain->SetBranchAddress("mc_event_number", &mc_event_number, &b_mc_event_number); fChain->SetBranchAddress("mc_event_weight", &mc_event_weight, &b_mc_event_weight); */ fChain->SetBranchAddress("scells_n", &scells_n, &b_scells_n); fChain->SetBranchAddress("scells_E", &scells_E, &b_scells_E); fChain->SetBranchAddress("scells_pt", &scells_pt, &b_scells_pt); fChain->SetBranchAddress("scells_eta", &scells_eta, &b_scells_eta); fChain->SetBranchAddress("scells_phi", &scells_phi, &b_scells_phi); fChain->SetBranchAddress("scells_QCells", &scells_QCells, &b_scells_QCells); fChain->SetBranchAddress("scells_GainCells", &scells_GainCells, &b_scells_GainCells); fChain->SetBranchAddress("scells_DetCells", &scells_DetCells, &b_scells_DetCells); fChain->SetBranchAddress("scells_TimeCells", &scells_TimeCells, &b_scells_TimeCells); fChain->SetBranchAddress("scells_IdCells", &scells_IdCells, &b_scells_IdCells);

fChain->SetBranchAddress("mc_n", &mc_n, &b_mc_n); fChain->SetBranchAddress("mc_pt", &mc_pt, &b_mc_pt); fChain->SetBranchAddress("mc_m", &mc_m, &b_mc_m); fChain->SetBranchAddress("mc_eta", &mc_eta, &b_mc_eta); fChain->SetBranchAddress("mc_phi", &mc_phi, &b_mc_phi); fChain->SetBranchAddress("mc_status", &mc_status, &b_mc_status); fChain->SetBranchAddress("mc_barcode", &mc_barcode, &b_mc_barcode); fChain->SetBranchAddress("mc_pdgId", &mc_pdgId, &b_mc_pdgId); fChain->SetBranchAddress("mc_charge", &mc_charge, &b_mc_charge); fChain->SetBranchAddress("mc_parents", &mc_parents, &b_mc_parents); fChain->SetBranchAddress("mc_children", &mc_children, &b_mc_children); fChain->SetBranchAddress("mc_vx_x", &mc_vx_x, &b_mc_vx_x); fChain->SetBranchAddress("mc_vx_y", &mc_vx_y, &b_mc_vx_y); fChain->SetBranchAddress("mc_vx_z", &mc_vx_z, &b_mc_vx_z); fChain->SetBranchAddress("mc_vx_barcode", &mc_vx_barcode, &b_mc_vx_barcode); fChain->SetBranchAddress("mc_child_index", &mc_child_index, &b_mc_child_index); fChain->SetBranchAddress("mc_parent_index", &mc_parent_index, &b_mc_parent_index);

fChain->SetBranchAddress("trig_L1_emtau_n", &trig_L1_emtau_n, &b_trig_L1_emtau_n); fChain->SetBranchAddress("trig_L1_emtau_eta", &trig_L1_emtau_eta, &b_trig_L1_emtau_eta); fChain->SetBranchAddress("trig_L1_emtau_phi", &trig_L1_emtau_phi, &b_trig_L1_emtau_phi); fChain->SetBranchAddress("trig_L1_emtau_thrNames", &trig_L1_emtau_thrNames, &b_trig_L1_emtau_thrNames); fChain->SetBranchAddress("trig_L1_emtau_thrValues", &trig_L1_emtau_thrValues, &b_trig_L1_emtau_thrValues); fChain->SetBranchAddress("trig_L1_emtau_core", &trig_L1_emtau_core, &b_trig_L1_emtau_core); fChain->SetBranchAddress("trig_L1_emtau_EMClus", &trig_L1_emtau_EMClus, &b_trig_L1_emtau_EMClus); fChain->SetBranchAddress("trig_L1_emtau_tauClus", &trig_L1_emtau_tauClus, &b_trig_L1_emtau_tauClus); fChain->SetBranchAddress("trig_L1_emtau_EMIsol", &trig_L1_emtau_EMIsol, &b_trig_L1_emtau_EMIsol); fChain->SetBranchAddress("trig_L1_emtau_hadIsol", &trig_L1_emtau_hadIsol, &b_trig_L1_emtau_hadIsol); fChain->SetBranchAddress("trig_L1_emtau_hadCore", &trig_L1_emtau_hadCore, &b_trig_L1_emtau_hadCore);

fChain->SetBranchAddress("tau_n", &tau_n, &b_tau_n); fChain->SetBranchAddress("tau_Et", &tau_Et, &b_tau_Et); fChain->SetBranchAddress("tau_pt", &tau_pt, &b_tau_pt); fChain->SetBranchAddress("tau_m", &tau_m, &b_tau_m); fChain->SetBranchAddress("tau_eta", &tau_eta, &b_tau_eta); fChain->SetBranchAddress("tau_phi", &tau_phi, &b_tau_phi);

fChain->SetBranchAddress("jet_AntiKt4TopoEM_n", &jet_AntiKt4TopoEM_n, &b_jet_AntiKt4TopoEM_n); fChain->SetBranchAddress("jet_AntiKt4TopoEM_E", &jet_AntiKt4TopoEM_E, &b_jet_AntiKt4TopoEM_E); fChain->SetBranchAddress("jet_AntiKt4TopoEM_pt", &jet_AntiKt4TopoEM_pt, &b_jet_AntiKt4TopoEM_pt); fChain->SetBranchAddress("jet_AntiKt4TopoEM_m", &jet_AntiKt4TopoEM_m, &b_jet_AntiKt4TopoEM_m); fChain->SetBranchAddress("jet_AntiKt4TopoEM_eta", &jet_AntiKt4TopoEM_eta, &b_jet_AntiKt4TopoEM_eta); fChain->SetBranchAddress("jet_AntiKt4TopoEM_phi", &jet_AntiKt4TopoEM_phi, &b_jet_AntiKt4TopoEM_phi);

Notify(); }

Bool_t CaloD3PD::Notify() { // 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.

return kTRUE; }

void CaloD3PD::Show(Long64_t entry) { // Print contents of entry. // If entry is not specified, print current entry if (fChain) return; fChain->Show(entry); } Int_t CaloD3PD::Cut(Long64_t entry) { // This function may be called from Loop. // returns 1 if entry is accepted. // returns -1 otherwise. return 1; } #endif // #ifdef CaloD3PD_cxx

Edit | Attach | Watch | Print version | History: r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r1 - 2013-08-14 - OlgaNovgorodova
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Main All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback