Utility.h 1019 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. #ifndef MODELCONVERTER_UTILITY_H
  2. #define MODELCONVERTER_UTILITY_H
  3. #include <iostream>
  4. #include <fstream>
  5. #include <vector>
  6. #include <algorithm>
  7. #include <iterator>
  8. #include <cassert>
  9. #include <sstream>
  10. #include <string>
  11. #include <Rtypes.h>
  12. #include <TString.h>
  13. #include <TChain.h>
  14. #include <TEnv.h>
  15. #include <mciEvent.h>
  16. #include <mciParticle.h>
  17. class mciUtility
  18. {
  19. protected:
  20. mciUtility();
  21. virtual ~mciUtility();
  22. static mciUtility *fUtility;
  23. public:
  24. mciUtility(mciUtility &other) = delete;
  25. void operator=(const mciUtility &) = delete;
  26. static mciUtility *GetInstance();
  27. const Double_t error_code = -999.;
  28. Int_t Nevents;
  29. Int_t debug;
  30. std::string input_format;
  31. std::string output_format;
  32. Bool_t ReadConfig(const TString &configFileName);
  33. TChain *initChain(const TString &inputFileName, const char *chainName);
  34. std::vector<Float_t> ParseVector(std::string _input);
  35. Bool_t initCentrality();
  36. Double_t GetCharge(Int_t pdg);
  37. ClassDef(mciUtility, 0);
  38. }; // class mciUtility
  39. #endif