CMS 3D CMS Logo

PdfWeightProducerTool.h
Go to the documentation of this file.
1 #ifndef PhysicsTools_Heppy_PdfWeightProducerTool_h
2 #define PhysicsTools_Heppy_PdfWeightProducerTool_h
3 
4 #include "TRandom3.h"
5 #include <iostream>
6 
8 
9 #include <string>
10 #include <vector>
11 #include <map>
13 
14 namespace heppy {
15 
17  public:
19  void addPdfSet(const std::string &name) ;
20  void beginJob() ;
21  void processEvent(const GenEventInfoProduct & pdfstuff) ;
22  const std::vector<double> & getWeights(const std::string &name) const ;
23  private:
24  std::vector<std::string> pdfs_;
25  std::map<std::string, std::vector<double> > weights_;
26 };
27 
28 };
29 
30 #endif
std::vector< std::string > pdfs_
std::map< std::string, std::vector< double > > weights_
void addPdfSet(const std::string &name)
void processEvent(const GenEventInfoProduct &pdfstuff)
const std::vector< double > & getWeights(const std::string &name) const
TAKEN FROM http://cmssw.cvs.cern.ch/cgi-bin/cmssw.cgi/CMSSW/ElectroWeakAnalysis/Utilities/src/PdfWeig...
Definition: AlphaT.h:17