Pixie16 Analysis Software Suite
Analysis code for processing of .ldf files
IonChamberProcessor.hpp
Go to the documentation of this file.
1 
4 #ifndef __IONCHAMBERPROCESSOR_HPP_
5 #define __IONCHAMBERPROCESSOR_HPP_
6 
7 #include <deque>
8 
9 #include "EventProcessor.hpp"
10 
13 private:
14  static const size_t noDets = 6;
15  static const size_t timesToKeep = 1000;
16  static const double minTime;
17 
19  struct Data {
20  double raw[noDets];
21  double cal[noDets];
22  int mult;
23 
25  void Clear(void);
26  } data;
27 
28  double lastTime[noDets];
29  std::deque<double> timeDiffs[noDets];
30 public:
38  virtual bool Process(RawEvent &event);
40  virtual void DeclarePlots(void);
41 #ifdef useroot
42 
45  bool AddBranch(TTree *tree);
47  void FillBranch(void);
48 #endif
49 };
50 #endif // __IONCHAMBERPROCSSEOR_HPP_
static const size_t timesToKeep
Number of times to keep.
Definition: IonChamberProcessor.hpp:15
double raw[noDets]
raw energies
Definition: IonChamberProcessor.hpp:20
double cal[noDets]
calibrated energies
Definition: IonChamberProcessor.hpp:21
Generic event processor.
A Data structure to handle all of the info for the chamber.
Definition: IonChamberProcessor.hpp:19
virtual bool Process(RawEvent &event)
static const double minTime
Minimum time in the chamber.
Definition: IonChamberProcessor.hpp:16
int mult
multiplicity
Definition: IonChamberProcessor.hpp:22
~IonChamberProcessor()
Definition: IonChamberProcessor.hpp:34
virtual void DeclarePlots(void)
Processor to handle ion chambers.
Definition: IonChamberProcessor.hpp:12
std::deque< double > timeDiffs[noDets]
Time difference between events.
Definition: IonChamberProcessor.hpp:29
Class to handle event processing.
Definition: EventProcessor.hpp:25
double lastTime[noDets]
The last time in the chamber.
Definition: IonChamberProcessor.hpp:28
struct IonChamberProcessor::Data data
Creates instance of the data structure for storage.
The all important raw event.
Definition: RawEvent.hpp:46
static const size_t noDets
Number of detectors.
Definition: IonChamberProcessor.hpp:14