CMS 3D CMS Logo

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