Public Member Functions | Private Attributes | List of all members
pdune::FakePedestal Class Reference
Inheritance diagram for pdune::FakePedestal:
art::EDAnalyzer art::detail::Analyzer art::detail::LegacyModule art::Observer art::ModuleBase

Public Member Functions

 FakePedestal (fhicl::ParameterSet const &p)
 
 FakePedestal (FakePedestal const &)=delete
 
 FakePedestal (FakePedestal &&)=delete
 
FakePedestaloperator= (FakePedestal const &)=delete
 
FakePedestaloperator= (FakePedestal &&)=delete
 
void analyze (art::Event const &e) override
 
- Public Member Functions inherited from art::EDAnalyzer
 EDAnalyzer (fhicl::ParameterSet const &pset)
 
template<typename Config >
 EDAnalyzer (Table< Config > const &config)
 
std::string workerType () const
 
- Public Member Functions inherited from art::detail::Analyzer
virtual ~Analyzer () noexcept
 
 Analyzer (fhicl::ParameterSet const &pset)
 
template<typename Config >
 Analyzer (Table< Config > const &config)
 
void doBeginJob (SharedResources const &resources)
 
void doEndJob ()
 
void doRespondToOpenInputFile (FileBlock const &fb)
 
void doRespondToCloseInputFile (FileBlock const &fb)
 
void doRespondToOpenOutputFiles (FileBlock const &fb)
 
void doRespondToCloseOutputFiles (FileBlock const &fb)
 
bool doBeginRun (RunPrincipal &rp, ModuleContext const &mc)
 
bool doEndRun (RunPrincipal &rp, ModuleContext const &mc)
 
bool doBeginSubRun (SubRunPrincipal &srp, ModuleContext const &mc)
 
bool doEndSubRun (SubRunPrincipal &srp, ModuleContext const &mc)
 
bool doEvent (EventPrincipal &ep, ModuleContext const &mc, std::atomic< std::size_t > &counts_run, std::atomic< std::size_t > &counts_passed, std::atomic< std::size_t > &counts_failed)
 
- Public Member Functions inherited from art::Observer
 ~Observer () noexcept
 
 Observer (Observer const &)=delete
 
 Observer (Observer &&)=delete
 
Observeroperator= (Observer const &)=delete
 
Observeroperator= (Observer &&)=delete
 
void registerProducts (ProductDescriptions &, ModuleDescription const &)
 
void fillDescriptions (ModuleDescription const &)
 
fhicl::ParameterSetID selectorConfig () const
 
- Public Member Functions inherited from art::ModuleBase
virtual ~ModuleBase () noexcept
 
 ModuleBase ()
 
ModuleDescription const & moduleDescription () const
 
void setModuleDescription (ModuleDescription const &)
 
std::array< std::vector< ProductInfo >, NumBranchTypes > const & getConsumables () const
 
void sortConsumables (std::string const &current_process_name)
 
template<typename T , BranchType BT>
ViewToken< T > consumesView (InputTag const &tag)
 
template<typename T , BranchType BT>
ViewToken< T > mayConsumeView (InputTag const &tag)
 

Private Attributes

const lariov::DetPedestalProviderm_PedestalProvider
 

Additional Inherited Members

- Public Types inherited from art::EDAnalyzer
using WorkerType = WorkerT< EDAnalyzer >
 
using ModuleType = EDAnalyzer
 
- Protected Member Functions inherited from art::Observer
std::string const & processName () const
 
bool wantAllEvents () const noexcept
 
bool wantEvent (ScheduleID id, Event const &e) const
 
Handle< TriggerResultsgetTriggerResults (Event const &e) const
 
 Observer (fhicl::ParameterSet const &config)
 
 Observer (std::vector< std::string > const &select_paths, std::vector< std::string > const &reject_paths, fhicl::ParameterSet const &config)
 
- Protected Member Functions inherited from art::ModuleBase
ConsumesCollectorconsumesCollector ()
 
template<typename T , BranchType = InEvent>
ProductToken< T > consumes (InputTag const &)
 
template<typename Element , BranchType = InEvent>
ViewToken< Element > consumesView (InputTag const &)
 
template<typename T , BranchType = InEvent>
void consumesMany ()
 
template<typename T , BranchType = InEvent>
ProductToken< T > mayConsume (InputTag const &)
 
template<typename Element , BranchType = InEvent>
ViewToken< Element > mayConsumeView (InputTag const &)
 
template<typename T , BranchType = InEvent>
void mayConsumeMany ()
 

Detailed Description

Definition at line 33 of file FakePedestal_module.cc.

Constructor & Destructor Documentation

pdune::FakePedestal::FakePedestal ( fhicl::ParameterSet const &  p)
explicit

Definition at line 55 of file FakePedestal_module.cc.

56  :
57  EDAnalyzer(p),
59 {}
EDAnalyzer(fhicl::ParameterSet const &pset)
Definition: EDAnalyzer.h:25
p
Definition: test.py:223
const lariov::DetPedestalProvider & m_PedestalProvider
pdune::FakePedestal::FakePedestal ( FakePedestal const &  )
delete
pdune::FakePedestal::FakePedestal ( FakePedestal &&  )
delete

Member Function Documentation

void pdune::FakePedestal::analyze ( art::Event const &  e)
overridevirtual

Implements art::EDAnalyzer.

Definition at line 61 of file FakePedestal_module.cc.

62 {
63  std::ofstream outfile("pdune_fakeped.txt");
64  auto const* geom = lar::providerFrom<geo::Geometry>();
65  for (size_t chan = 0; chan < geom->Nchannels(); ++chan){
66  float ped_mean = m_PedestalProvider.PedMean(chan);
67  float ped_rms = m_PedestalProvider.PedRms(chan);
68  float ped_meanerr = m_PedestalProvider.PedMeanErr(chan);
69  float ped_rmserr = m_PedestalProvider.PedRmsErr(chan);
70  outfile<<chan<<" "<<ped_mean<<" "<<ped_rms<<" "<<ped_meanerr<<" "<<ped_rmserr<<std::endl;
71  }
72  outfile.close();
73 }
virtual float PedRms(raw::ChannelID_t ch) const =0
virtual float PedMeanErr(raw::ChannelID_t ch) const =0
virtual float PedMean(raw::ChannelID_t ch) const =0
Retrieve pedestal information.
virtual float PedRmsErr(raw::ChannelID_t ch) const =0
const lariov::DetPedestalProvider & m_PedestalProvider
QTextStream & endl(QTextStream &s)
FakePedestal& pdune::FakePedestal::operator= ( FakePedestal const &  )
delete
FakePedestal& pdune::FakePedestal::operator= ( FakePedestal &&  )
delete

Member Data Documentation

const lariov::DetPedestalProvider& pdune::FakePedestal::m_PedestalProvider
private

Definition at line 51 of file FakePedestal_module.cc.


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