CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_2_7_hltpatch2/src/FWCore/Framework/interface/CommonParams.h

Go to the documentation of this file.
00001 #ifndef FWCore_Framework_CommonParams_h
00002 #define FWCore_Framework_CommonParams_h
00003 
00004 /*----------------------------------------------------------------------
00005 
00006 Class to hold parameters used by the EventProcessor and also by subprocesses.
00007 
00008 ----------------------------------------------------------------------*/
00009 
00010 #include "DataFormats/Provenance/interface/PassID.h"
00011 #include "DataFormats/Provenance/interface/ReleaseVersion.h"
00012 
00013 #include <string>
00014 
00015 namespace edm {
00016   //------------------------------------------------------------------
00017   //
00018 
00019   struct CommonParams {
00020     CommonParams() :
00021       processName_(),
00022       releaseVersion_(),
00023       passID_(),
00024       maxEventsInput_(),
00025       maxLumisInput_() {
00026     }
00027 
00028     CommonParams(std::string const& processName,
00029                  ReleaseVersion const& releaseVersion,
00030                  PassID const& passID,
00031                  int maxEvents,
00032                  int maxLumis) :
00033       processName_(processName),
00034       releaseVersion_(releaseVersion),
00035       passID_(passID),
00036       maxEventsInput_(maxEvents),
00037       maxLumisInput_(maxLumis) {
00038     }
00039       
00040     std::string processName_;
00041     ReleaseVersion releaseVersion_;
00042     PassID passID_;
00043     int maxEventsInput_;
00044     int maxLumisInput_;
00045   }; // struct CommonParams
00046 }
00047 
00048 #endif