EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
functions.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file functions.h
1 
10 #ifndef INCLUDE_EICSMEAR_FUNCTIONS_H_
11 #define INCLUDE_EICSMEAR_FUNCTIONS_H_
12 
13 #include <string>
14 
15 #include <Rtypes.h>
16 #include <TString.h>
17 
18 #include "eicsmear/smear/Smear.h"
20 
21 class TLorentzVector;
22 
23 namespace erhic {
24  class EventMC;
25  class VirtualEventFactory;
29  const std::string EicSmearVersionString = "1.1.12";
30 
31 }
32 
39 char getFirstNonBlank(const std::string&);
40 
50 double computeHermesPhiH(const TLorentzVector& hadronInPrf,
51  const TLorentzVector& leptonInPrf,
52  const TLorentzVector& photonInPrf);
53 
54 // Forward declarations of functions for which we wish to build dictionaries
55 // using rootcint
56 
61 Long64_t BuildTree(const std::string& inputFileName,
62  const std::string& outputDirName = ".",
63  const Long64_t maxEvent = 0,
64  const std::string& logFileName = "");
65 
70 namespace erhic{
72 }
73 
78 Long64_t TreeToHepMC(const std::string& inputFileName,
79  const std::string& outputDirName = ".",
80  Long64_t maxEvent = 0,
82 
87 Long64_t TreeToHepMC(const std::string& inputFileName,
88  const std::string& outputDirName,
89  Long64_t maxEvent,
90  const bool createHepMC2=false);
91 
95 class EventToDot {
96  public:
100  virtual ~EventToDot() { }
101 
105  void Generate(const erhic::EventMC&, const std::string& outputName) const;
106 
107  ClassDef(EventToDot, 0)
108 };
109 
110 #endif // INCLUDE_EICSMEAR_FUNCTIONS_H_