LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
RawDrawingOptions.cc
Go to the documentation of this file.
1 
8 #include "larevt/CalibrationDBI/Interface/ChannelStatusProvider.h"
9 
10 namespace evd {
11 
12  //......................................................................
13  RawDrawingOptions::RawDrawingOptions(fhicl::ParameterSet const& pset) : evdb::Reconfigurable{pset}
14  {
15  this->reconfigure(pset);
16  }
17 
18  //......................................................................
20  {
21  fDrawRawDataOrCalibWires = pset.get<int>("DrawRawDataOrCalibWires");
22  fScaleDigitsByCharge = pset.get<int>("ScaleDigitsByCharge");
23  fTicksPerPoint = pset.get<int>("TicksPerPoint");
24  fMinSignal = pset.get<double>("MinimumSignal");
25  fStartTick = pset.get<double>("StartTick", 0);
26  fTicks = pset.get<double>("TotalTicks", 2048);
27  fAxisOrientation = pset.get<int>("AxisOrientation", 0);
29  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);
34  pset.get<unsigned int>("MaxChannelStatus", lariov::ChannelStatusProvider::InvalidStatus - 1);
35  fUncompressWithPed = pset.get<bool>("UncompressWithPed", false);
36  fSeeBadChannels = pset.get<bool>("SeeBadChannels", false);
37  fRoIthresholds = pset.get<std::vector<float>>("RoIthresholds", std::vector<float>());
38  fPedestalOption = pset.get<int>("PedestalOption", 0);
39 
40  if (fRoIthresholds.empty()) fRoIthresholds.push_back((float)fMinSignal);
41 
42  fRawDigitDrawerParams = pset.get<fhicl::ParameterSet>("RawDigitDrawer");
43  }
44 }
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.
Manage all things related to colors for the event display.
LArSoft includes.
unsigned int fCryostat
Cryostat number to draw, typically set by TWQProjectionView.
unsigned int fMaxChannelStatus
Display channels with this status and below.
T get(std::string const &key) const
Definition: ParameterSet.h:314
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 "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
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.