CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
gen::DataCardFileWriter Class Reference

#include <DataCardFileWriter.h>

Inheritance diagram for gen::DataCardFileWriter:
edm::EDAnalyzer edm::EDConsumerBase

Public Member Functions

virtual void analyze (const edm::Event &, const edm::EventSetup &)
 
virtual void beginJob ()
 
 DataCardFileWriter (const edm::ParameterSet &)
 
virtual void endJob ()
 
 ~DataCardFileWriter ()
 
- Public Member Functions inherited from edm::EDAnalyzer
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzer ()
 
ModuleDescription const & moduleDescription () const
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 
- Public Member Functions inherited from edm::EDConsumerBase
 EDConsumerBase ()
 
ProductHolderIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesDependentUpon (const std::string &iProcessName, std::vector< const char * > &oModuleLabels) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 

Detailed Description

Definition at line 21 of file DataCardFileWriter.h.

Constructor & Destructor Documentation

DataCardFileWriter::DataCardFileWriter ( const edm::ParameterSet pset)

Definition at line 13 of file DataCardFileWriter.cc.

References CustomConfigs::Base(), gather_cfg::cout, cmsPerfCommons::FileName, edm::ParameterSet::getParameter(), i, download_sqlite_cfg::outputFile, and AlCaHLTBitMon_QueryRunRegistry::string.

13  {
14  std::string FileName = pset.getParameter<std::string>("FileName") ;
15  std::string Base= getenv ("CMSSW_BASE");
16  Base+="/src/";
17  std::cout << "Writting file:" << Base+FileName << std::endl;
18  std::ofstream outputFile(Base+FileName);
19  std::vector<std::string> FileContent= pset.getParameter<std::vector<std::string> >("FileContent") ;
20  for(unsigned int i=0; i<FileContent.size();i++){
21  outputFile << FileContent.at(i) << std::endl;
22  }
23  outputFile.close();
24  std::cout << "File:" << Base+FileName << " Complete." << std::endl;
25 }
T getParameter(std::string const &) const
int i
Definition: DBlmapReader.cc:9
tuple cout
Definition: gather_cfg.py:121
dictionary FileName
gen::DataCardFileWriter::~DataCardFileWriter ( )
inline

Definition at line 24 of file DataCardFileWriter.h.

24 {};

Member Function Documentation

virtual void gen::DataCardFileWriter::analyze ( const edm::Event ,
const edm::EventSetup  
)
inlinevirtual

Implements edm::EDAnalyzer.

Definition at line 27 of file DataCardFileWriter.h.

27 {};
virtual void gen::DataCardFileWriter::beginJob ( void  )
inlinevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 26 of file DataCardFileWriter.h.

26 {};
virtual void gen::DataCardFileWriter::endJob ( void  )
inlinevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 28 of file DataCardFileWriter.h.

28 {};