-
Notifications
You must be signed in to change notification settings - Fork 4.2k
/
L1MuGMTHWFileReader.h
60 lines (48 loc) · 1.67 KB
/
L1MuGMTHWFileReader.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
//---------------------------------------------
//
// \class L1MuGMTHWFileReader
//
// Description: Puts the GMT input information from
// a GMT ascii HW testfile into the Event
//
//
//
// Author :
// Tobias Noebauer HEPHY Vienna
// Ivan Mikulec HEPHY Vienna
//
//--------------------------------------------------
#ifndef L1TriggerGlobalMuonTrigger_L1MuGMTHWFileReader_h
#define L1TriggerGlobalMuonTrigger_L1MuGMTHWFileReader_h
//---------------
// C++ Headers --
//---------------
#include <fstream>
//----------------------
// Base Class Headers --
//----------------------
#include "FWCore/Sources/interface/ProducerSourceFromFiles.h"
//------------------------------------
// Collaborating Class Declarations --
//------------------------------------
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "L1Trigger/GlobalMuonTrigger/src/L1MuGMTInputEvent.h"
//---------------------
//-- Class Interface --
//---------------------
class L1MuGMTHWFileReader : public edm::ProducerSourceFromFiles {
public:
explicit L1MuGMTHWFileReader(edm::ParameterSet const&,
edm::InputSourceDescription const&);
~L1MuGMTHWFileReader();
//read an event from the input stream
//returns an event with run and event number zero when no more events
void readNextEvent();
private:
virtual bool setRunAndEventInfo(edm::EventID& id, edm::TimeValue_t& time, edm::EventAuxiliary::ExperimentType& eType);
virtual void produce(edm::Event&);
std::ifstream m_in;
L1MuGMTInputEvent m_evt;
};
#endif // L1TriggerGlobalMuonTrigger_L1MuGMTHWFileReader_h