Public Member Functions | Public Attributes | List of all members
evd::RawDrawingOptions Class Reference

Display parameters for the raw data. More...

#include <RawDrawingOptions.h>

Inheritance diagram for evd::RawDrawingOptions:

Public Member Functions

 RawDrawingOptions (fhicl::ParameterSet const &pset)
 
void reconfigure (fhicl::ParameterSet const &pset) override
 
geo::TPCID CurrentTPC () const
 Returns the current TPC as a TPCID. More...
 
double RoIthreshold (geo::PlaneID const &planeID) const
 Returns the region of interest threshold for the specified wire plane. More...
 
double RoIthreshold (geo::PlaneID::PlaneID_t plane) const
 Returns the region of interest threshold for the specified wire plane. More...
 

Public Attributes

int fDrawRawDataOrCalibWires
 0 for raw More...
 
int fTicksPerPoint
 number of ticks to include in one point More...
 
int fScaleDigitsByCharge
 scale the size of the digit by the charge More...
 
double fMinSignal
 minimum ADC count to display a time bin More...
 
double fStartTick
 Starting tick for the display. More...
 
double fTicks
 number of TDC ticks to display, ie # fTicks past fStartTick More...
 
int fAxisOrientation
 0 = TDC values on y-axis, wire number on x-axis, 1 = swapped More...
 
unsigned int fTPC
 TPC number to draw, typically set by TWQProjectionView. More...
 
unsigned int fCryostat
 Cryostat number to draw, typically set by TWQProjectionView. More...
 
unsigned int fMinChannelStatus
 Display channels with this status and above. More...
 
unsigned int fMaxChannelStatus
 Display channels with this status and below. More...
 
std::vector< art::InputTagfRawDataLabels
 module label that made the raw digits, default is daq More...
 
bool fUncompressWithPed
 Option to uncompress with pedestal. Turned off by default. More...
 
bool fSeeBadChannels
 Allow "bad" channels to be viewed. More...
 
std::vector< float > fRoIthresholds
 region of interest thresholds, per plane More...
 
int fPedestalOption
 0: use DetPedestalService; 1: Use pedestal in raw::RawDigt; 2: no ped subtraction More...
 
fhicl::ParameterSet fRawDigitDrawerParams
 FHICL parameters for the RawDigit waveform display. More...
 

Detailed Description

Display parameters for the raw data.

Configuration parameters

This is an incomplete list of the supported parameters:

Definition at line 40 of file RawDrawingOptions.h.

Constructor & Destructor Documentation

evd::RawDrawingOptions::RawDrawingOptions ( fhicl::ParameterSet const &  pset)
explicit

Definition at line 16 of file RawDrawingOptions_service.cc.

17  : evdb::Reconfigurable{pset}
18  {
19  this->reconfigure(pset);
20  }
void reconfigure(fhicl::ParameterSet const &pset) override

Member Function Documentation

geo::TPCID evd::RawDrawingOptions::CurrentTPC ( ) const
inline

Returns the current TPC as a TPCID.

Definition at line 70 of file RawDrawingOptions.h.

70 { return geo::TPCID(fCryostat, fTPC); }
unsigned int fTPC
TPC number to draw, typically set by TWQProjectionView.
unsigned int fCryostat
Cryostat number to draw, typically set by TWQProjectionView.
IDparameter< geo::TPCID > TPCID
Member type of validated geo::TPCID parameter.
void evd::RawDrawingOptions::reconfigure ( fhicl::ParameterSet const &  pset)
override

Definition at line 23 of file RawDrawingOptions_service.cc.

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  }
int fScaleDigitsByCharge
scale the size of the digit by the charge
unsigned int fTPC
TPC number to draw, typically set by TWQProjectionView.
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.
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
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 ...
bool fUncompressWithPed
Option to uncompress with pedestal. Turned off by default.
double evd::RawDrawingOptions::RoIthreshold ( geo::PlaneID const &  planeID) const
inline

Returns the region of interest threshold for the specified wire plane.

Definition at line 73 of file RawDrawingOptions.h.

74  { return RoIthreshold(planeID.Plane); }
double RoIthreshold(geo::PlaneID const &planeID) const
Returns the region of interest threshold for the specified wire plane.
double evd::RawDrawingOptions::RoIthreshold ( geo::PlaneID::PlaneID_t  plane) const
inline

Returns the region of interest threshold for the specified wire plane.

Definition at line 77 of file RawDrawingOptions.h.

78  {
79  return (plane < fRoIthresholds.size())?
80  fRoIthresholds[plane]: fRoIthresholds.back();
81  } // RoIthreshold(plane number)
std::vector< float > fRoIthresholds
region of interest thresholds, per plane

Member Data Documentation

int evd::RawDrawingOptions::fAxisOrientation

0 = TDC values on y-axis, wire number on x-axis, 1 = swapped

Definition at line 53 of file RawDrawingOptions.h.

unsigned int evd::RawDrawingOptions::fCryostat

Cryostat number to draw, typically set by TWQProjectionView.

Definition at line 55 of file RawDrawingOptions.h.

int evd::RawDrawingOptions::fDrawRawDataOrCalibWires

0 for raw

Definition at line 47 of file RawDrawingOptions.h.

unsigned int evd::RawDrawingOptions::fMaxChannelStatus

Display channels with this status and below.

Definition at line 57 of file RawDrawingOptions.h.

unsigned int evd::RawDrawingOptions::fMinChannelStatus

Display channels with this status and above.

Definition at line 56 of file RawDrawingOptions.h.

double evd::RawDrawingOptions::fMinSignal

minimum ADC count to display a time bin

Definition at line 50 of file RawDrawingOptions.h.

int evd::RawDrawingOptions::fPedestalOption

0: use DetPedestalService; 1: Use pedestal in raw::RawDigt; 2: no ped subtraction

Definition at line 65 of file RawDrawingOptions.h.

std::vector<art::InputTag> evd::RawDrawingOptions::fRawDataLabels

module label that made the raw digits, default is daq

Definition at line 58 of file RawDrawingOptions.h.

fhicl::ParameterSet evd::RawDrawingOptions::fRawDigitDrawerParams

FHICL parameters for the RawDigit waveform display.

Definition at line 67 of file RawDrawingOptions.h.

std::vector<float> evd::RawDrawingOptions::fRoIthresholds

region of interest thresholds, per plane

Definition at line 63 of file RawDrawingOptions.h.

int evd::RawDrawingOptions::fScaleDigitsByCharge

scale the size of the digit by the charge

Definition at line 49 of file RawDrawingOptions.h.

bool evd::RawDrawingOptions::fSeeBadChannels

Allow "bad" channels to be viewed.

Definition at line 61 of file RawDrawingOptions.h.

double evd::RawDrawingOptions::fStartTick

Starting tick for the display.

Definition at line 51 of file RawDrawingOptions.h.

double evd::RawDrawingOptions::fTicks

number of TDC ticks to display, ie # fTicks past fStartTick

Definition at line 52 of file RawDrawingOptions.h.

int evd::RawDrawingOptions::fTicksPerPoint

number of ticks to include in one point

Definition at line 48 of file RawDrawingOptions.h.

unsigned int evd::RawDrawingOptions::fTPC

TPC number to draw, typically set by TWQProjectionView.

Definition at line 54 of file RawDrawingOptions.h.

bool evd::RawDrawingOptions::fUncompressWithPed

Option to uncompress with pedestal. Turned off by default.

Definition at line 60 of file RawDrawingOptions.h.


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