Pixie16 Analysis Software Suite
Analysis code for processing of .ldf files
BarBuilder.hpp
Go to the documentation of this file.
1 
6 #ifndef __BARBUILDER_HPP__
7 #define __BARBUILDER_HPP__
8 
9 #include "BarDetector.hpp"
10 #include "HighResTimingData.hpp"
11 
13 class BarBuilder {
14 public:
19  BarBuilder(const std::vector<ChanEvent*> &vec);
21  virtual ~BarBuilder(){};
22 
26  BarMap GetBarMap(void) {return(bars_);};
27 
29  void BuildBars(void);
30 
34  void SetChannelList(const std::vector<ChanEvent*> &a){list_ = a;};
35 private:
42  unsigned int CalcBarNumber(const unsigned int &loc);
44  void ClearMaps(void);
50  void FillMaps(void);
51 
55  std::vector<ChanEvent*> list_;
56 };
57 #endif // __BARBUILDER_HPP_
void BuildBars(void)
BarMap GetBarMap(void)
Definition: BarBuilder.hpp:26
void ClearMaps(void)
TimingMap rights_
Map containing the right sides of bars.
Definition: BarBuilder.hpp:54
Class to hold all of the information for high resolution timing.
unsigned int CalcBarNumber(const unsigned int &loc)
std::vector< ChanEvent * > list_
Vector of events to build bars out of.
Definition: BarBuilder.hpp:55
virtual ~BarBuilder()
Definition: BarBuilder.hpp:21
BarMap bars_
Map containing all of the built bars.
Definition: BarBuilder.hpp:52
std::map< TimingDefs::TimingIdentifier, BarDetector > BarMap
Definition: BarDetector.hpp:78
void FillMaps(void)
A class to handle bar style detectors (VANDLE, Betas, etc.)
Class that builds bars out of a list of ends.
Definition: BarBuilder.hpp:13
std::map< TimingDefs::TimingIdentifier, HighResTimingData > TimingMap
Definition: HighResTimingData.hpp:98
TimingMap lefts_
Map containing the left sides of bars.
Definition: BarBuilder.hpp:53
void SetChannelList(const std::vector< ChanEvent * > &a)
Definition: BarBuilder.hpp:34
BarBuilder()
Definition: BarBuilder.hpp:16