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

Public Member Functions

 CheckRawDigit (fhicl::ParameterSet const &p)
 
 CheckRawDigit (CheckRawDigit const &)=delete
 
 CheckRawDigit (CheckRawDigit &&)=delete
 
CheckRawDigitoperator= (CheckRawDigit const &)=delete
 
CheckRawDigitoperator= (CheckRawDigit &&)=delete
 
void analyze (art::Event const &e) override
 
void beginJob () 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 ()
 
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 &)
 
std::string const & processName () const
 
bool wantAllEvents () const
 
bool wantEvent (Event const &e)
 
fhicl::ParameterSetID selectorConfig () const
 
Handle< TriggerResultsgetTriggerResults (Event const &e) 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

std::string fRawDigitModuleLabel
 
std::string fRawDigitModuleInstance
 
TH1D * sig [3][32][28]
 
art::ServiceHandle< lbne::ChannelMapService > fChannelMap
 

Additional Inherited Members

- Public Types inherited from art::EDAnalyzer
using WorkerType = WorkerT< EDAnalyzer >
 
using ModuleType = EDAnalyzer
 
- Protected Member Functions inherited from art::Observer
 Observer (fhicl::ParameterSet const &config)
 
 Observer (std::vector< std::string > const &paths, fhicl::ParameterSet const &config)
 
detail::ProcessAndEventSelectorsprocessAndEventSelectors ()
 
- 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 28 of file CheckRawDigit_module.cc.

Constructor & Destructor Documentation

dune::CheckRawDigit::CheckRawDigit ( fhicl::ParameterSet const &  p)
explicit

Definition at line 57 of file CheckRawDigit_module.cc.

58  :
59  EDAnalyzer(p) // ,
60  // More initializers here.
61 {
62  fRawDigitModuleLabel = p.get<std::string>("RawDigitModuleLabel");
63  fRawDigitModuleInstance = p.get<std::string>("RawDigitModuleInstance");
64 }
std::string string
Definition: nybbler.cc:12
EDAnalyzer(fhicl::ParameterSet const &pset)
Definition: EDAnalyzer.h:27
std::string fRawDigitModuleInstance
p
Definition: test.py:223
dune::CheckRawDigit::CheckRawDigit ( CheckRawDigit const &  )
delete
dune::CheckRawDigit::CheckRawDigit ( CheckRawDigit &&  )
delete

Member Function Documentation

void dune::CheckRawDigit::analyze ( art::Event const &  e)
overridevirtual

Implements art::EDAnalyzer.

Definition at line 66 of file CheckRawDigit_module.cc.

67 {
68  // Implementation of required member function here.
70  e.getByLabel(fRawDigitModuleLabel, fRawDigitModuleInstance, rawDigitHandle);
71  std::vector<raw::RawDigit> const& rawDigitVector(*rawDigitHandle);
72  //const unsigned int n_channels = fGeom->Nchannels();
73 
74  int count[3][32];
75  for (int i = 0; i<3; ++i){
76  for (int j = 0; j<32; ++j){
77  count[i][j] = 0;
78  }
79  }
80  for (std::vector<raw::RawDigit>::const_iterator digitIt = rawDigitVector.begin(); digitIt != rawDigitVector.end(); ++digitIt) {
81  unsigned int ch = digitIt->Channel(); //offline
82  unsigned int plane = fChannelMap->PlaneFromOfflineChannel(ch);
83  unsigned int rce = fChannelMap->RCEFromOfflineChannel(ch);
84  unsigned int regulator = fChannelMap->RegulatorFromOfflineChannel(ch);
85  float ped = digitIt->GetPedestal();
86  for (unsigned s = 0; s< 15000; ++s){
87  sig[plane][rce*2+regulator][count[plane][rce*2+regulator]]->SetBinContent(s+1,digitIt->ADC(s)-ped);
88  }
89  ++count[plane][rce*2+regulator];
90  }
91 }
intermediate_table::const_iterator const_iterator
const double e
std::string fRawDigitModuleInstance
art::ServiceHandle< lbne::ChannelMapService > fChannelMap
static QCString * s
Definition: config.cpp:1042
void dune::CheckRawDigit::beginJob ( )
overridevirtual

Reimplemented from art::EDAnalyzer.

Definition at line 93 of file CheckRawDigit_module.cc.

94 {
95  // Implementation of optional member function here.
97  for (int i = 0; i<3; ++i){
98  for (int j = 0; j<32; ++j){
99  for (int k = 0; k<28; ++k){
100  sig[i][j][k] = tfs->make<TH1D>(Form("sig_%d_%d_%d",i,j,k),Form("Plane=%d Regulator=%d Channel=%d",i,j,k),15000,0,15000);
101  }
102  }
103  }
104 }
CheckRawDigit& dune::CheckRawDigit::operator= ( CheckRawDigit const &  )
delete
CheckRawDigit& dune::CheckRawDigit::operator= ( CheckRawDigit &&  )
delete

Member Data Documentation

art::ServiceHandle<lbne::ChannelMapService> dune::CheckRawDigit::fChannelMap
private

Definition at line 51 of file CheckRawDigit_module.cc.

std::string dune::CheckRawDigit::fRawDigitModuleInstance
private

Definition at line 49 of file CheckRawDigit_module.cc.

std::string dune::CheckRawDigit::fRawDigitModuleLabel
private

Definition at line 49 of file CheckRawDigit_module.cc.

TH1D* dune::CheckRawDigit::sig[3][32][28]
private

Definition at line 50 of file CheckRawDigit_module.cc.


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