RawDrawingOptions_service.cc
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 /// \file RawDrawingOptions_service.cc
3 ///
4 /// \author brebel@fnal.gov
5 
6 // Framework includes
8 
9 /// LArSoft includes
12 
13 namespace evd {
14 
15  //......................................................................
17  : evdb::Reconfigurable{pset}
18  {
19  this->reconfigure(pset);
20  }
21 
22  //......................................................................
24  {
25  fDrawRawDataOrCalibWires = pset.get< int >("DrawRawDataOrCalibWires" );
26  fScaleDigitsByCharge = pset.get< int >("ScaleDigitsByCharge" );
27  fTicksPerPoint = pset.get< int >("TicksPerPoint" );
28  fMinSignal = pset.get< double >("MinimumSignal" );
29  fStartTick = pset.get< double >("StartTick", 0 );
30  fTicks = pset.get< double >("TotalTicks", 2048 );
31  fAxisOrientation = pset.get< int >("AxisOrientation", 0 );
32  fRawDataLabels = pset.get< std::vector<art::InputTag> >("RawDataLabels", std::vector<art::InputTag>() = {"daq"} );
33  fTPC = pset.get< unsigned int >("TPC", 0 );
34  fCryostat = pset.get< unsigned int >("Cryostat", 0 );
35  fMinChannelStatus = pset.get< unsigned int >("MinChannelStatus", 0 );
36  fMaxChannelStatus = pset.get< unsigned int >("MaxChannelStatus", lariov::ChannelStatusProvider::InvalidStatus - 1);
37  fUncompressWithPed = pset.get< bool >("UncompressWithPed", false);
38  fSeeBadChannels = pset.get< bool >("SeeBadChannels", false);
39  fRoIthresholds = pset.get< std::vector<float> >("RoIthresholds", std::vector<float>());
40  fPedestalOption = pset.get< int >("PedestalOption", 0 );
41 
42  if (fRoIthresholds.empty()) fRoIthresholds.push_back((float) fMinSignal);
43 
44  fRawDigitDrawerParams = pset.get< fhicl::ParameterSet >("RawDigitDrawer" );
45  }
46 }
47 
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
Display parameters for the raw data.
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.
LArSoft includes.
Definition: InfoTransfer.h:33
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.
T get(std::string const &key) const
Definition: ParameterSet.h:271
double fMinSignal
minimum ADC count to display a time bin
double fTicks
number of TDC ticks to display, ie # fTicks past fStartTick
#define DEFINE_ART_SERVICE(svc)
int fTicksPerPoint
number of ticks to include in one point
bool fSeeBadChannels
Allow "bad" 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.