NAIA  1.0.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
FileInfo.h
Go to the documentation of this file.
1 
7 #ifndef NAIA_FILEINFO_H
8 #define NAIA_FILEINFO_H
9 
10 #include "Containers/Utils.h"
11 
12 #include "Rtypes.h"
13 #include "TObject.h"
14 
15 namespace NAIA {
23 class FileInfo : public TObject {
24 public:
29  void Clear();
30 
35  void Dump() const;
36 
37  unsigned int Run = 0;
38  unsigned int NEvents = 0;
39  std::pair<unsigned int, unsigned int> UTCTime{0, 0};
40  std::pair<unsigned int, unsigned int> EventNo{0, 0};
41  std::string FileName{""};
42 
43  int BadRunTag = 0;
44  std::string BadRunReason{""};
45 
46  ClassDef(FileInfo, 1);
47 };
48 
54 class MCFileInfo : public TObject {
55 public:
62  enum class SimFocus {
63  NONE = 0,
64  L1,
65  L19,
66  TB,
67 
68  };
69 
75  unsigned int GetNGen() const;
76 
82  double GetRMin() const;
83 
89  double GetRMax() const;
90 
95  void Clear();
96 
101  void Dump() const;
102 
103  unsigned int Charge = 0;
104  float Mass = 0;
105  int DatacardPID = 0;
106  unsigned int DatacardNGen = 0;
107 
108  std::pair<unsigned int, unsigned int> EventNo{0, 0};
109  std::pair<float, float> MomentumRange{0, 0};
110  std::pair<float, float> DatacardMomentumRange{0, 0};
111 
113 
114  ClassDef(MCFileInfo, 1);
115 };
116 } // namespace NAIA
117 
118 #endif
int DatacardPID
Geant4 PID of the primary particle (from datacard)
Definition: FileInfo.h:105
std::pair< float, float > MomentumRange
Momentum range as estimated from the events.
Definition: FileInfo.h:109
double GetRMin() const
Get the lower edge of the rigidity generation range.
Definition: FileInfo.cpp:46
std::string BadRunReason
If this is a bad run, the reason as returned by AMSSetupR::IsBadRun.
Definition: FileInfo.h:44
std::pair< unsigned int, unsigned int > EventNo
First / last event in the file.
Definition: FileInfo.h:108
ClassDef(FileInfo, 1)
unsigned int GetNGen() const
Estimates of the total number of requested events at generation level.
Definition: FileInfo.cpp:28
std::string FileName
Name of the processed file.
Definition: FileInfo.h:41
test beam simulation
std::pair< unsigned int, unsigned int > UTCTime
First and last second of this run.
Definition: FileInfo.h:39
std::pair< float, float > DatacardMomentumRange
Momentum range as estimated from the datacard.
Definition: FileInfo.h:110
void Dump() const
Dump on screen container content.
Definition: FileInfo.cpp:15
int BadRunTag
If this is a bad run, the tag as returned by AMSSetupR::IsBadRun.
Definition: FileInfo.h:43
unsigned int DatacardNGen
Number of generated events from datacard.
Definition: FileInfo.h:106
SimFocus
Enum specifying the type of simulation.
Definition: FileInfo.h:62
double GetRMax() const
Get the upper edge of the rigidity generation range.
Definition: FileInfo.cpp:54
unsigned int NEvents
Total number of processed events.
Definition: FileInfo.h:38
unsigned int Run
Run number.
Definition: FileInfo.h:37
Container class for processed File information.
Definition: FileInfo.h:23
void Clear()
Clear container content.
Definition: FileInfo.cpp:62
SimFocus Focus
Simulation focus.
Definition: FileInfo.h:112
Container class for additional MC File information.
Definition: FileInfo.h:54
particles shot towards Layer 1
void Dump() const
Dump on screen container content.
Definition: FileInfo.cpp:73
particles shot towards layer 1 and passing through layer 9
ClassDef(MCFileInfo, 1)
unsigned int Charge
Atomic number of the primary particle.
Definition: FileInfo.h:103
float Mass
Mass of the primary particle in GeV/c^2.
Definition: FileInfo.h:104
void Clear()
Clear container content.
Definition: FileInfo.cpp:6
std::pair< unsigned int, unsigned int > EventNo
First and last event of this run.
Definition: FileInfo.h:40