#define ww_lepton_id_cxx #include "ww_lepton_id.h" #include "TStyle.h" #include "TCanvas.h" #include "TH1.h" #include "TH2.h" #include "TF1.h" #include #include #include #include // void ww_lepton_id::NumberOfEvents() { if (fChain == 0) return; cout << "\n Number of events = " << Int_t(fChain->GetEntries()) << " \n" << endl; } // void ww_lepton_id::Loop(int NumEvt, int flag, double cut1, double cut2, char *file_name, char *directory) { // In a ROOT session, you can do: // Root > .L ww_lepton_id.C // Root > ww_lepton_id t // Root > t.GetEntry(12); // Fill t data members with entry number 12 // Root > t.Show(); // Show values of entry 12 // Root > t.Show(16); // Read and show values of entry 16 // Root > t.Loop(); // Loop on all entries // // This is the loop skeleton // To read only selected branches, Insert statements like: // METHOD1: // fChain->SetBranchStatus("*",0); // disable all branches // fChain->SetBranchStatus("branchname",1); // activate branchname // METHOD2: replace line // fChain->GetEntry(i); // read all branches //by b_branchname->GetEntry(i); //read only this branch if (fChain == 0) return; histoLeptonId histoww; hww=histoww.GetLeptonId(); histoww.BookLeptonId(); Int_t nentries = Int_t(fChain->GetEntriesFast()); //Int_t nentries = Int_t(fChain->GetEntries()); Int_t IdRecEl[MAXLEPTON]; Int_t IdRecMu[MAXLEPTON]; Int_t NRecEl; Int_t NRecMu; Int_t Irec; Int_t Irecflag; Int_t Ievprint=0; IevAna=0; IFileAna=0; Nttee7b=0; Nttee8b=0; Nttee9b=0; // for(Int_t i=0;iGetEntry(jentry); nbytes += nb; // // //WWDileptonFilter(); WWDileptonFilterMadGraph(); // // // // DileptonCategoryAlgorithm(IdRecEl,IdRecMu,NRecEl,NRecMu); // // PrintDileptonCategoryAlgorithm(IdRecEl,IdRecMu,NRecEl,NRecMu); // // Irec=ClassifyDileptonCategory(NRecEl,NRecMu); // // Irecflag=LabelDileptonCategory(IdRecEl,IdRecMu,NRecEl,NRecMu,Irec); // // Rec_Source(IdRecEl,IdRecMu,NRecEl,NRecMu,Irecflag,Irec); // // DebugBaseLinePlugElectron(); // DebugBaseLinePlugElectronCalDriven(); // if(jentry % 1000==0) { cout << jentry << " -> events analyzed, file= " << fCurrent << endl; } if(jentry % 5000==0) { cout << "--------------------------------" << endl; } // Ievprint++; IevAna++; } // // // cout << "--------------------------------" << endl; cout << Ievprint << " -> events analyzed " << endl; cout << "--------------------------------" << endl; acceptancettbar(Ievprint); // histoww.WriteHistoFile(); }