#include <GeneratorInterface/MadGraphInterface/interface/STLesHouchesMixerSource.h>
Public Member Functions | |
STLesHouchesMixerSource (const ParameterSet &, const InputSourceDescription &) | |
virtual | ~STLesHouchesMixerSource () |
Private Member Functions | |
virtual bool | produce (Event &e) |
Private Attributes | |
std::string | inputLHEFile22_ |
std::string | inputLHEFile23_ |
Definition at line 16 of file STLesHouchesMixerSource.h.
STLesHouchesMixerSource::STLesHouchesMixerSource | ( | const ParameterSet & | pset, | |
const InputSourceDescription & | desc | |||
) |
Definition at line 8 of file STLesHouchesMixerSource.cc.
References GenMuonPlsPt100GeV_cfg::cout, lat::endl(), edm::ExternalInputSource::fileNames(), inputLHEFile22_, and inputLHEFile23_.
00008 : ExternalInputSource (pset, desc, false), inputLHEFile22_ (fileNames()[0]), inputLHEFile23_ (fileNames()[1]){ 00009 std::cout<<"Generator|MadGraph "<<" initializing STLesHouchesMixerSource"<<std::endl; 00010 std::cout<<"Generator|MadGraph "<<" fileNames().size() "<<fileNames().size()<<std::endl; 00011 // strip the input file name 00012 if ( inputLHEFile22_.find("file:") || inputLHEFile22_.find("rfio:")){ inputLHEFile22_.erase(0,5); } 00013 if ( inputLHEFile23_.find("file:") || inputLHEFile23_.find("rfio:")){ inputLHEFile23_.erase(0,5); } 00014 std::cout<<"Generator|MadGraph "<<" inputLHEFile22_ = "<<inputLHEFile22_<<std::endl; 00015 std::cout<<"Generator|MadGraph "<<" inputLHEFile23_ = "<<inputLHEFile23_<<std::endl; 00016 }
STLesHouchesMixerSource::~STLesHouchesMixerSource | ( | ) | [virtual] |
Definition at line 19 of file STLesHouchesMixerSource.cc.
00019 { 00020 edm::LogInfo("Generator|STLesHouchesMixerSource")<<"ending STLesHouchesMixerSource"; 00021 }
Implements edm::ConfigurableInputSource.
Definition at line 23 of file STLesHouchesMixerSource.cc.
References GenMuonPlsPt100GeV_cfg::cout, lat::endl(), and edm::ConfigurableInputSource::event().
00023 { 00024 std::cout<<" event() = "<<event()<<std::endl; 00025 if (event() > 10 ) return false; // stop after 10 events 00026 else return true; 00027 }
std::string edm::STLesHouchesMixerSource::inputLHEFile22_ [private] |
std::string edm::STLesHouchesMixerSource::inputLHEFile23_ [private] |