All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RawDrawingOptions.cc
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 /// \file RawDrawingOptions_service.cc
3 ///
4 /// \author brebel@fnal.gov
5 
6 /// LArSoft includes
9 
10 namespace evd {
11 
12  //......................................................................
13  RawDrawingOptions::RawDrawingOptions(fhicl::ParameterSet const& pset)
14  : evdb::Reconfigurable{pset}
15  {
16  this->reconfigure(pset);
17  }
18 
19  //......................................................................
20  void RawDrawingOptions::reconfigure(fhicl::ParameterSet const& pset)
21  {
22  fDrawRawDataOrCalibWires = pset.get< int >("DrawRawDataOrCalibWires" );
23  fScaleDigitsByCharge = pset.get< int >("ScaleDigitsByCharge" );
24  fTicksPerPoint = pset.get< int >("TicksPerPoint" );
25  fMinSignal = pset.get< double >("MinimumSignal" );
26  fStartTick = pset.get< double >("StartTick", 0 );
27  fTicks = pset.get< double >("TotalTicks", 2048 );
28  fAxisOrientation = pset.get< int >("AxisOrientation", 0 );
29  fRawDataLabels = pset.get< std::vector<art::InputTag> >("RawDataLabels", std::vector<art::InputTag>() = {"daq"} );
30  fTPC = pset.get< unsigned int >("TPC", 0 );
31  fCryostat = pset.get< unsigned int >("Cryostat", 0 );
32  fMinChannelStatus = pset.get< unsigned int >("MinChannelStatus", 0 );
33  fMaxChannelStatus = pset.get< unsigned int >("MaxChannelStatus", lariov::ChannelStatusProvider::InvalidStatus - 1);
34  fUncompressWithPed = pset.get< bool >("UncompressWithPed", false);
35  fSeeBadChannels = pset.get< bool >("SeeBadChannels", false);
36  fRoIthresholds = pset.get< std::vector<float> >("RoIthresholds", std::vector<float>());
37  fPedestalOption = pset.get< int >("PedestalOption", 0 );
38 
39  if (fRoIthresholds.empty()) fRoIthresholds.push_back((float) fMinSignal);
40 
41  fRawDigitDrawerParams = pset.get< fhicl::ParameterSet >("RawDigitDrawer" );
42  }
43 }
int fScaleDigitsByCharge
scale the size of the digit by the charge
unsigned int fTPC
TPC number to draw, typically set by TWQProjectionView.
void reconfigure(fhicl::ParameterSet const &pset) override
int fDrawRawDataOrCalibWires
0 for raw
std::vector< float > fRoIthresholds
region of interest thresholds, per plane
fhicl::ParameterSet fRawDigitDrawerParams
FHICL parameters for the RawDigit waveform display.
for pfile in ack l reconfigure(.*) override"` do echo "checking $
unsigned int fCryostat
Cryostat number to draw, typically set by TWQProjectionView.
static constexpr Status_t InvalidStatus
Value or invalid status.
unsigned int fMaxChannelStatus
Display channels with this status and below.
double fMinSignal
minimum ADC count to display a time bin
double fTicks
number of TDC ticks to display, ie # fTicks past fStartTick
int fTicksPerPoint
number of ticks to include in one point
bool fSeeBadChannels
Allow &quot;bad&quot; channels to be viewed.
unsigned int fMinChannelStatus
Display channels with this status and above.
int fAxisOrientation
0 = TDC values on y-axis, wire number on x-axis, 1 = swapped
std::vector< art::InputTag > fRawDataLabels
module label that made the raw digits, default is daq
Interface for experiment-specific channel quality info provider.
double fStartTick
Starting tick for the display.
int fPedestalOption
0: use DetPedestalService; 1: Use pedestal in raw::RawDigt; 2: no ped subtraction ...
RawDrawingOptions(fhicl::ParameterSet const &pset)
bool fUncompressWithPed
Option to uncompress with pedestal. Turned off by default.