ClusterCounter_module.cc
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 // Class: ClusterCounter
3 // Module Type: analyzer
4 // File: ClusterCounter_module.cc
5 //
6 // Just an empty module, outputs the event number.
7 // Robert Sulej
8 ////////////////////////////////////////////////////////////////////////
9 
16 #include "fhiclcpp/ParameterSet.h"
18 
19 namespace tutorial {
20 
21 class ClusterCounter : public art::EDAnalyzer {
22 public:
23  explicit ClusterCounter(fhicl::ParameterSet const & p);
24 
25  // Plugins should not be copied or assigned.
26  ClusterCounter(ClusterCounter const &) = delete;
27  ClusterCounter(ClusterCounter &&) = delete;
28  ClusterCounter & operator = (ClusterCounter const &) = delete;
30 
31  // Required functions.
32  void analyze(art::Event const & e) override;
33 
34 private:
35 };
36 
38 
40 {
41  std::cout << "ClusterCounter module on event #" << e.id().event() << std::endl;
42 }
43 
44 } // tutorial namespace
45 
EDAnalyzer(fhicl::ParameterSet const &pset)
Definition: EDAnalyzer.h:25
void analyze(art::Event const &e) override
ClusterCounter & operator=(ClusterCounter const &)=delete
const double e
#define DEFINE_ART_MODULE(klass)
Definition: ModuleMacros.h:67
p
Definition: test.py:223
EventNumber_t event() const
Definition: EventID.h:116
ClusterCounter(Parameters const &config)
EventID id() const
Definition: Event.cc:34
QTextStream & endl(QTextStream &s)