Public Member Functions | Private Attributes | List of all members
daq2raw::BeamlineEvent Class Reference

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-09-26/DAQ2RawDigit/testbeam/BeamlineUnpack.h"

Public Member Functions

 BeamlineEvent (unsigned int eventNum)
 
 ~BeamlineEvent ()
 
unsigned int EventNumber () const
 
bool GoodEvent () const
 
void SetBadEvent ()
 
void SetGoodEvent ()
 
void AddConfig (rawdata::RawBeamlineConfig config)
 
void AddTimestamp (uint64_t timestamp)
 
void AddTDUTime (uint64_t tduTime)
 
void AddTrigger (std::vector< rawdata::RawBeamlineTrigger > trigger)
 
void AddToF (std::vector< rawdata::RawBeamlineDigit > tof)
 
void AddWC (std::vector< rawdata::RawBeamlineWC > wc)
 
void AddCherenkov (std::vector< rawdata::RawBeamlineDigit > cherenkov)
 
void AddMuonStack (std::vector< rawdata::RawBeamlineDigit > muonstack)
 
void AddPaddleDigit (std::vector< rawdata::RawBeamlineDigit > paddle)
 
void AddWCDigit (std::vector< rawdata::RawBeamlineDigit > mwpc)
 
void AddOtherDigit (std::vector< rawdata::RawBeamlineDigit > other)
 
rawdata::RawBeamlineConfig GetConfig () const
 
uint64_t GetTimestamp () const
 
uint64_t GetTDUTime () const
 
std::vector< rawdata::RawBeamlineTriggerGetTrigger () const
 
std::vector< rawdata::RawBeamlineDigitGetToF () const
 
std::vector< rawdata::RawBeamlineWCGetWC () const
 
std::vector< rawdata::RawBeamlineDigitGetCherenkov () const
 
std::vector< rawdata::RawBeamlineDigitGetMuonStack () const
 
std::vector< rawdata::RawBeamlineDigitGetPaddleDigit () const
 
std::vector< rawdata::RawBeamlineDigitGetWCDigit () const
 
std::vector< rawdata::RawBeamlineDigitGetOtherDigit () const
 

Private Attributes

unsigned int fEventNumber
 
bool fGoodEvent
 
rawdata::RawBeamlineConfig fConfig
 
uint64_t fTimestamp
 
uint64_t fTDUTime
 
std::vector< rawdata::RawBeamlineTriggerfTrigger
 
std::vector< rawdata::RawBeamlineDigitfToF
 
std::vector< rawdata::RawBeamlineWCfWC
 
std::vector< rawdata::RawBeamlineDigitfCherenkov
 
std::vector< rawdata::RawBeamlineDigitfMuonStack
 
std::vector< rawdata::RawBeamlineDigitfPaddleDigit
 
std::vector< rawdata::RawBeamlineDigitfWCDigit
 
std::vector< rawdata::RawBeamlineDigitfOtherDigit
 

Detailed Description

Definition at line 99 of file BeamlineUnpack.h.

Constructor & Destructor Documentation

daq2raw::BeamlineEvent::BeamlineEvent ( unsigned int  eventNum)

Definition at line 53 of file BeamlineUnpack.cxx.

53  {
54  fEventNumber = eventNum;
55  this->SetGoodEvent();
56 }
daq2raw::BeamlineEvent::~BeamlineEvent ( )

Definition at line 59 of file BeamlineUnpack.cxx.

59  {
60 }

Member Function Documentation

void daq2raw::BeamlineEvent::AddCherenkov ( std::vector< rawdata::RawBeamlineDigit cherenkov)

Definition at line 104 of file BeamlineUnpack.cxx.

Referenced by daq2raw::BeamlineUnpack::UnpackDigits().

104  {
105  fCherenkov = cherenkov;
106  return;
107 }
std::vector< rawdata::RawBeamlineDigit > fCherenkov
void daq2raw::BeamlineEvent::AddConfig ( rawdata::RawBeamlineConfig  config)

Definition at line 68 of file BeamlineUnpack.cxx.

References gen_flatrecord::config.

Referenced by daq2raw::BeamlineUnpack::UnpackConfig().

68  {
69  fConfig = config;
70  return;
71 }
rawdata::RawBeamlineConfig fConfig
void daq2raw::BeamlineEvent::AddMuonStack ( std::vector< rawdata::RawBeamlineDigit muonstack)

Definition at line 110 of file BeamlineUnpack.cxx.

Referenced by daq2raw::BeamlineUnpack::UnpackDigits().

110  {
111  fMuonStack = muonstack;
112  return;
113 }
std::vector< rawdata::RawBeamlineDigit > fMuonStack
void daq2raw::BeamlineEvent::AddOtherDigit ( std::vector< rawdata::RawBeamlineDigit other)

Definition at line 128 of file BeamlineUnpack.cxx.

References fhicl::other.

Referenced by daq2raw::BeamlineUnpack::UnpackDigits().

128  {
129  fOtherDigit = other;
130  return;
131 }
std::vector< rawdata::RawBeamlineDigit > fOtherDigit
void daq2raw::BeamlineEvent::AddPaddleDigit ( std::vector< rawdata::RawBeamlineDigit paddle)

Definition at line 116 of file BeamlineUnpack.cxx.

Referenced by daq2raw::BeamlineUnpack::UnpackDigits().

116  {
117  fPaddleDigit = paddle;
118  return;
119 }
std::vector< rawdata::RawBeamlineDigit > fPaddleDigit
void daq2raw::BeamlineEvent::AddTDUTime ( uint64_t  tduTime)

Definition at line 80 of file BeamlineUnpack.cxx.

Referenced by daq2raw::BeamlineUnpack::UnpackTrigger().

80  {
81  fTDUTime = tduTime;
82  return;
83 }
void daq2raw::BeamlineEvent::AddTimestamp ( uint64_t  timestamp)

Definition at line 74 of file BeamlineUnpack.cxx.

References submit_nova_art::timestamp.

Referenced by daq2raw::BeamlineUnpack::UnpackTrigger().

74  {
76  return;
77 }
void daq2raw::BeamlineEvent::AddToF ( std::vector< rawdata::RawBeamlineDigit tof)

Definition at line 92 of file BeamlineUnpack.cxx.

Referenced by daq2raw::BeamlineUnpack::UnpackDigits().

92  {
93  fToF = tof;
94  return;
95 }
std::vector< rawdata::RawBeamlineDigit > fToF
void daq2raw::BeamlineEvent::AddTrigger ( std::vector< rawdata::RawBeamlineTrigger trigger)

Definition at line 86 of file BeamlineUnpack.cxx.

Referenced by daq2raw::BeamlineUnpack::UnpackTrigger().

86  {
87  fTrigger = trigger;
88  return;
89 }
std::vector< rawdata::RawBeamlineTrigger > fTrigger
void daq2raw::BeamlineEvent::AddWC ( std::vector< rawdata::RawBeamlineWC wc)

Definition at line 98 of file BeamlineUnpack.cxx.

Referenced by daq2raw::BeamlineUnpack::UnpackWC().

98  {
99  fWC = wc;
100  return;
101 }
std::vector< rawdata::RawBeamlineWC > fWC
void daq2raw::BeamlineEvent::AddWCDigit ( std::vector< rawdata::RawBeamlineDigit mwpc)

Definition at line 122 of file BeamlineUnpack.cxx.

Referenced by daq2raw::BeamlineUnpack::UnpackDigits().

122  {
123  fWCDigit = wc;
124  return;
125 }
std::vector< rawdata::RawBeamlineDigit > fWCDigit
unsigned int daq2raw::BeamlineEvent::EventNumber ( ) const

Definition at line 63 of file BeamlineUnpack.cxx.

Referenced by daq2raw::BeamlineRawInputDriver::makeEvent().

63  {
64  return fEventNumber;
65 }
std::vector< rawdata::RawBeamlineDigit > daq2raw::BeamlineEvent::GetCherenkov ( ) const

Definition at line 181 of file BeamlineUnpack.cxx.

Referenced by daq2raw::BeamlineRawInputDriver::makeEvent(), and daq2raw::TestBeamRawInputDriver::readNext().

181  {
182  return fCherenkov;
183 }
std::vector< rawdata::RawBeamlineDigit > fCherenkov
rawdata::RawBeamlineConfig daq2raw::BeamlineEvent::GetConfig ( ) const

Definition at line 151 of file BeamlineUnpack.cxx.

Referenced by daq2raw::BeamlineRawInputDriver::makeEvent(), and daq2raw::TestBeamRawInputDriver::readNext().

151  {
152  return fConfig;
153 }
rawdata::RawBeamlineConfig fConfig
std::vector< rawdata::RawBeamlineDigit > daq2raw::BeamlineEvent::GetMuonStack ( ) const

Definition at line 186 of file BeamlineUnpack.cxx.

Referenced by daq2raw::BeamlineRawInputDriver::makeEvent(), and daq2raw::TestBeamRawInputDriver::readNext().

186  {
187  return fMuonStack;
188 }
std::vector< rawdata::RawBeamlineDigit > fMuonStack
std::vector< rawdata::RawBeamlineDigit > daq2raw::BeamlineEvent::GetOtherDigit ( ) const

Definition at line 201 of file BeamlineUnpack.cxx.

Referenced by daq2raw::BeamlineRawInputDriver::makeEvent().

201  {
202  return fOtherDigit;
203 }
std::vector< rawdata::RawBeamlineDigit > fOtherDigit
std::vector< rawdata::RawBeamlineDigit > daq2raw::BeamlineEvent::GetPaddleDigit ( ) const

Definition at line 191 of file BeamlineUnpack.cxx.

Referenced by daq2raw::BeamlineRawInputDriver::makeEvent().

191  {
192  return fPaddleDigit;
193 }
std::vector< rawdata::RawBeamlineDigit > fPaddleDigit
uint64_t daq2raw::BeamlineEvent::GetTDUTime ( ) const

Definition at line 161 of file BeamlineUnpack.cxx.

Referenced by daq2raw::TestBeamRawInputDriver::readBeamline().

161  {
162  return fTDUTime;
163 }
uint64_t daq2raw::BeamlineEvent::GetTimestamp ( ) const

Definition at line 156 of file BeamlineUnpack.cxx.

156  {
157  return fTimestamp;
158 }
std::vector< rawdata::RawBeamlineDigit > daq2raw::BeamlineEvent::GetToF ( ) const

Definition at line 171 of file BeamlineUnpack.cxx.

Referenced by daq2raw::BeamlineRawInputDriver::makeEvent(), and daq2raw::TestBeamRawInputDriver::readNext().

171  {
172  return fToF;
173 }
std::vector< rawdata::RawBeamlineDigit > fToF
std::vector< rawdata::RawBeamlineTrigger > daq2raw::BeamlineEvent::GetTrigger ( ) const

Definition at line 166 of file BeamlineUnpack.cxx.

Referenced by daq2raw::BeamlineRawInputDriver::makeEvent(), and daq2raw::TestBeamRawInputDriver::readNext().

166  {
167  return fTrigger;
168 }
std::vector< rawdata::RawBeamlineTrigger > fTrigger
std::vector< rawdata::RawBeamlineWC > daq2raw::BeamlineEvent::GetWC ( ) const

Definition at line 176 of file BeamlineUnpack.cxx.

Referenced by daq2raw::BeamlineRawInputDriver::makeEvent(), and daq2raw::TestBeamRawInputDriver::readNext().

176  {
177  return fWC;
178 }
std::vector< rawdata::RawBeamlineWC > fWC
std::vector< rawdata::RawBeamlineDigit > daq2raw::BeamlineEvent::GetWCDigit ( ) const

Definition at line 196 of file BeamlineUnpack.cxx.

Referenced by daq2raw::BeamlineRawInputDriver::makeEvent().

196  {
197  return fWCDigit;
198 }
std::vector< rawdata::RawBeamlineDigit > fWCDigit
bool daq2raw::BeamlineEvent::GoodEvent ( ) const

Definition at line 134 of file BeamlineUnpack.cxx.

134  {
135  return fGoodEvent;
136 }
void daq2raw::BeamlineEvent::SetBadEvent ( )

Definition at line 145 of file BeamlineUnpack.cxx.

Referenced by daq2raw::BeamlineUnpack::UnpackWC().

145  {
146  fGoodEvent = false;
147  return;
148 }
void daq2raw::BeamlineEvent::SetGoodEvent ( )

Definition at line 139 of file BeamlineUnpack.cxx.

139  {
140  fGoodEvent = true;
141  return;
142 }

Member Data Documentation

std::vector<rawdata::RawBeamlineDigit> daq2raw::BeamlineEvent::fCherenkov
private

Definition at line 148 of file BeamlineUnpack.h.

rawdata::RawBeamlineConfig daq2raw::BeamlineEvent::fConfig
private

Definition at line 142 of file BeamlineUnpack.h.

unsigned int daq2raw::BeamlineEvent::fEventNumber
private

Definition at line 138 of file BeamlineUnpack.h.

bool daq2raw::BeamlineEvent::fGoodEvent
private

Definition at line 140 of file BeamlineUnpack.h.

std::vector<rawdata::RawBeamlineDigit> daq2raw::BeamlineEvent::fMuonStack
private

Definition at line 149 of file BeamlineUnpack.h.

std::vector<rawdata::RawBeamlineDigit> daq2raw::BeamlineEvent::fOtherDigit
private

Definition at line 152 of file BeamlineUnpack.h.

std::vector<rawdata::RawBeamlineDigit> daq2raw::BeamlineEvent::fPaddleDigit
private

Definition at line 150 of file BeamlineUnpack.h.

uint64_t daq2raw::BeamlineEvent::fTDUTime
private

Definition at line 144 of file BeamlineUnpack.h.

uint64_t daq2raw::BeamlineEvent::fTimestamp
private

Definition at line 143 of file BeamlineUnpack.h.

std::vector<rawdata::RawBeamlineDigit> daq2raw::BeamlineEvent::fToF
private

Definition at line 146 of file BeamlineUnpack.h.

std::vector<rawdata::RawBeamlineTrigger> daq2raw::BeamlineEvent::fTrigger
private

Definition at line 145 of file BeamlineUnpack.h.

std::vector<rawdata::RawBeamlineWC> daq2raw::BeamlineEvent::fWC
private

Definition at line 147 of file BeamlineUnpack.h.

std::vector<rawdata::RawBeamlineDigit> daq2raw::BeamlineEvent::fWCDigit
private

Definition at line 151 of file BeamlineUnpack.h.


The documentation for this class was generated from the following files: