Pixie16 Analysis Software Suite
Analysis code for processing of .ldf files
BarDetector.hpp
Go to the documentation of this file.
1 
6 #ifndef __BARDETECTOR_HPP__
7 #define __BARDETECTOR_HPP__
8 
9 #include <map>
10 
11 #include "HighResTimingData.hpp"
12 #include "TimingCalibrator.hpp"
13 
15 class BarDetector {
16 public:
21 
27  BarDetector(const HighResTimingData &Left, const HighResTimingData &Right,
28  const TimingCalibration &cal, const std::string &type);
29 
31  bool GetHasEvent() const {return(hasEvent_);};
33  double GetFlightPath() const {return(flightPath_);};
35  double GetQdc() const {return(qdc_);};
37  double GetQdcPosition() const {return(qdcPos_);};
39  double GetTheta() const {return(theta_);};
41  double GetTimeAverage() const {return(timeAve_);};
43  double GetTimeDifference() const {return(timeDiff_);};
45  double GetWalkCorTimeAve() const {return(walkCorTimeAve_);};
47  double GetWalkCorTimeDiff() const {return(walkCorTimeDiff_);};
49  HighResTimingData GetLeftSide() const {return(left_);};
53  std::string GetType() const {return(type_);};
56 private:
57  bool hasEvent_;
58  double flightPath_;
59  double qdc_;
60  double qdcPos_;
61  double theta_;
62  double timeAve_;
63  double timeDiff_;
66  std::string type_;
70 
72  void BarEventCheck(void);
74  void CalcFlightPath(void);
75 };
76 
78 typedef std::map<TimingDefs::TimingIdentifier, BarDetector> BarMap;
79 #endif // __BARDETECTOR_HPP__
double walkCorTimeAve_
The walk corrected time average.
Definition: BarDetector.hpp:65
bool GetHasEvent() const
Definition: BarDetector.hpp:31
double GetTimeAverage() const
Definition: BarDetector.hpp:41
TimingCalibration GetCalibration() const
Definition: BarDetector.hpp:55
double flightPath_
flight path of the particle to the detector
Definition: BarDetector.hpp:58
double walkCorTimeDiff_
The walk corrected time difference.
Definition: BarDetector.hpp:64
A class to hold the timing calibration for a detector.
Definition: TimingCalibrator.hpp:17
bool hasEvent_
true if there was an event in the bar
Definition: BarDetector.hpp:55
Class for holding information for high resolution timing.
Definition: HighResTimingData.hpp:14
double theta_
the angle of the particle w.r.t. the source
Definition: BarDetector.hpp:61
double GetQdcPosition() const
Definition: BarDetector.hpp:37
Class to hold all of the information for high resolution timing.
std::string GetType() const
Definition: BarDetector.hpp:53
A class to handle detectors that have two readouts viewing the same volume.
Definition: BarDetector.hpp:15
HighResTimingData right_
The Right side of the detector.
Definition: BarDetector.hpp:67
double timeDiff_
The time difference between the two ends.
Definition: BarDetector.hpp:63
double GetQdc() const
Definition: BarDetector.hpp:35
HighResTimingData GetLeftSide() const
Definition: BarDetector.hpp:49
HighResTimingData GetRightSide() const
Definition: BarDetector.hpp:51
HighResTimingData left_
The Left side of the detector.
Definition: BarDetector.hpp:68
std::map< TimingDefs::TimingIdentifier, BarDetector > BarMap
Definition: BarDetector.hpp:78
double timeAve_
The average arrival time of the left and right ends.
Definition: BarDetector.hpp:62
A class to handle the timing calibration parameters.
void CalcFlightPath(void)
Calculates the flight path of the particle.
~BarDetector()
Definition: BarDetector.hpp:20
double GetTimeDifference() const
Definition: BarDetector.hpp:43
double qdc_
QDC for the bar.
Definition: BarDetector.hpp:59
double qdcPos_
Position derived from the QDC.
Definition: BarDetector.hpp:60
double GetTheta() const
Definition: BarDetector.hpp:39
std::string type_
The type of bar detector it is.
Definition: BarDetector.hpp:66
TimingCalibration cal_
The Timing Calibration of the bar.
Definition: BarDetector.hpp:69
void BarEventCheck(void)
Checks to see if the event could physically be inside the bar.
double GetWalkCorTimeDiff() const
Definition: BarDetector.hpp:47
double GetWalkCorTimeAve() const
Definition: BarDetector.hpp:45
BarDetector()
Definition: BarDetector.hpp:18
double GetFlightPath() const
Definition: BarDetector.hpp:33