All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | List of all members
daq::DaqDecoderIcarusPMTold::Config Class Reference

Public Member Functions

 Config (fhicl::ParameterSet const &p)
 

Public Attributes

int wait_sec
 
int wait_usec
 
bool produce_header
 
bool produce_metadata
 
bool baseline_calc
 
unsigned n_mode_skip
 
bool subtract_pedestal
 
unsigned channel_per_slot
 
unsigned min_slot_no
 
unsigned timesize
 
double frame_to_dt
 

Detailed Description

Definition at line 50 of file DaqDecoderICARUSPMTold_module.cc.

Constructor & Destructor Documentation

daq::DaqDecoderIcarusPMTold::Config::Config ( fhicl::ParameterSet const &  p)

Definition at line 108 of file DaqDecoderICARUSPMTold_module.cc.

109 {
110  // amount of time to wait in between processing events
111  // useful for debugging redis
112  double wait_time = param.get<double>("wait_time", -1 /* units of seconds */);
113  wait_sec = (int) wait_time;
114  wait_usec = (int) (wait_time / 1000000.);
115  // whether to calcualte the pedestal (and set it in SetPedestal())
116  baseline_calc = param.get<bool>("baseline_calc", false);
117  // whether to put headerinfo in the art root file
118  produce_header = param.get<bool>("produce_header", false);
119  // how many adc values to skip in mode/pedestal finding
120  n_mode_skip = param.get<unsigned>("n_mode_skip", 1);
121  // whether to subtract pedestal
122  subtract_pedestal = param.get<bool>("subtract_pedestal", false);
123 
124  // icarus readout window length
125  timesize = param.get<unsigned>("timesize", 1);
126 
127  // icarus tick length (for timestamp)
128  // should be 1/(2.5MHz) = 0.4mus
129  frame_to_dt = param.get<double>("frame_to_dt", 1);
130 
131  // number of channels in each slot
132  channel_per_slot = param.get<unsigned>("channel_per_slot", 0);
133  // index of 0th slot
134  min_slot_no = param.get<unsigned>("min_slot_no", 0);
135 }

Member Data Documentation

bool daq::DaqDecoderIcarusPMTold::Config::baseline_calc

Definition at line 57 of file DaqDecoderICARUSPMTold_module.cc.

unsigned daq::DaqDecoderIcarusPMTold::Config::channel_per_slot

Definition at line 61 of file DaqDecoderICARUSPMTold_module.cc.

double daq::DaqDecoderIcarusPMTold::Config::frame_to_dt

Definition at line 66 of file DaqDecoderICARUSPMTold_module.cc.

unsigned daq::DaqDecoderIcarusPMTold::Config::min_slot_no

Definition at line 62 of file DaqDecoderICARUSPMTold_module.cc.

unsigned daq::DaqDecoderIcarusPMTold::Config::n_mode_skip

Definition at line 58 of file DaqDecoderICARUSPMTold_module.cc.

bool daq::DaqDecoderIcarusPMTold::Config::produce_header

Definition at line 55 of file DaqDecoderICARUSPMTold_module.cc.

bool daq::DaqDecoderIcarusPMTold::Config::produce_metadata

Definition at line 56 of file DaqDecoderICARUSPMTold_module.cc.

bool daq::DaqDecoderIcarusPMTold::Config::subtract_pedestal

Definition at line 59 of file DaqDecoderICARUSPMTold_module.cc.

unsigned daq::DaqDecoderIcarusPMTold::Config::timesize

Definition at line 65 of file DaqDecoderICARUSPMTold_module.cc.

int daq::DaqDecoderIcarusPMTold::Config::wait_sec

Definition at line 53 of file DaqDecoderICARUSPMTold_module.cc.

int daq::DaqDecoderIcarusPMTold::Config::wait_usec

Definition at line 54 of file DaqDecoderICARUSPMTold_module.cc.


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