revtChannel_ROOT.cc
Go to the documentation of this file.
1 #include <io/revtChannel_ROOT.h>
2 #include <io/StreamerUtilities.h>
3 
4 using namespace io;
5 
6 
7 ClassImp(revtChannel_ROOT)
8 
9 
11 {
12  delete fRecData;
13 }
14 
15 
18 {
19  if (this != &c) {
21  fId = c.fId;
23  fIsActive = c.fIsActive;
28  fParity = c.fParity;
31  }
32  return *this;
33 }
34 
35 
37  fStationId(c.GetStationId()),
38  fId(c.GetId()),
39  fIsSaturated(c.IsSaturated()),
40  fIsActive(c.IsActive()),
41  fSignalThreshold(c.GetSignalThreshold()),
42  fNoiseThreshold(c.GetNoiseThreshold()),
43  fScintHighVoltage(c.GetScintHighVoltage()),
44  fChannelADCTrace(c.GetChannelADCTimeSeries()),
45  fParity(c.GetParity()),
46  fRecData(c.HasRecData() ? new revtChannelRecData_ROOT(c.GetRecData()) : nullptr),
47  fFFTDataContainer(c.GetFFTDataContainer())
48 { }
49 
50 
51 void
53  const
54 {
55  if (fStationId != c.GetStationId() || fId != c.GetId())
56  throw utl::IOFailureException("channel/station id in source and destination are not equal!");
57 
58  if (fIsSaturated)
59  c.SetSaturated();
60  else
61  c.SetNotSaturated();
62 
63  if (fIsActive)
64  c.SetActive();
65  else
66  c.SetNotActive();
67 
71 
73 
74  c.SetParity(fParity);
75 
76  if (fRecData) {
77  c.MakeRecData();
78  *fRecData >> c.GetRecData();
79  }
80 
82 }
ChannelFFTDataContainer & GetFFTDataContainer()
retrieve Channel FFTDataContainer (write access)
void MakeRecData()
Make channel reconstructed data object.
int GetId() const
Return Id of the Channel.
ChannelRecData & GetRecData()
Get channel level reconstructed data.
void SetSaturated()
Persistent revt::ChannelRecData using ROOT.
int GetStationId() const
Return Id of the station to which this Channel belongs.
void SetNoiseThreshold(const unsigned int thresh)
From DAQ.
Base class to report exceptions in IO.
Persistent Revent Channel using ROOT.
void DeepCopy(T *&destination, U *const source)
unsigned int fSignalThreshold
unsigned int fNoiseThreshold
void SetSignalThreshold(const unsigned int thresh)
void SetScintHighVoltage(const double scinthv)
From DAQ.
ChannelADCTimeSeries & GetChannelADCTimeSeries()
Get Channel ADC trace (write access, only use this if you intend to change the data) ...
Class that holds the data associated to an individual radio channel.
bool IsActive(const sevt::Station &s)
void operator>>(revt::Channel &c) const
TraceI_ROOT fChannelADCTrace
void SetNotSaturated()
void SetParity(const unsigned int parity)
Set parity of the Channel.
revtChannel_ROOT & operator=(const revtChannel_ROOT &c)
void SetNotActive()
revtChannelRecData_ROOT * fRecData
ChannelFFTDataContainer_ROOT fFFTDataContainer
void SetActive()
Active means that it is used in reconstruction. By default this is true after read-in, but can be deactivated later.

, generated on Tue Sep 26 2023.