LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
RawDrawingOptions_service.cc
Go to the documentation of this file.
1 
6 // Framework includes
7 
11 
12 #include <iostream>
13 
14 namespace evd {
15 
16  //......................................................................
18  art::ActivityRegistry& /* reg */)
19  : evdb::Reconfigurable{pset}
20  {
21  this->reconfigure(pset);
22  }
23 
24  //......................................................................
26  {
27  }
28 
29  //......................................................................
31  {
32  fDrawRawDataOrCalibWires = pset.get< int >("DrawRawDataOrCalibWires" );
33  fScaleDigitsByCharge = pset.get< int >("ScaleDigitsByCharge" );
34  fTicksPerPoint = pset.get< int >("TicksPerPoint" );
35  fMinSignal = pset.get< double >("MinimumSignal" );
36  fStartTick = pset.get< double >("StartTick", 0 );
37  fTicks = pset.get< double >("TotalTicks", 2048 );
38  fAxisOrientation = pset.get< int >("AxisOrientation", 0 );
39  fRawDataLabel = pset.get< art::InputTag >("RawDataLabel", "daq");
40  fTPC = pset.get< unsigned int>("TPC", 0 );
41  fCryostat = pset.get< unsigned int>("Cryostat", 0 );
42  fMinChannelStatus = pset.get< unsigned int>("MinChannelStatus", 0 );
43  fMaxChannelStatus = pset.get< unsigned int>("MaxChannelStatus", lariov::ChannelStatusProvider::InvalidStatus - 1);
44  fUncompressWithPed = pset.get< bool >("UncompressWithPed",false);
45  fSeeBadChannels = pset.get< bool >("SeeBadChannels", false);
46  fRoIthresholds = pset.get< std::vector<float> >("RoIthresholds", std::vector<float>());
47  fPedestalOption = pset.get< int >("PedestalOption", 0 );
48 
49  if (fRoIthresholds.empty()) fRoIthresholds.push_back((float) fMinSignal);
50  }
51 }
52 
53 namespace evd {
54 
56 
57 } // namespace evd
int fScaleDigitsByCharge
scale the size of the digit by the charge
unsigned int fTPC
TPC number to draw, typically set by TWQProjectionView.
RawDrawingOptions(fhicl::ParameterSet const &pset, art::ActivityRegistry &reg)
Display parameters for the raw data.
#define DEFINE_ART_SERVICE(svc)
Definition: ServiceMacros.h:93
int fDrawRawDataOrCalibWires
0 for raw
std::vector< float > fRoIthresholds
region of interest thresholds, per plane
art::InputTag fRawDataLabel
module label that made the raw digits, default is daq
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:231
double fMinSignal
minimum ADC count to display a time bin
double fTicks
number of TDC ticks to display, ie # fTicks past fStartTick
void reconfigure(fhicl::ParameterSet const &pset)
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
double fStartTick
Starting tick for the display.
int fPedestalOption
0: use DetPedestalService; 1: Use pedestal in raw::RawDigt; 2: no ped subtraction ...
bool fUncompressWithPed
Option to uncompress with pedestal. Turned off by default.