FACT++  1.0
void DataCalib::Restart ( )
static

Definition at line 15 of file DataCalib.cc.

References fData, and i.

Referenced by EventBuilderWrapper::SetOutputFormat().

16 {
17  fData.Clear();
18 
19  reinterpret_cast<uint32_t*>(fStats.data())[0] = 0;
20  reinterpret_cast<uint32_t*>(fStats.data())[1] = 0;
21  reinterpret_cast<uint32_t*>(fStats.data())[2] = 0;
22  reinterpret_cast<uint32_t*>(fStats.data())[3] = 0;
23 
24  int i=0;
25  while (i<1024*1440*2+4) // Set mean and RMS to 0
26  fStats[i++] = 0;
27  while (i<1024*1440*3+4)
28  fStats[i++] = 2000./4096; // Set mean to 0.5
29  while (i<1440*1024*6+160*1024*2+4)
30  fStats[i++] = 0; // Set everything else to 0
31 
32  fProcessing = false;
33 }
static std::vector< float > fStats
Definition: DataCalib.h:15
int i
Definition: db_dim_client.c:21
void Clear()
Definition: DrsCalib.h:1366
static DrsCalibration fData
Definition: DataCalib.h:13
static bool fProcessing
Storage for mean and rms values.
Definition: DataCalib.h:19

+ Here is the caller graph for this function: