All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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::InputTag > fRawDataLabels
 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 42 of file RawDrawingOptions.h.

Constructor & Destructor Documentation

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

Definition at line 13 of file RawDrawingOptions.cc.

14  : evdb::Reconfigurable{pset}
15  {
16  this->reconfigure(pset);
17  }
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 72 of file RawDrawingOptions.h.

72 { 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 20 of file RawDrawingOptions.cc.

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  }
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.
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
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 75 of file RawDrawingOptions.h.

76  { 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 79 of file RawDrawingOptions.h.

80  {
81  return (plane < fRoIthresholds.size())?
82  fRoIthresholds[plane]: fRoIthresholds.back();
83  } // 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 55 of file RawDrawingOptions.h.

unsigned int evd::RawDrawingOptions::fCryostat

Cryostat number to draw, typically set by TWQProjectionView.

Definition at line 57 of file RawDrawingOptions.h.

int evd::RawDrawingOptions::fDrawRawDataOrCalibWires

0 for raw

Definition at line 49 of file RawDrawingOptions.h.

unsigned int evd::RawDrawingOptions::fMaxChannelStatus

Display channels with this status and below.

Definition at line 59 of file RawDrawingOptions.h.

unsigned int evd::RawDrawingOptions::fMinChannelStatus

Display channels with this status and above.

Definition at line 58 of file RawDrawingOptions.h.

double evd::RawDrawingOptions::fMinSignal

minimum ADC count to display a time bin

Definition at line 52 of file RawDrawingOptions.h.

int evd::RawDrawingOptions::fPedestalOption

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

Definition at line 67 of file RawDrawingOptions.h.

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

module label that made the raw digits, default is daq

Definition at line 60 of file RawDrawingOptions.h.

fhicl::ParameterSet evd::RawDrawingOptions::fRawDigitDrawerParams

FHICL parameters for the RawDigit waveform display.

Definition at line 69 of file RawDrawingOptions.h.

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

region of interest thresholds, per plane

Definition at line 65 of file RawDrawingOptions.h.

int evd::RawDrawingOptions::fScaleDigitsByCharge

scale the size of the digit by the charge

Definition at line 51 of file RawDrawingOptions.h.

bool evd::RawDrawingOptions::fSeeBadChannels

Allow "bad" channels to be viewed.

Definition at line 63 of file RawDrawingOptions.h.

double evd::RawDrawingOptions::fStartTick

Starting tick for the display.

Definition at line 53 of file RawDrawingOptions.h.

double evd::RawDrawingOptions::fTicks

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

Definition at line 54 of file RawDrawingOptions.h.

int evd::RawDrawingOptions::fTicksPerPoint

number of ticks to include in one point

Definition at line 50 of file RawDrawingOptions.h.

unsigned int evd::RawDrawingOptions::fTPC

TPC number to draw, typically set by TWQProjectionView.

Definition at line 56 of file RawDrawingOptions.h.

bool evd::RawDrawingOptions::fUncompressWithPed

Option to uncompress with pedestal. Turned off by default.

Definition at line 62 of file RawDrawingOptions.h.


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