CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ExampleClusterProducer.h
Go to the documentation of this file.
1 #ifndef RecoEcal_EgammaClusterProducers_ExampleClusterProducer_h
2 #define RecoEcal_EgammaClusterProducers_ExampleClusterProducer_h
3 
17 
18 class ExampleClusterAlgo;
19 
20 // ExampleClusterProducer inherits from EDProducer, so it can be a module:
22 
23  public:
24 
27 
28  virtual void produce(edm::Event& evt, const edm::EventSetup& es);
29 
30  private:
31 
32  ExampleClusterAlgo* algo_; // algorithm doing the real work
33 
34  std::string hitProducer_; // name of module/plugin/producer producing hits
35  std::string hitCollection_; // secondary name given to collection of hits by hitProducer
36  std::string clusterCollection_; // secondary name to be given to collection of cluster produced in this module
37 
38  int nMaxPrintout_; // max # of printouts
39  int nEvt_; // internal counter of events
40 
41  bool counterExceeded() const { return ((nEvt_ > nMaxPrintout_) || (nMaxPrintout_ < 0)); }
42 
43 
44 };
45 #endif
ExampleClusterAlgo * algo_
virtual void produce(edm::Event &evt, const edm::EventSetup &es)
ExampleClusterProducer(const edm::ParameterSet &ps)