Pixie16 Analysis Software Suite
Analysis code for processing of .ldf files
EventData.hpp
Go to the documentation of this file.
1 
4 #ifndef EVENT_DATA_H
5 #define EVENT_DATA_H
6 
7 #include <string>
8 #include "Globals.hpp"
9 
12 class EventData {
13 public:
22  EventData(double ptime, bool pstatus = true, double penergy = 0,
23  int plocation = -1, std::string ptype = "") {
24  time = ptime;
25  status = pstatus;
26  energy = penergy;
27  location = plocation;
28  type = ptype;
29  }
30 
37  EventData(double ptime, double penergy, int plocation = -1,
38  bool pstatus = true, std::string ptype = "") {
39  time = ptime;
40  energy = penergy;
41  location = plocation;
42  status = pstatus;
43  type = ptype;
44  }
45 
46  bool status;
47  double time;
48  double energy;
49  int location;
50  std::string type;
51 };
52 #endif
EventData(double ptime, double penergy, int plocation=-1, bool pstatus=true, std::string ptype="")
Definition: EventData.hpp:37
bool status
the status of the event
Definition: EventData.hpp:46
double time
the time of the event
Definition: EventData.hpp:47
constant parameters used in pixie16 analysis
int location
the location of the detector
Definition: EventData.hpp:49
std::string type
the detector type
Definition: EventData.hpp:50
Simple structure holding basic parameters needed for correlation of events in the same place...
Definition: EventData.hpp:12
double energy
the energy of the event
Definition: EventData.hpp:48
EventData(double ptime, bool pstatus=true, double penergy=0, int plocation=-1, std::string ptype="")
Definition: EventData.hpp:22