Pixie16 Analysis Software Suite
Analysis code for processing of .ldf files
DetectorSummary.hpp
Go to the documentation of this file.
1 
6 #ifndef __DETECTOR_SUMMARY_HPP
7 #define __DETECTOR_SUMMARY_HPP
8 
9 #include <string>
10 #include <vector>
11 
12 #include "ChanEvent.hpp"
13 
14 #include "pixie16app_defs.h"
15 
16 #include "Globals.hpp"
17 #include "Trace.hpp"
18 
19 class ChanEvent;
20 
32 public:
35 
39  DetectorSummary(const std::string &str, const std::vector<ChanEvent *> &fullList);
40 
42  void Zero();
43 
46  void AddEvent(ChanEvent *ev);
47 
50  void SetName(const std::string& a) {name = a;}
51 
53  const ChanEvent* GetMaxEvent(void) const {return maxEvent;};
54 
57  ChanEvent* GetMaxEvent(bool fake) {return maxEvent;};
58 
60  int GetMult() const {return eventList.size();}
61 
63  const std::string& GetName() const {return name;};
64 
66  const std::vector<ChanEvent*>& GetList() const {return eventList;};
67 private:
68  std::string name;
69  std::string type;
70  std::string subtype;
71  std::string tag;
72  std::vector<ChanEvent*> eventList;
74 };
75 #endif
int GetMult() const
Definition: DetectorSummary.hpp:60
std::string type
Definition: DetectorSummary.hpp:69
A channel event.
Definition: ChanEvent.hpp:23
std::string tag
Definition: DetectorSummary.hpp:71
A Class to define what a channel event is.
const ChanEvent * GetMaxEvent(void) const
Definition: DetectorSummary.hpp:53
constant parameters used in pixie16 analysis
ChanEvent * GetMaxEvent(bool fake)
Definition: DetectorSummary.hpp:57
const std::vector< ChanEvent * > & GetList() const
Definition: DetectorSummary.hpp:66
std::string subtype
Definition: DetectorSummary.hpp:70
ChanEvent * maxEvent
Definition: DetectorSummary.hpp:73
A simple class to store the traces.
void AddEvent(ChanEvent *ev)
void SetName(const std::string &a)
Definition: DetectorSummary.hpp:50
Summary of all channels of one detector type.
Definition: DetectorSummary.hpp:31
std::vector< ChanEvent * > eventList
Definition: DetectorSummary.hpp:72
const std::string & GetName() const
Definition: DetectorSummary.hpp:63
std::string name
Definition: DetectorSummary.hpp:66