getMultiplicity.C 491 B

123456789101112131415161718
  1. #include "../Centrality/MultReader.cxx"
  2. #include <TROOT.h>
  3. #include <TFile.h>
  4. #include <TH1F.h>
  5. #include <TChain.h>
  6. void getMultiplicity(TString outName)
  7. {
  8. TChain *chain = new TChain("mctree");
  9. //chain->Add("/home/peter/Documents/ModelData/run*.root");
  10. //chain->Add("/mnt/pool/nica/6/arkadij/mcpico/phsd200gev/run*.root");
  11. chain->Add("/mnt/pool/nica/6/arkadij/mcpico/phsd200charge/m200KCHrun*.root");
  12. MultReader *res = new MultReader(chain);
  13. res->LoopMultiplicity(outName);
  14. }