CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EDAnalyzer.cc
Go to the documentation of this file.
1 /*----------------------------------------------------------------------
2 
3 
4 ----------------------------------------------------------------------*/
5 
12 
15 
16 namespace edm {
18  }
19 
20  bool
22  CurrentProcessingContext const* cpc) {
24  Event e(const_cast<EventPrincipal&>(ep), moduleDescription_);
25  this->analyze(e, c);
26  return true;
27  }
28 
29  void
31  this->beginJob();
32  }
33 
34  void
36  this->endJob();
37  }
38 
39  bool
41  CurrentProcessingContext const* cpc) {
43  Run r(const_cast<RunPrincipal&>(rp), moduleDescription_);
44  this->beginRun(r, c);
45  return true;
46  }
47 
48  bool
50  CurrentProcessingContext const* cpc) {
52  Run r(const_cast<RunPrincipal&>(rp), moduleDescription_);
53  this->endRun(r, c);
54  return true;
55  }
56 
57  bool
59  CurrentProcessingContext const* cpc) {
61  LuminosityBlock lb(const_cast<LuminosityBlockPrincipal&>(lbp), moduleDescription_);
62  this->beginLuminosityBlock(lb, c);
63  return true;
64  }
65 
66  bool
68  CurrentProcessingContext const* cpc) {
70  LuminosityBlock lb(const_cast<LuminosityBlockPrincipal&>(lbp), moduleDescription_);
71  this->endLuminosityBlock(lb, c);
72  return true;
73  }
74 
75  void
78  }
79 
80  void
83  }
84 
85  void
88  }
89 
90  void
93  }
94 
95  void
98  }
99 
100  void
101  EDAnalyzer::doPostForkReacquireResources(unsigned int iChildIndex, unsigned int iNumberOfChildren) {
102  postForkReacquireResources(iChildIndex, iNumberOfChildren);
103  }
104 
107  return current_context_;
108  }
109 
110  void
113  desc.setUnknown();
114  descriptions.addDefault(desc);
115  }
116 
117  void
119  edmodule_mightGet_config(iConfig);
120  }
121 
122 
123 
124  static const std::string kBaseType("EDAnalyzer");
125  const std::string&
127  return kBaseType;
128  }
129 }
virtual void beginJob()
Definition: EDAnalyzer.h:58
virtual void endLuminosityBlock(LuminosityBlock const &, EventSetup const &)
Definition: EDAnalyzer.h:63
void doRespondToOpenInputFile(FileBlock const &fb)
Definition: EDAnalyzer.cc:76
virtual void respondToCloseInputFile(FileBlock const &)
Definition: EDAnalyzer.h:65
virtual void analyze(Event const &, EventSetup const &)=0
void doPreForkReleaseResources()
Definition: EDAnalyzer.cc:96
bool doEvent(EventPrincipal const &ep, EventSetup const &c, CurrentProcessingContext const *cpc)
Definition: EDAnalyzer.cc:21
static void fillDescriptions(ConfigurationDescriptions &descriptions)
Definition: EDAnalyzer.cc:111
virtual void beginRun(Run const &, EventSetup const &)
Definition: EDAnalyzer.h:60
virtual void beginLuminosityBlock(LuminosityBlock const &, EventSetup const &)
Definition: EDAnalyzer.h:62
void doRespondToCloseInputFile(FileBlock const &fb)
Definition: EDAnalyzer.cc:81
static const std::string & baseType()
Definition: EDAnalyzer.cc:126
virtual void preForkReleaseResources()
Definition: EDAnalyzer.h:68
static void prevalidate(ConfigurationDescriptions &)
Definition: EDAnalyzer.cc:118
void addDefault(ParameterSetDescription const &psetDescription)
bool doBeginRun(RunPrincipal const &rp, EventSetup const &c, CurrentProcessingContext const *cpc)
Definition: EDAnalyzer.cc:40
bool doEndRun(RunPrincipal const &rp, EventSetup const &c, CurrentProcessingContext const *cpc)
Definition: EDAnalyzer.cc:49
void doBeginJob()
Definition: EDAnalyzer.cc:30
void edmodule_mightGet_config(ConfigurationDescriptions &iDesc)
CurrentProcessingContext const * current_context_
Definition: EDAnalyzer.h:76
virtual void endJob()
Definition: EDAnalyzer.h:59
virtual void respondToCloseOutputFiles(FileBlock const &)
Definition: EDAnalyzer.h:67
ModuleDescription moduleDescription_
Definition: EDAnalyzer.h:74
bool doBeginLuminosityBlock(LuminosityBlockPrincipal const &lbp, EventSetup const &c, CurrentProcessingContext const *cpc)
Definition: EDAnalyzer.cc:58
virtual void respondToOpenOutputFiles(FileBlock const &)
Definition: EDAnalyzer.h:66
virtual void respondToOpenInputFile(FileBlock const &)
Definition: EDAnalyzer.h:64
virtual void endRun(Run const &, EventSetup const &)
Definition: EDAnalyzer.h:61
static const std::string kBaseType("EDAnalyzer")
void doPostForkReacquireResources(unsigned int iChildIndex, unsigned int iNumberOfChildren)
Definition: EDAnalyzer.cc:101
void doRespondToCloseOutputFiles(FileBlock const &fb)
Definition: EDAnalyzer.cc:91
virtual ~EDAnalyzer()
Definition: EDAnalyzer.cc:17
void doRespondToOpenOutputFiles(FileBlock const &fb)
Definition: EDAnalyzer.cc:86
CurrentProcessingContext const * currentContext() const
Definition: EDAnalyzer.cc:106
bool doEndLuminosityBlock(LuminosityBlockPrincipal const &lbp, EventSetup const &c, CurrentProcessingContext const *cpc)
Definition: EDAnalyzer.cc:67
Definition: Run.h:33
virtual void postForkReacquireResources(unsigned int, unsigned int)
Definition: EDAnalyzer.h:69