Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
L1Trigger
GlobalMuonTrigger
src
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
//----------------------
26
#include "
FWCore/Sources/interface/ProducerSourceFromFiles.h
"
27
28
//------------------------------------
29
// Collaborating Class Declarations --
30
//------------------------------------
31
#include "
FWCore/Framework/interface/Event.h
"
32
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
33
#include "
L1Trigger/GlobalMuonTrigger/src/L1MuGMTInputEvent.h
"
34
35
//---------------------
36
//-- Class Interface --
37
//---------------------
38
39
class
L1MuGMTHWFileReader
:
public
edm::ProducerSourceFromFiles
{
40
41
public
:
42
explicit
L1MuGMTHWFileReader
(
edm::ParameterSet
const
&,
43
edm::InputSourceDescription
const
&);
44
45
~L1MuGMTHWFileReader
();
46
47
//read an event from the input stream
48
//returns an event with run and event number zero when no more events
49
void
readNextEvent
();
50
51
52
private
:
53
virtual
bool
setRunAndEventInfo
(
edm::EventID
&
id
,
edm::TimeValue_t
&
time
);
54
virtual
void
produce
(
edm::Event
&);
55
56
std::ifstream
m_in
;
57
L1MuGMTInputEvent
m_evt
;
58
};
59
60
#endif // L1TriggerGlobalMuonTrigger_L1MuGMTHWFileReader_h
L1MuGMTHWFileReader::readNextEvent
void readNextEvent()
Definition:
L1MuGMTHWFileReader.cc:126
Event.h
L1MuGMTHWFileReader::L1MuGMTHWFileReader
L1MuGMTHWFileReader(edm::ParameterSet const &, edm::InputSourceDescription const &)
Definition:
L1MuGMTHWFileReader.cc:37
L1MuGMTHWFileReader
Definition:
L1MuGMTHWFileReader.h:39
ParameterSet.h
edm::InputSourceDescription
Definition:
InputSourceDescription.h:19
L1MuGMTHWFileReader::~L1MuGMTHWFileReader
~L1MuGMTHWFileReader()
Definition:
L1MuGMTHWFileReader.cc:63
L1MuGMTHWFileReader::setRunAndEventInfo
virtual bool setRunAndEventInfo(edm::EventID &id, edm::TimeValue_t &time)
Definition:
L1MuGMTHWFileReader.cc:70
L1MuGMTHWFileReader::m_evt
L1MuGMTInputEvent m_evt
Definition:
L1MuGMTHWFileReader.h:57
edm::EventID
Definition:
EventID.h:34
cond::rpcobgas::time
Definition:
RPCObGasPyWrapper.cc:61
L1MuGMTHWFileReader::produce
virtual void produce(edm::Event &)
Definition:
L1MuGMTHWFileReader.cc:80
L1MuGMTInputEvent
Definition:
L1MuGMTInputEvent.h:41
L1MuGMTInputEvent.h
edm::TimeValue_t
unsigned long long TimeValue_t
Definition:
Timestamp.h:28
edm::ParameterSet
Definition:
ParameterSet.h:35
edm::Event
Definition:
Event.h:62
L1MuGMTHWFileReader::m_in
std::ifstream m_in
Definition:
L1MuGMTHWFileReader.h:56
edm::ProducerSourceFromFiles
Definition:
ProducerSourceFromFiles.h:17
ProducerSourceFromFiles.h
Generated for CMSSW Reference Manual by
1.8.5