Limits MTR 2017 MTR 2018 MTR 2017 2018 all 2017 all 2018 all 2017 2018 Run2
Expected 2.5% 0.1262 0.0766 0.0662 0.1169 0.0715 0.0621 0.0563
Expected 16% 0.1695 0.1032 0.0889 0.1570 0.0969 0.0833 0.0753
Expected 50% 0.2393 0.1475 0.1255 0.2217 0.1377 0.1177 0.1060
Expected 84% 0.3470 0.2151 0.1800 0.3198 0.2008 0.1688 0.1503
Expected 97.5% 0.4897 0.3053 0.2517 0.4513 0.2868 0.2360 0.2074
Observed 0.2934 0.2175 0.1761 0.2347 0.1744 0.1418 0.1420


Limits MTR 2017 nophotons MTR 2018 nophotons MTR 2017 2018 nophotons all 2017 nophotons all 2018 nophotons all 2017 2018 nophotons Run2 nophotons
Expected 2.5% 0.1396 0.0832 0.0713 0.1276 0.0762 0.0661 0.0593
Expected 16% 0.1867 0.1117 0.0959 0.1707 0.1027 0.0885 0.0794
Expected 50% 0.2627 0.1577 0.1343 0.2402 0.1455 0.1245 0.1108
Expected 84% 0.3768 0.2281 0.1915 0.3446 0.2110 0.1776 0.1568
Expected 97.5% 0.5268 0.3214 0.2652 0.4818 0.2987 0.2467 0.2152
Observed 0.2936 0.2238 0.1783 0.2313 0.1762 0.1404 0.1407

Era nanov5 nanov7 chipv5_raw chipv5_skim chipv7_raw chipv7_skim nanov7/nanov5 chipv7_raw/chipv5_raw chipv7_skim/chipv5_skim chipv5_skim/chipv5_raw chipv7_skim/chipv7_raw chipv5_raw/nanov5 chipv7_raw/nanov7
met2018A 52744621 52744621 46937330 33364791 46937330 33364791 1 1 1 0.710837 0.710837 0.889898 0.889898
met2018B 29714277 29714277 26782508 19130640 26782508 19130640 1 1 1 0.714296 0.714296 0.901335 0.901335
met2018C 31237456 31237456 30107311 21767643 30107311 21767643 1 1 1 0.723002 0.723002 0.963821 0.963821
met2018D 160260327 162272551 150412840 125324085 150412840 125324085 1.01256 1 1 0.833201 0.833201 0.938553 0.926915

EGamma

Era nanov5 nanov7 chipv5_raw chipv5_skim chipv7_raw chipv7_skim nanov7/nanov5 chipv7_raw/chipv5_raw chipv7_skim/chipv5_skim chipv5_skim/chipv5_raw chipv7_skim/chipv7_raw chipv5_raw/nanov5 chipv7_raw/nanov7
eg2018A 327843843 327843843 308652991 194782771 308652991 195158587 1 1 1.00193 0.631074 0.632291 0.941463 0.941463
eg2018B 153822427 153822427 139144140 74832843 139144140 75023309 1 1 1.00255 0.537808 0.539177 0.904576 0.904576
eg2018C 147827904 147827904 143781609 76017387 143781609 76205195 1 1 1.00247 0.5287 0.530007 0.972628 0.972628
eg2018D 751367329 754798781 724668977 356663235 724692056 357565459 1.00457 1.00003 1.00253 0.492174 0.493403 0.964467 0.960113

How to fill/read back a tree with specific class, vector

  • create include/!ClassName.hh and src/!ClassName.cc files with class definition.
  • Add #include "Rtypes.h" in header file
  • Inside class definition, add ClassDef(ClassName,1);
  • Create a file include/LinkDef.h with the following content:

#pragma link C++ class ClassName+;
#pragma link C++ class vector+;

  • Create a dictionary for the classes with the command: rootcint -v -f src/dict.cc -c include/ClassName.hh include/LinkDef.h
  • Compile everything (including dict.cc)
  • Main program to create/fill the tree:

TTree *tree_;
std::vector<ClassName> hitvec_;
tree_=new TTree("Tree","An example of homemade tree");
tree_->Branch("HitVec","std::vector<ClassName>",&hitvec_);
--- fill hitvec ---
tree_->Fill();
tree_->Write();

  • example bit to add to makefile, to execute make dictionary

dictionary:
   rootcint -v -f src/dict.cc -c include/HGCSSSimHit.hh include/LinkDef.h
   sed "s/include\/HGCSSSimHit/HGCSSSimHit/" src/dict.h > include/dict.h
   rm src/dict.h

  • To read back the tree:
    • compile again including dict.h/dict.cc
    • Example code:
TTree *lTree = (TTree*)inputFile->Get("TreeName");
std::vector<ClassName> * vec = 0;
lTree->SetBranchAddress("BranchName",&vec);
 for (unsigned ievt(0); ievt<(unsigned)lTree->GetEntries(); ++ievt){//loop on entries
      lTree->GetEntry(ievt);
       for (unsigned iH(0); iH<(*vec).size(); ++iH){
     ClassName lHit = (*vec)[iH];
      }
}

-- AnnemarieMagnan - 22 Jan 2014

Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r4 - 2021-05-26 - AnnemarieMagnan
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Sandbox All webs login

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