CMS 3D CMS Logo

edm::STLesHouchesMixerSource Class Reference

#include <GeneratorInterface/MadGraphInterface/interface/STLesHouchesMixerSource.h>

Inheritance diagram for edm::STLesHouchesMixerSource:

edm::ExternalInputSource edm::ConfigurableInputSource edm::InputSource edm::ProductRegistryHelper

List of all members.

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_


Detailed Description

Definition at line 16 of file STLesHouchesMixerSource.h.


Constructor & Destructor Documentation

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 }


Member Function Documentation

bool STLesHouchesMixerSource::produce ( Event e  )  [private, virtual]

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 }


Member Data Documentation

std::string edm::STLesHouchesMixerSource::inputLHEFile22_ [private]

Definition at line 23 of file STLesHouchesMixerSource.h.

Referenced by STLesHouchesMixerSource().

std::string edm::STLesHouchesMixerSource::inputLHEFile23_ [private]

Definition at line 24 of file STLesHouchesMixerSource.h.

Referenced by STLesHouchesMixerSource().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:44:23 2009 for CMSSW by  doxygen 1.5.4