Pixie16 Analysis Software Suite
Analysis code for processing of .ldf files
VandleProcessor.hpp
Go to the documentation of this file.
1 
18 #ifndef __VANDLEPROCESSOR_HPP_
19 #define __VANDLEPROCESSOR_HPP_
20 
21 #include "BarDetector.hpp"
22 #include "EventProcessor.hpp"
23 #include "HighResTimingData.hpp"
24 
27 public:
33  virtual void DeclarePlots(void);
34 
39  VandleProcessor(const std::vector<std::string> &typeList,
40  const double &res, const double &offset,
41  const unsigned int &numStarts);
42 
46  virtual bool PreProcess(RawEvent &event);
47 
51  virtual bool Process(RawEvent &event);
52 protected:
57 
58  bool hasDecay_;
59  double decayTime_;
60 
61  double plotMult_;
62  double plotOffset_;
63 
64  bool hasSmall_;
65  bool hasBig_;
66  bool hasMed_;
67 
68  unsigned int numStarts_;
69 
75  virtual double CorrectTOF(const double &TOF, const double &corRadius,
76  const double &z0) {
77  return((z0/corRadius)*TOF);
78  };
79 private:
82  void AnalyzeBarStarts(void);
85  void AnalyzeStarts(void);
87  void ClearMaps(void);
89  void FillVandleOnlyHists();
90 
93  unsigned int ReturnOffset(const std::string &type);
94 };
95 #endif
double plotMult_
The resolution multiplier for DAMM histograms.
Definition: VandleProcessor.hpp:61
double plotOffset_
The offset multiplier for DAMM histograms.
Definition: VandleProcessor.hpp:62
virtual bool Process(RawEvent &event)
double decayTime_
the time of the decay
Definition: VandleProcessor.hpp:59
Generic event processor.
Class to process VANDLE related events.
Definition: VandleProcessor.hpp:26
bool hasBig_
True if big bars were requested in the Config.
Definition: VandleProcessor.hpp:65
Class to hold all of the information for high resolution timing.
bool hasSmall_
True if small bars were requested in the Config.
Definition: VandleProcessor.hpp:64
void FillVandleOnlyHists()
void AnalyzeStarts(void)
void AnalyzeBarStarts(void)
bool hasMed_
True if medium bars were requested in the Config.
Definition: VandleProcessor.hpp:66
BarMap barStarts_
A map that holds all of the bar starts.
Definition: VandleProcessor.hpp:55
virtual bool PreProcess(RawEvent &event)
DetectorSummary * geSummary_
The Detector Summary for Ge Events.
Definition: VandleProcessor.hpp:56
virtual void DeclarePlots(void)
~VandleProcessor()
Definition: VandleProcessor.hpp:31
std::map< TimingDefs::TimingIdentifier, BarDetector > BarMap
Definition: BarDetector.hpp:78
void ClearMaps(void)
virtual double CorrectTOF(const double &TOF, const double &corRadius, const double &z0)
Correct the time of flight based on the geometry of the setup.
Definition: VandleProcessor.hpp:75
A class to handle bar style detectors (VANDLE, Betas, etc.)
TimingMap starts_
A map to to hold all the starts.
Definition: VandleProcessor.hpp:54
std::map< TimingDefs::TimingIdentifier, HighResTimingData > TimingMap
Definition: HighResTimingData.hpp:98
Class to handle event processing.
Definition: EventProcessor.hpp:25
The all important raw event.
Definition: RawEvent.hpp:46
Summary of all channels of one detector type.
Definition: DetectorSummary.hpp:31
bool hasDecay_
True if there was a correlated beta decay.
Definition: VandleProcessor.hpp:58
unsigned int numStarts_
The number of starts set in the Config File.
Definition: VandleProcessor.hpp:68
BarMap bars_
A map to hold all the bars.
Definition: VandleProcessor.hpp:53
unsigned int ReturnOffset(const std::string &type)