CMS 3D CMS Logo

MCatNLOSource.h
Go to the documentation of this file.
1 #ifndef GeneratorInterface_MCatNLOInterface_MCatNLOSource_h
2 #define GeneratorInterface_MCatNLOInterface_MCatNLOSource_h
3 
4 #include <memory>
5 
10 
12 
14 
15 #include <fstream>
16 
17 // Common Block for HERWIG parameters set by UPINIT
18 extern "C" {
19 extern struct MCPARS_ {
20  double emmin;
21  double emmax;
22  double gammax;
23  double rmass[1000];
24  double gamw;
25  double gamz;
26  int emmins;
27  int emmaxs;
28  int gammaxs;
29  int rmasss[1000];
30  int gamws;
31  int gamzs;
32 } mcpars_;
33 }
34 
35 namespace lhef {
36  class LHERunInfo;
37  class LHEEvent;
38 } // namespace lhef
39 
41 public:
43  ~MCatNLOSource() override;
44 
45 private:
46  void endJob() override;
47  void beginRun(edm::Run &run) override;
49  void produce(edm::Event &event) override;
50 
51  void nextEvent();
52 
53  bool hwwarn(const std::string &fn, int code) override;
54 
57 
59  std::unique_ptr<std::ifstream> inputFile;
60 
62  unsigned int skipEvents;
63 
65  unsigned int nEvents;
66 
67  int ihpro;
68 
70 
71  std::unique_ptr<std::ifstream> reader;
72 
73  std::shared_ptr<lhef::LHERunInfo> runInfo;
74  std::shared_ptr<lhef::LHEEvent> event;
75 };
76 
77 #endif // GeneratorInterface_MCatNLOInterface_MCatNLOSource_h
mcpars_
struct MCPARS_ mcpars_
MCatNLOSource::reader
std::unique_ptr< std::ifstream > reader
Definition: MCatNLOSource.h:71
edm::IDGeneratorSourceBase< PuttableSourceBase >::run
RunNumber_t run() const
Definition: IDGeneratorSourceBase.h:37
CalibrationSummaryClient_cfi.params
params
Definition: CalibrationSummaryClient_cfi.py:14
edm::Run
Definition: Run.h:45
MCPARS_::rmasss
int rmasss[1000]
Definition: MCatNLOSource.h:29
MCatNLOSource::setRunAndEventInfo
bool setRunAndEventInfo(edm::EventID &, edm::TimeValue_t &, edm::EventAuxiliary::ExperimentType &) override
Definition: MCatNLOSource.cc:142
edm::InputSourceDescription
Definition: InputSourceDescription.h:21
particlelevel_cff.LHERunInfo
LHERunInfo
Definition: particlelevel_cff.py:57
MCatNLOSource::~MCatNLOSource
~MCatNLOSource() override
Definition: MCatNLOSource.cc:66
MCPARS_::emmins
int emmins
Definition: MCatNLOSource.h:26
MCPARS_::emmin
double emmin
Definition: MCatNLOSource.h:20
MCatNLOSource::skipEvents
unsigned int skipEvents
Number of events to skip.
Definition: MCatNLOSource.h:62
MCPARS_::gammax
double gammax
Definition: MCatNLOSource.h:22
Run.h
MCPARS_::gamz
double gamz
Definition: MCatNLOSource.h:25
MCatNLOSource::hwwarn
bool hwwarn(const std::string &fn, int code) override
Definition: MCatNLOSource.cc:178
MCatNLOSource::nEvents
unsigned int nEvents
Number of events.
Definition: MCatNLOSource.h:65
MCPARS_::gammaxs
int gammaxs
Definition: MCatNLOSource.h:28
edm::ParameterSet
Definition: ParameterSet.h:47
MCPARS_
Definition: MCatNLOSource.h:19
Event.h
lhef
Definition: ExhumeHadronizer.h:12
gen::Herwig6Instance
Definition: Herwig6Instance.h:22
MCPARS_::gamw
double gamw
Definition: MCatNLOSource.h:24
MCatNLOSource::inputFile
std::unique_ptr< std::ifstream > inputFile
Pointer to the input file.
Definition: MCatNLOSource.h:59
MCatNLOSource::ihpro
int ihpro
Definition: MCatNLOSource.h:67
MCatNLOSource
Definition: MCatNLOSource.h:40
MCatNLOSource::processCode
int processCode
Definition: MCatNLOSource.h:69
MCatNLOSource::nextEvent
void nextEvent()
Definition: MCatNLOSource.cc:70
MCPARS_::emmax
double emmax
Definition: MCatNLOSource.h:21
MCPARS_::gamzs
int gamzs
Definition: MCatNLOSource.h:31
MCatNLOSource::runInfo
std::shared_ptr< lhef::LHERunInfo > runInfo
Definition: MCatNLOSource.h:73
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
LesHouches.h
MCatNLOSource::produce
void produce(edm::Event &event) override
Definition: MCatNLOSource.cc:164
MCPARS_::emmaxs
int emmaxs
Definition: MCatNLOSource.h:27
MCPARS_::gamws
int gamws
Definition: MCatNLOSource.h:30
MCatNLOSource::beginRun
void beginRun(edm::Run &run) override
Definition: MCatNLOSource.cc:86
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
edm::ProducerSourceFromFiles
Definition: ProducerSourceFromFiles.h:17
MCatNLOSource::fileName
std::string fileName
Name of the input file.
Definition: MCatNLOSource.h:56
edm::EventAuxiliary::ExperimentType
ExperimentType
Definition: EventAuxiliary.h:18
MCatNLOSource::MCatNLOSource
MCatNLOSource(const edm::ParameterSet &params, const edm::InputSourceDescription &desc)
Definition: MCatNLOSource.cc:38
personalPlayback.fn
fn
Definition: personalPlayback.py:515
ParameterSet.h
event
Definition: event.py:1
edm::EventID
Definition: EventID.h:31
edm::Event
Definition: Event.h:73
MCPARS_::rmass
double rmass[1000]
Definition: MCatNLOSource.h:23
MCatNLOSource::event
std::shared_ptr< lhef::LHEEvent > event
Definition: MCatNLOSource.h:74
ProducerSourceFromFiles.h
MCatNLOSource::endJob
void endJob() override
Definition: MCatNLOSource.cc:68
edm::TimeValue_t
unsigned long long TimeValue_t
Definition: Timestamp.h:28
Herwig6Instance.h