Pixie16 Analysis Software Suite
Analysis code for processing of .ldf files
RawEvent.hpp
Go to the documentation of this file.
1 
11 #ifndef __RAWEVENT_HPP_
12 #define __RAWEVENT_HPP_ 1
13 
14 #include <iostream>
15 #include <map>
16 #include <set>
17 #include <string>
18 #include <vector>
19 
20 #include "Correlator.hpp"
21 #include "pixie16app_defs.h"
22 
23 #include "Globals.hpp"
24 #include "Trace.hpp"
25 #include "DetectorSummary.hpp"
26 #include "ChanEvent.hpp"
27 #include "Identifier.hpp"
28 
29 // see DetectorSummary.hpp
30 class DetectorSummary;
31 //see ChanEvent.hpp
32 class ChanEvent;
33 
46 class RawEvent {
47 public:
49  RawEvent(){};
50 
52  ~RawEvent(){};
53 
55  void Clear(void) {eventList.clear();};
56 
58  size_t Size(void) const {return(eventList.size());};
59 
64  void Init(const std::set<std::string> &usedTypes);
65 
68  void AddChan(ChanEvent* event) {eventList.push_back(event);};
69 
75  void Zero(const std::set<std::string> &usedev);
76 
79 
87  DetectorSummary *GetSummary(const std::string& a, bool construct = true);
88 
91  const DetectorSummary *GetSummary(const std::string &a) const;
92 
94  const std::vector<ChanEvent *> &GetEventList(void) const {return eventList;}
95 private:
96  std::map<std::string, DetectorSummary> sumMap;
98  mutable std::set<std::string> nullSummaries;
99  std::vector<ChanEvent*> eventList;
103 };
104 #endif // __RAWEVENT_HPP_
DetectorSummary * GetSummary(const std::string &a, bool construct=true)
Get a pointer to a specific detector summary.
A channel event.
Definition: ChanEvent.hpp:23
size_t Size(void) const
Definition: RawEvent.hpp:58
A Class to define what a channel event is.
correlate decays with previous implants
Definition: Correlator.hpp:95
Defines identifying information for channels.
constant parameters used in pixie16 analysis
void Init(const std::set< std::string > &usedTypes)
Raw event initialization and set the rawevent detector summary map with the passed argument...
std::vector< ChanEvent * > eventList
Definition: RawEvent.hpp:99
A simple class to store the traces.
void Clear(void)
Definition: RawEvent.hpp:55
void Zero(const std::set< std::string > &usedev)
Raw event zeroing.
Correlator correlator
Definition: RawEvent.hpp:101
RawEvent()
Definition: RawEvent.hpp:49
~RawEvent()
Definition: RawEvent.hpp:52
The class that generates the summary of the detectors in the analysis.
void AddChan(ChanEvent *event)
Definition: RawEvent.hpp:68
Correlator & GetCorrelator()
Definition: RawEvent.hpp:78
std::set< std::string > nullSummaries
Definition: RawEvent.hpp:98
The all important raw event.
Definition: RawEvent.hpp:46
Summary of all channels of one detector type.
Definition: DetectorSummary.hpp:31
Header file for correlation.
std::map< std::string, DetectorSummary > sumMap
Definition: RawEvent.hpp:96
const std::vector< ChanEvent * > & GetEventList(void) const
Definition: RawEvent.hpp:94