CMS 3D CMS Logo

L1MuGMTHWFileReader.h
Go to the documentation of this file.
1 //---------------------------------------------
2 //
3 // \class L1MuGMTHWFileReader
4 //
5 // Description: Puts the GMT input information from
6 // a GMT ascii HW testfile into the Event
7 //
8 //
9 //
10 // Author :
11 // Tobias Noebauer HEPHY Vienna
12 // Ivan Mikulec HEPHY Vienna
13 //
14 //--------------------------------------------------
15 #ifndef L1TriggerGlobalMuonTrigger_L1MuGMTHWFileReader_h
16 #define L1TriggerGlobalMuonTrigger_L1MuGMTHWFileReader_h
17 
18 //---------------
19 // C++ Headers --
20 //---------------
21 #include <fstream>
22 
23 //----------------------
24 // Base Class Headers --
25 //----------------------
27 
28 //------------------------------------
29 // Collaborating Class Declarations --
30 //------------------------------------
34 
35 //---------------------
36 //-- Class Interface --
37 //---------------------
38 
40 public:
42 
43  ~L1MuGMTHWFileReader() override;
44 
45  //read an event from the input stream
46  //returns an event with run and event number zero when no more events
47  void readNextEvent();
48 
49 private:
52  edm::EventAuxiliary::ExperimentType& eType) override;
53  void produce(edm::Event&) override;
54 
55  std::ifstream m_in;
57 };
58 
59 #endif // L1TriggerGlobalMuonTrigger_L1MuGMTHWFileReader_h
L1MuGMTHWFileReader::setRunAndEventInfo
bool setRunAndEventInfo(edm::EventID &id, edm::TimeValue_t &time, edm::EventAuxiliary::ExperimentType &eType) override
Definition: L1MuGMTHWFileReader.cc:64
L1MuGMTHWFileReader
Definition: L1MuGMTHWFileReader.h:39
edm::InputSourceDescription
Definition: InputSourceDescription.h:20
protons_cff.time
time
Definition: protons_cff.py:39
L1MuGMTInputEvent
Definition: L1MuGMTInputEvent.h:41
L1MuGMTHWFileReader::produce
void produce(edm::Event &) override
Definition: L1MuGMTHWFileReader.cc:76
L1MuGMTHWFileReader::L1MuGMTHWFileReader
L1MuGMTHWFileReader(edm::ParameterSet const &, edm::InputSourceDescription const &)
Definition: L1MuGMTHWFileReader.cc:37
edm::ParameterSet
Definition: ParameterSet.h:47
Event.h
L1MuGMTHWFileReader::m_evt
L1MuGMTInputEvent m_evt
Definition: L1MuGMTHWFileReader.h:56
L1MuGMTInputEvent.h
L1MuGMTHWFileReader::readNextEvent
void readNextEvent()
Definition: L1MuGMTHWFileReader.cc:126
L1MuGMTHWFileReader::m_in
std::ifstream m_in
Definition: L1MuGMTHWFileReader.h:55
edm::ProducerSourceFromFiles
Definition: ProducerSourceFromFiles.h:17
edm::EventAuxiliary::ExperimentType
ExperimentType
Definition: EventAuxiliary.h:18
L1MuGMTHWFileReader::~L1MuGMTHWFileReader
~L1MuGMTHWFileReader() override
Definition: L1MuGMTHWFileReader.cc:59
ParameterSet.h
edm::EventID
Definition: EventID.h:31
edm::Event
Definition: Event.h:73
ProducerSourceFromFiles.h
edm::TimeValue_t
unsigned long long TimeValue_t
Definition: Timestamp.h:28