////////////////////////////////////////////////////////// // This class has been automatically generated on // Fri Aug 19 14:36:04 2016 by ROOT version 6.06/01 // from TTree hto2taus/hto2taus // found on file: ../output.root ////////////////////////////////////////////////////////// #ifndef hto2taus_h #define hto2taus_h #include #include #include // Header file for the classes stored in the TTree if any. #include "vector" #include "Math/GenVector/PxPyPzE4D.h" #include "TMatrixT.h" class hto2taus { public : TTree *fChain; //!pointer to the analyzed TTree or TChain Int_t fCurrent; //!current Tree number in a TChain // Fixed size dimensions of array or collections stored in the TTree if any. const Int_t kMaxvector_double = 1; const Int_t kMaxvmu_p4 = 303; const Int_t kMaxvector_int = 1; const Int_t kMaxvector_int = 1; const Int_t kMaxvector_vector_double_ = 1; const Int_t kMaxvector_double = 1; const Int_t kMaxvector_double = 1; const Int_t kMaxvector_double = 1; const Int_t kMaxvector_bool = 1; const Int_t kMaxvector_bool = 1; const Int_t kMaxvel_p4 = 412; const Int_t kMaxvector_int = 1; const Int_t kMaxvector_int = 1; const Int_t kMaxvector_double = 1; const Int_t kMaxvector_double = 1; const Int_t kMaxvector_double = 1; const Int_t kMaxvector_double = 1; const Int_t kMaxvector_bool = 1; const Int_t kMaxvector_bool = 1; const Int_t kMaxvector_int = 1; const Int_t kMaxvector_bool = 1; const Int_t kMaxvtau_p4 = 1076; const Int_t kMaxvector_int = 1; const Int_t kMaxvector_int = 1; const Int_t kMaxvector_vector_double_ = 1; const Int_t kMaxvector_double = 1; const Int_t kMaxvector_double = 1; const Int_t kMaxvjet_p4 = 2898; const Int_t kMaxvector_int = 1; const Int_t kMaxvector_int = 1; const Int_t kMaxvector_vector_bool_ = 1; const Int_t kMaxvector_double = 1; const Int_t kMaxvector_double = 1; const Int_t kMaxvector_double = 1; const Int_t kMaxvmet_p4 = 2000; // Declaration of leaf types Int_t evt; Int_t lumi; Int_t run; Double_t rho; Int_t npu; Int_t nvtx; Float_t vpv_xyz; Int_t vmu_p4_; Double_t vmu_p4_fCoordinates_fX[kMaxvmu_p4]; //[vmu_p4_] Double_t vmu_p4_fCoordinates_fY[kMaxvmu_p4]; //[vmu_p4_] Double_t vmu_p4_fCoordinates_fZ[kMaxvmu_p4]; //[vmu_p4_] Double_t vmu_p4_fCoordinates_fT[kMaxvmu_p4]; //[vmu_p4_] Float_t vmu_genmatch; Float_t vmu_pdgid; Float_t vmu_id; Float_t vmu_iso; Float_t vmu_dxyz; Float_t vmu_corr; Float_t vmu_veto1; Float_t vmu_veto2; Int_t vel_p4_; Double_t vel_p4_fCoordinates_fX[kMaxvel_p4]; //[vel_p4_] Double_t vel_p4_fCoordinates_fY[kMaxvel_p4]; //[vel_p4_] Double_t vel_p4_fCoordinates_fZ[kMaxvel_p4]; //[vel_p4_] Double_t vel_p4_fCoordinates_fT[kMaxvel_p4]; //[vel_p4_] Float_t vel_genmatch; Float_t vel_pdgid; Float_t vel_id; Float_t vel_iso; Float_t vel_dxyz; Float_t vel_corr; Float_t vel_veto1; Float_t vel_veto2; Float_t vel_gsftrkhit; Float_t vel_passconveto; Int_t vtau_p4_; Double_t vtau_p4_fCoordinates_fX[kMaxvtau_p4]; //[vtau_p4_] Double_t vtau_p4_fCoordinates_fY[kMaxvtau_p4]; //[vtau_p4_] Double_t vtau_p4_fCoordinates_fZ[kMaxvtau_p4]; //[vtau_p4_] Double_t vtau_p4_fCoordinates_fT[kMaxvtau_p4]; //[vtau_p4_] Float_t vtau_genmatch; Float_t vtau_pdgid; Float_t vtau_idiso; Float_t vtau_pltc; Float_t vtau_corr; Int_t vjet_p4_; Double_t vjet_p4_fCoordinates_fX[kMaxvjet_p4]; //[vjet_p4_] Double_t vjet_p4_fCoordinates_fY[kMaxvjet_p4]; //[vjet_p4_] Double_t vjet_p4_fCoordinates_fZ[kMaxvjet_p4]; //[vjet_p4_] Double_t vjet_p4_fCoordinates_fT[kMaxvjet_p4]; //[vjet_p4_] Float_t vjet_genmatch; Float_t vjet_pdgid; Float_t vjet_id; Float_t vjet_csv; Float_t vjet_pu; Float_t vjet_rawfactor; Int_t vmet_p4_; Double_t vmet_p4_fCoordinates_fX[kMaxvmet_p4]; //[vmet_p4_] Double_t vmet_p4_fCoordinates_fY[kMaxvmet_p4]; //[vmet_p4_] Double_t vmet_p4_fCoordinates_fZ[kMaxvmet_p4]; //[vmet_p4_] Double_t vmet_p4_fCoordinates_fT[kMaxvmet_p4]; //[vmet_p4_] TMatrixT *mcovmet; // List of branches TBranch *b_evt; //! TBranch *b_lumi; //! TBranch *b_run; //! TBranch *b_rho; //! TBranch *b_npu; //! TBranch *b_nvtx; //! TBranch *b_vector_double_; //! TBranch *b_vmu_p4_; //! TBranch *b_vmu_p4_fCoordinates_fX; //! TBranch *b_vmu_p4_fCoordinates_fY; //! TBranch *b_vmu_p4_fCoordinates_fZ; //! TBranch *b_vmu_p4_fCoordinates_fT; //! TBranch *b_vector_int_; //! TBranch *b_vector_int_; //! TBranch *b_vector_vector_double__; //! TBranch *b_vector_double_; //! TBranch *b_vector_double_; //! TBranch *b_vector_double_; //! TBranch *b_vector_bool_; //! TBranch *b_vector_bool_; //! TBranch *b_vel_p4_; //! TBranch *b_vel_p4_fCoordinates_fX; //! TBranch *b_vel_p4_fCoordinates_fY; //! TBranch *b_vel_p4_fCoordinates_fZ; //! TBranch *b_vel_p4_fCoordinates_fT; //! TBranch *b_vector_int_; //! TBranch *b_vector_int_; //! TBranch *b_vector_double_; //! TBranch *b_vector_double_; //! TBranch *b_vector_double_; //! TBranch *b_vector_double_; //! TBranch *b_vector_bool_; //! TBranch *b_vector_bool_; //! TBranch *b_vector_int_; //! TBranch *b_vector_bool_; //! TBranch *b_vtau_p4_; //! TBranch *b_vtau_p4_fCoordinates_fX; //! TBranch *b_vtau_p4_fCoordinates_fY; //! TBranch *b_vtau_p4_fCoordinates_fZ; //! TBranch *b_vtau_p4_fCoordinates_fT; //! TBranch *b_vector_int_; //! TBranch *b_vector_int_; //! TBranch *b_vector_vector_double__; //! TBranch *b_vector_double_; //! TBranch *b_vector_double_; //! TBranch *b_vjet_p4_; //! TBranch *b_vjet_p4_fCoordinates_fX; //! TBranch *b_vjet_p4_fCoordinates_fY; //! TBranch *b_vjet_p4_fCoordinates_fZ; //! TBranch *b_vjet_p4_fCoordinates_fT; //! TBranch *b_vector_int_; //! TBranch *b_vector_int_; //! TBranch *b_vector_vector_bool__; //! TBranch *b_vector_double_; //! TBranch *b_vector_double_; //! TBranch *b_vector_double_; //! TBranch *b_vmet_p4_; //! TBranch *b_vmet_p4_fCoordinates_fX; //! TBranch *b_vmet_p4_fCoordinates_fY; //! TBranch *b_vmet_p4_fCoordinates_fZ; //! TBranch *b_vmet_p4_fCoordinates_fT; //! TBranch *b_mcovmet; //! hto2taus(TTree *tree=0, std::string sample=("")); virtual ~hto2taus(); 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); std::string sample; }; #endif #ifdef hto2taus_cxx hto2taus::hto2taus(TTree *tree, std::string sample) : fChain(0), sample{sample} { // 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("../output.root"); if (!f || !f->IsOpen()) { f = new TFile("../output.root"); } TDirectory * dir = (TDirectory*)f->Get("../output.root:/demo"); dir->GetObject("hto2taus",tree); } Init(tree); TH1::SetDefaultSumw2(); } hto2taus::~hto2taus() { if (!fChain) return; delete fChain->GetCurrentFile(); } Int_t hto2taus::GetEntry(Long64_t entry) { // Read contents of entry. if (!fChain) return 0; return fChain->GetEntry(entry); } Long64_t hto2taus::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 hto2taus::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 mcovmet = 0; // Set branch addresses and branch pointers if (!tree) return; fChain = tree; fCurrent = -1; fChain->SetMakeClass(1); fChain->SetBranchAddress("evt", &evt, &b_evt); fChain->SetBranchAddress("lumi", &lumi, &b_lumi); fChain->SetBranchAddress("run", &run, &b_run); fChain->SetBranchAddress("rho", &rho, &b_rho); fChain->SetBranchAddress("npu", &npu, &b_npu); fChain->SetBranchAddress("nvtx", &nvtx, &b_nvtx); fChain->SetBranchAddress("vpv_xyz", &vpv_xyz, &b_vector_double_); fChain->SetBranchAddress("vmu_p4", &vmu_p4_, &b_vmu_p4_); fChain->SetBranchAddress("vmu_p4.fCoordinates.fX", vmu_p4_fCoordinates_fX, &b_vmu_p4_fCoordinates_fX); fChain->SetBranchAddress("vmu_p4.fCoordinates.fY", vmu_p4_fCoordinates_fY, &b_vmu_p4_fCoordinates_fY); fChain->SetBranchAddress("vmu_p4.fCoordinates.fZ", vmu_p4_fCoordinates_fZ, &b_vmu_p4_fCoordinates_fZ); fChain->SetBranchAddress("vmu_p4.fCoordinates.fT", vmu_p4_fCoordinates_fT, &b_vmu_p4_fCoordinates_fT); fChain->SetBranchAddress("vmu_genmatch", &vmu_genmatch, &b_vector_int_); fChain->SetBranchAddress("vmu_pdgid", &vmu_pdgid, &b_vector_int_); fChain->SetBranchAddress("vmu_id", &vmu_id, &b_vector_vector_double__); fChain->SetBranchAddress("vmu_iso", &vmu_iso, &b_vector_double_); fChain->SetBranchAddress("vmu_dxyz", &vmu_dxyz, &b_vector_double_); fChain->SetBranchAddress("vmu_corr", &vmu_corr, &b_vector_double_); fChain->SetBranchAddress("vmu_veto1", &vmu_veto1, &b_vector_bool_); fChain->SetBranchAddress("vmu_veto2", &vmu_veto2, &b_vector_bool_); fChain->SetBranchAddress("vel_p4", &vel_p4_, &b_vel_p4_); fChain->SetBranchAddress("vel_p4.fCoordinates.fX", vel_p4_fCoordinates_fX, &b_vel_p4_fCoordinates_fX); fChain->SetBranchAddress("vel_p4.fCoordinates.fY", vel_p4_fCoordinates_fY, &b_vel_p4_fCoordinates_fY); fChain->SetBranchAddress("vel_p4.fCoordinates.fZ", vel_p4_fCoordinates_fZ, &b_vel_p4_fCoordinates_fZ); fChain->SetBranchAddress("vel_p4.fCoordinates.fT", vel_p4_fCoordinates_fT, &b_vel_p4_fCoordinates_fT); fChain->SetBranchAddress("vel_genmatch", &vel_genmatch, &b_vector_int_); fChain->SetBranchAddress("vel_pdgid", &vel_pdgid, &b_vector_int_); fChain->SetBranchAddress("vel_id", &vel_id, &b_vector_double_); fChain->SetBranchAddress("vel_iso", &vel_iso, &b_vector_double_); fChain->SetBranchAddress("vel_dxyz", &vel_dxyz, &b_vector_double_); fChain->SetBranchAddress("vel_corr", &vel_corr, &b_vector_double_); fChain->SetBranchAddress("vel_veto1", &vel_veto1, &b_vector_bool_); fChain->SetBranchAddress("vel_veto2", &vel_veto2, &b_vector_bool_); fChain->SetBranchAddress("vel_gsftrkhit", &vel_gsftrkhit, &b_vector_int_); fChain->SetBranchAddress("vel_passconveto", &vel_passconveto, &b_vector_bool_); fChain->SetBranchAddress("vtau_p4", &vtau_p4_, &b_vtau_p4_); fChain->SetBranchAddress("vtau_p4.fCoordinates.fX", vtau_p4_fCoordinates_fX, &b_vtau_p4_fCoordinates_fX); fChain->SetBranchAddress("vtau_p4.fCoordinates.fY", vtau_p4_fCoordinates_fY, &b_vtau_p4_fCoordinates_fY); fChain->SetBranchAddress("vtau_p4.fCoordinates.fZ", vtau_p4_fCoordinates_fZ, &b_vtau_p4_fCoordinates_fZ); fChain->SetBranchAddress("vtau_p4.fCoordinates.fT", vtau_p4_fCoordinates_fT, &b_vtau_p4_fCoordinates_fT); fChain->SetBranchAddress("vtau_genmatch", &vtau_genmatch, &b_vector_int_); fChain->SetBranchAddress("vtau_pdgid", &vtau_pdgid, &b_vector_int_); fChain->SetBranchAddress("vtau_idiso", &vtau_idiso, &b_vector_vector_double__); fChain->SetBranchAddress("vtau_pltc", &vtau_pltc, &b_vector_double_); fChain->SetBranchAddress("vtau_corr", &vtau_corr, &b_vector_double_); fChain->SetBranchAddress("vjet_p4", &vjet_p4_, &b_vjet_p4_); fChain->SetBranchAddress("vjet_p4.fCoordinates.fX", vjet_p4_fCoordinates_fX, &b_vjet_p4_fCoordinates_fX); fChain->SetBranchAddress("vjet_p4.fCoordinates.fY", vjet_p4_fCoordinates_fY, &b_vjet_p4_fCoordinates_fY); fChain->SetBranchAddress("vjet_p4.fCoordinates.fZ", vjet_p4_fCoordinates_fZ, &b_vjet_p4_fCoordinates_fZ); fChain->SetBranchAddress("vjet_p4.fCoordinates.fT", vjet_p4_fCoordinates_fT, &b_vjet_p4_fCoordinates_fT); fChain->SetBranchAddress("vjet_genmatch", &vjet_genmatch, &b_vector_int_); fChain->SetBranchAddress("vjet_pdgid", &vjet_pdgid, &b_vector_int_); fChain->SetBranchAddress("vjet_id", &vjet_id, &b_vector_vector_bool__); fChain->SetBranchAddress("vjet_csv", &vjet_csv, &b_vector_double_); fChain->SetBranchAddress("vjet_pu", &vjet_pu, &b_vector_double_); fChain->SetBranchAddress("vjet_rawfactor", &vjet_rawfactor, &b_vector_double_); fChain->SetBranchAddress("vmet_p4", &vmet_p4_, &b_vmet_p4_); fChain->SetBranchAddress("vmet_p4.fCoordinates.fX", vmet_p4_fCoordinates_fX, &b_vmet_p4_fCoordinates_fX); fChain->SetBranchAddress("vmet_p4.fCoordinates.fY", vmet_p4_fCoordinates_fY, &b_vmet_p4_fCoordinates_fY); fChain->SetBranchAddress("vmet_p4.fCoordinates.fZ", vmet_p4_fCoordinates_fZ, &b_vmet_p4_fCoordinates_fZ); fChain->SetBranchAddress("vmet_p4.fCoordinates.fT", vmet_p4_fCoordinates_fT, &b_vmet_p4_fCoordinates_fT); fChain->SetBranchAddress("mcovmet", &mcovmet, &b_mcovmet); Notify(); } Bool_t hto2taus::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 hto2taus::Show(Long64_t entry) { // Print contents of entry. // If entry is not specified, print current entry if (!fChain) return; fChain->Show(entry); } Int_t hto2taus::Cut(Long64_t entry) { // This function may be called from Loop. // returns 1 if entry is accepted. // returns -1 otherwise. return 1; } #endif // #ifdef hto2taus_cxx