LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
evd::RawDrawingOptions Class Reference

Display parameters for the raw data. More...

#include "RawDrawingOptions.h"

Inheritance diagram for evd::RawDrawingOptions:
evdb::Reconfigurable

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...
 
void do_reconfigure (fhicl::ParameterSet const &pset)
 

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:

  • RoIthresholds (list of real numbers, default: empty): threshold in ADC counts for a tick on a wire to be "interesting", thus extending the region of interest to include it. The thresholds are specified one per plane; if no threshold is specified for a plane, the threshold for the last plane is used instead (therefore specifying just one threshold will apply the same threshold to all planes). If no threshold is specified at all, the value of 'MinSignal' parameter is used as threshold for all planes

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.

References reconfigure().

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

Referenced by evd::TQPad::BookHistogram(), evd::RawDataDrawer::FillQHisto(), evd::RawDataDrawer::FillTQHisto(), evd::TWQMultiTPCProjectionView::PrintCharge(), evd::TWQProjectionView::PrintCharge(), evd::RawDataDrawer::RawDigit2D(), evd::RawDataDrawer::RunDrawOperation(), evd::RawDataDrawer::RunRoIextractor(), and evd::TWireProjPad::TWireProjPad().

74 { 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 evdb::Reconfigurable::do_reconfigure ( fhicl::ParameterSet const &  pset)
inlineinherited

Definition at line 16 of file Reconfigurable.h.

References evdb::Reconfigurable::reconfigure(), and evdb::Reconfigurable::~Reconfigurable().

16 { reconfigure(pset); }
virtual void reconfigure(fhicl::ParameterSet const &)=0
void evd::RawDrawingOptions::reconfigure ( fhicl::ParameterSet const &  pset)
overridevirtual

Implements evdb::Reconfigurable.

Definition at line 19 of file RawDrawingOptions.cc.

References fAxisOrientation, fCryostat, fDrawRawDataOrCalibWires, fMaxChannelStatus, fMinChannelStatus, fMinSignal, fPedestalOption, fRawDataLabels, fRawDigitDrawerParams, fRoIthresholds, fScaleDigitsByCharge, fSeeBadChannels, fStartTick, fTicks, fTicksPerPoint, fTPC, fUncompressWithPed, and fhicl::ParameterSet::get().

Referenced by RawDrawingOptions().

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

References geo::PlaneID::Plane, and RoIthreshold().

Referenced by RoIthreshold().

77 { 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 80 of file RawDrawingOptions.h.

References DECLARE_ART_SERVICE, and art::LEGACY.

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

Member Data Documentation

int evd::RawDrawingOptions::fDrawRawDataOrCalibWires

0 for raw

Definition at line 48 of file RawDrawingOptions.h.

Referenced by evd::RecoBaseDrawer::Cluster2D(), evd::TQPad::Draw(), evd::RecoBaseDrawer::Draw2DSlopeEndPoints(), evd::RecoBaseDrawer::EndPoint2D(), evd::RecoBaseDrawer::Event2D(), evd::RecoBaseDrawer::Event3D(), evdb_tool::DrawWireHist::Fill(), evd::RawDataDrawer::FillQHisto(), evd::RecoBaseDrawer::FillQHisto(), evd::RawDataDrawer::FillTQHisto(), evd::RecoBaseDrawer::FillTQHisto(), evd::RecoBaseDrawer::FillTQHistoDP(), evd::RecoBaseDrawer::Hit2D(), evd::RecoBaseDrawer::OpFlash2D(), evd::RecoBaseDrawer::OpFlashOrtho(), evd::RecoBaseDrawer::PFParticle3D(), evd::RecoBaseDrawer::PFParticleOrtho(), evd::TWQMultiTPCProjectionView::PrintCharge(), evd::TWQProjectionView::PrintCharge(), evd::RecoBaseDrawer::Prong2D(), evd::RecoBaseDrawer::Prong3D(), evd::RecoBaseDrawer::ProngOrtho(), evd::RawDataDrawer::RawDigit2D(), reconfigure(), evd::RawDataDrawer::RunDrawOperation(), evd::RecoBaseDrawer::Seed2D(), evd::TWQProjectionView::SetRawCalib(), evd::TWQMultiTPCProjectionView::SetRawCalib(), evd::TWireProjPad::ShowFull(), evd::RecoBaseDrawer::Slice2D(), evd::RecoBaseDrawer::Slice3D(), evd::RecoBaseDrawer::SpacePoint3D(), evd::RecoBaseDrawer::SpacePointOrtho(), evd::TWQMultiTPCProjectionView::TWQMultiTPCProjectionView(), evd::TWQProjectionView::TWQProjectionView(), evd::RecoBaseDrawer::Vertex2D(), evd::RecoBaseDrawer::Vertex3D(), evd::RecoBaseDrawer::VertexOrtho(), evd::RecoBaseDrawer::Wire2D(), evd::TWQMultiTPCProjectionView::ZoomInterest(), and evd::TWQProjectionView::ZoomInterest().

unsigned int evd::RawDrawingOptions::fMaxChannelStatus

Display channels with this status and below.

Definition at line 58 of file RawDrawingOptions.h.

Referenced by evd::RawDataDrawer::ProcessChannelWithStatus(), and reconfigure().

unsigned int evd::RawDrawingOptions::fMinChannelStatus

Display channels with this status and above.

Definition at line 57 of file RawDrawingOptions.h.

Referenced by reconfigure().

int evd::RawDrawingOptions::fPedestalOption

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

Definition at line 68 of file RawDrawingOptions.h.

Referenced by evdb_tool::DrawRawHist::Fill(), evd::RawDataDrawer::FillQHisto(), evd::RawDataDrawer::FillTQHisto(), reconfigure(), and evd::RawDataDrawer::RunOperation().

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.

Referenced by evdb_tool::DrawRawHist::Fill(), evd::RawDataDrawer::FillQHisto(), evd::RawDataDrawer::FillTQHisto(), evd::RawDataDrawer::RawDigit2D(), and reconfigure().

fhicl::ParameterSet evd::RawDrawingOptions::fRawDigitDrawerParams

FHICL parameters for the RawDigit waveform display.

Definition at line 71 of file RawDrawingOptions.h.

Referenced by reconfigure(), and evd::TQPad::TQPad().

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

region of interest thresholds, per plane

Definition at line 65 of file RawDrawingOptions.h.

Referenced by reconfigure().

int evd::RawDrawingOptions::fScaleDigitsByCharge

scale the size of the digit by the charge

Definition at line 50 of file RawDrawingOptions.h.

Referenced by evd::RawDataDrawer::QueueDrawingBoxes(), reconfigure(), and evd::RecoBaseDrawer::Wire2D().

bool evd::RawDrawingOptions::fSeeBadChannels
double evd::RawDrawingOptions::fStartTick

Starting tick for the display.

Definition at line 52 of file RawDrawingOptions.h.

Referenced by evd::RawDataDrawer::RawDataDrawer(), and reconfigure().

double evd::RawDrawingOptions::fTicks
int evd::RawDrawingOptions::fTicksPerPoint

number of ticks to include in one point

Definition at line 49 of file RawDrawingOptions.h.

Referenced by evd::RawDataDrawer::BoxDrawer::Initialize(), reconfigure(), and evd::RecoBaseDrawer::Wire2D().

bool evd::RawDrawingOptions::fUncompressWithPed

Option to uncompress with pedestal. Turned off by default.

Definition at line 62 of file RawDrawingOptions.h.

Referenced by reconfigure(), and evd::details::RawDigitInfo_t::UncompressData().


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