CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EDAnalyzerBase.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: FWCore/Framework
4 // Class : one::EDAnalyzerBase
5 //
6 // Implementation:
7 // [Notes on implementation]
8 //
9 // Original Author: Chris Jones
10 // Created: Thu, 02 May 2013 21:56:04 GMT
11 //
12 
13 // system include files
14 
15 // user include files
21 
24 
27 
28 
29 //
30 // constants, enums and typedefs
31 //
32 namespace edm {
33  namespace one {
34  //
35  // static data member definitions
36  //
37 
38  //
39  // constructors and destructor
40  //
42  moduleDescription_() { }
43 
45  {
46  }
47 
48  bool
50  ModuleCallingContext const* mcc) {
51  Event e(ep, moduleDescription_, mcc);
52  e.setConsumer(this);
53  this->analyze(e, c);
54  return true;
55  }
56 
57  void
59  this->beginJob();
60  }
61 
62  void
64  this->endJob();
65  }
66 
67  void
69  ModuleCallingContext const* mcc) {
70  Run r(rp, moduleDescription_, mcc);
71  r.setConsumer(this);
72  Run const& cnstR = r;
73  this->doBeginRun_(cnstR, c);
74  }
75 
76  void
78  ModuleCallingContext const* mcc) {
79  Run r(rp, moduleDescription_, mcc);
80  r.setConsumer(this);
81  Run const& cnstR = r;
82  this->doEndRun_(cnstR, c);
83  }
84 
85  void
87  ModuleCallingContext const* mcc) {
88  LuminosityBlock lb(lbp, moduleDescription_, mcc);
89  lb.setConsumer(this);
90  LuminosityBlock const& cnstLb = lb;
91  this->doBeginLuminosityBlock_(cnstLb, c);
92  }
93 
94  void
96  ModuleCallingContext const* mcc) {
97  LuminosityBlock lb(lbp, moduleDescription_, mcc);
98  lb.setConsumer(this);
99  LuminosityBlock const& cnstLb = lb;
100  this->doEndLuminosityBlock_(cnstLb, c);
101  }
102 
103  void
105  //respondToOpenInputFile(fb);
106  }
107 
108  void
110  //respondToCloseInputFile(fb);
111  }
112 
113  void
115  //preForkReleaseResources();
116  }
117 
118  void
119  EDAnalyzerBase::doPostForkReacquireResources(unsigned int iChildIndex, unsigned int iNumberOfChildren) {
120  //postForkReacquireResources(iChildIndex, iNumberOfChildren);
121  }
122 
123  void EDAnalyzerBase::doBeginRun_(Run const& rp, EventSetup const& c) {}
124  void EDAnalyzerBase::doEndRun_(Run const& rp, EventSetup const& c) {}
127 
128  void
131  desc.setUnknown();
132  descriptions.addDefault(desc);
133  }
134 
135  void
137  edmodule_mightGet_config(iConfig);
138  }
139 
140  static const std::string kBaseType("EDAnalyzer");
141 
142  const std::string&
144  return kBaseType;
145  }
146 
147  void
149 
151 
153 
155  regService->watchProductAdditions(callWhenNewProductsRegistered_);
156  }
157  }
158 
159  }
160 }
static const std::string kBaseType("EDAnalyzer")
void doRespondToCloseInputFile(FileBlock const &fb)
void setConsumer(EDConsumerBase const *iConsumer)
static const std::string & baseType()
static void prevalidate(ConfigurationDescriptions &descriptions)
void setConsumer(EDConsumerBase const *iConsumer)
Definition: Event.cc:40
static void fillDescriptions(ConfigurationDescriptions &descriptions)
virtual void doEndRun_(Run const &rp, EventSetup const &c)
virtual void doEndLuminosityBlock_(LuminosityBlock const &lbp, EventSetup const &c)
void doEndLuminosityBlock(LuminosityBlockPrincipal &lbp, EventSetup const &c, ModuleCallingContext const *)
virtual void analyze(Event const &, EventSetup const &)=0
void addDefault(ParameterSetDescription const &psetDescription)
void registerProductsAndCallbacks(EDAnalyzerBase const *module, ProductRegistry *reg)
std::function< void(BranchDescription const &)> callWhenNewProductsRegistered_
bool doEvent(EventPrincipal &ep, EventSetup const &c, ModuleCallingContext const *)
void edmodule_mightGet_config(ConfigurationDescriptions &iDesc)
void callForEachBranch(T const &iFunc)
ModuleDescription moduleDescription_
void doBeginRun(RunPrincipal &rp, EventSetup const &c, ModuleCallingContext const *)
void doRespondToOpenInputFile(FileBlock const &fb)
virtual void doBeginLuminosityBlock_(LuminosityBlock const &lbp, EventSetup const &c)
void doBeginLuminosityBlock(LuminosityBlockPrincipal &lbp, EventSetup const &c, ModuleCallingContext const *)
void doEndRun(RunPrincipal &rp, EventSetup const &c, ModuleCallingContext const *)
void setConsumer(EDConsumerBase const *iConsumer)
Definition: Run.h:48
void doPostForkReacquireResources(unsigned int iChildIndex, unsigned int iNumberOfChildren)
virtual void doBeginRun_(Run const &rp, EventSetup const &c)
Definition: Run.h:41