Public Member Functions | Public Attributes | List of all members
PU Struct Reference

Public Member Functions

 PU (Json::Value pu)
 
float operator() (int chid)
 

Public Attributes

Json::Value pu
 

Detailed Description

Definition at line 250 of file FrameSaver.cxx.

Constructor & Destructor Documentation

PU::PU ( Json::Value  pu)
inline

Definition at line 253 of file FrameSaver.cxx.

253 : pu(pu) {}
Json::Value pu
Definition: FrameSaver.cxx:251

Member Function Documentation

float PU::operator() ( int  chid)
inline

Definition at line 256 of file FrameSaver.cxx.

257  {
258  if (pu.isNumeric()) { return pu.asFloat(); }
259  if (pu.asString() == "fiction") {
261  const auto& pv = dps->GetPedestalProvider();
262  return pv.PedMean(chid);
263  }
264  return 0.0;
265  }
const DetPedestalProvider & GetPedestalProvider() const
virtual float PedMean(raw::ChannelID_t ch) const =0
Retrieve pedestal information.
Json::Value pu
Definition: FrameSaver.cxx:251

Member Data Documentation

Json::Value PU::pu

Definition at line 251 of file FrameSaver.cxx.


The documentation for this struct was generated from the following file: