CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RawInputSource.h
Go to the documentation of this file.
1 #ifndef FWCore_Sources_RawInputSource_h
2 #define FWCore_Sources_RawInputSource_h
3 
4 /*----------------------------------------------------------------------
5 ----------------------------------------------------------------------*/
6 
7 #include <memory>
8 
9 #include "boost/shared_ptr.hpp"
10 
14 
15 namespace edm {
16  class ParameterSet;
17  class Timestamp;
18  class RawInputSource : public InputSource {
19  public:
20  explicit RawInputSource(ParameterSet const& pset, InputSourceDescription const& desc);
21  virtual ~RawInputSource();
22 
23  protected:
24  std::auto_ptr<Event> makeEvent(RunNumber_t run, LuminosityBlockNumber_t lumi, EventNumber_t event, Timestamp const& tstamp);
25  virtual std::auto_ptr<Event> readOneEvent() = 0;
26 
27  private:
28  virtual EventPrincipal* readEvent_();
29  virtual boost::shared_ptr<LuminosityBlockAuxiliary> readLuminosityBlockAuxiliary_();
30  virtual boost::shared_ptr<RunAuxiliary> readRunAuxiliary_();
31  virtual EventPrincipal* readIt(EventID const& eventID);
32  virtual void skip(int offset);
33  virtual ItemType getNextItemType();
34 
37  bool newRun_;
38  bool newLumi_;
40  };
41 }
42 #endif
virtual EventPrincipal * readEvent_()
RunNumber_t runNumber_
unsigned int EventNumber_t
Definition: EventID.h:30
std::auto_ptr< Event > makeEvent(RunNumber_t run, LuminosityBlockNumber_t lumi, EventNumber_t event, Timestamp const &tstamp)
tuple lumi
Definition: fjr2json.py:35
virtual void skip(int offset)
RunNumber_t run() const
Accessor for current run number.
Definition: InputSource.cc:606
RawInputSource(ParameterSet const &pset, InputSourceDescription const &desc)
unsigned int LuminosityBlockNumber_t
Definition: EventID.h:31
virtual boost::shared_ptr< RunAuxiliary > readRunAuxiliary_()
virtual std::auto_ptr< Event > readOneEvent()=0
LuminosityBlockNumber_t luminosityBlockNumber_
unsigned int offset(bool)
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
virtual boost::shared_ptr< LuminosityBlockAuxiliary > readLuminosityBlockAuxiliary_()
virtual EventPrincipal * readIt(EventID const &eventID)
virtual ItemType getNextItemType()
unsigned int RunNumber_t
Definition: EventRange.h:32