PedestalThresholdValidation_module.cc
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 // Class: PedestalThresholdValidation
3 // Module Type: analyzer
4 // File: PedestalThresholdValidation_module.cc
5 //
6 // Generated at Thu Aug 31 12:24:58 2017 by Enhao Song using artmod
7 // from cetpkgsupport v1_11_00.
8 ////////////////////////////////////////////////////////////////////////
9 
17 #include "fhiclcpp/ParameterSet.h"
19 
20 
21 // NOvA includes
23 namespace chaninfo {
24  class PedestalThresholdValidation;
25 }
26 
28 public:
30  // The destructor generated by the compiler is fine for classes
31  // without bare pointers or other resource use.
32 
33  // Plugins should not be copied or assigned.
38 
39  // Required functions.
40  void analyze(art::Event const & e) override;
41 
42  // Selected optional functions.
43  void beginJob() override;
44  void reconfigure(fhicl::ParameterSet const & p);
45 
46 private:
47 
48  // Declare member data here.
49 
50 };
51 
52 
54  :
55  EDAnalyzer(p) // ,
56  // More initializers here.
57 {}
58 
60 {
61  // Implementation of required member function here.
62  // get the run number. RunNumber_t is a typedef to unsigned int
63  //art::RunNumber_t run = e.run();
64 
65  // get the subrun number. SubRunNumber_t is a typedef to unsigned int
66  art::SubRunNumber_t subRun = e.subRun();
68  unsigned int nbadchan = bc->NBadInSubRun(subRun);
69  std::cout<<"Number of bad channels: "<<nbadchan<<std::endl;
70 }
71 
73 {
74  // Implementation of optional member function here.
75 }
76 
78 {
79  // Implementation of optional member function here.
80 }
81 
SubRunNumber_t subRun() const
Definition: Event.h:72
const char * p
Definition: xmltok.h:285
DEFINE_ART_MODULE(TestTMapFile)
IDNumber_t< Level::SubRun > SubRunNumber_t
Definition: IDNumber.h:118
EDAnalyzer(Table< Config > const &config)
Definition: EDAnalyzer.h:100
OStream cout
Definition: OStream.cxx:6
PedestalThresholdValidation & operator=(PedestalThresholdValidation const &)=delete
Interface to the run-by-run list of bad channels.
Definition: BadChanList.h:31
Float_t e
Definition: plot.C:35