PhysicsTools
Heppy
interface
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>
12
#include "
SimDataFormats/GeneratorProducts/interface/GenEventInfoProduct.h
"
13
14
namespace
heppy
{
15
16
class
PdfWeightProducerTool
{
17
public
:
18
PdfWeightProducerTool
() {}
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
24
private
:
25
std::vector<std::string>
pdfs_
;
26
std::map<std::string, std::vector<double> >
weights_
;
27
};
28
29
};
// namespace heppy
30
31
#endif
GenEventInfoProduct
Definition:
GenEventInfoProduct.h:17
heppy::PdfWeightProducerTool::processEvent
void processEvent(const GenEventInfoProduct &pdfstuff)
Definition:
PdfWeightProducerTool.cc:29
heppy::PdfWeightProducerTool::PdfWeightProducerTool
PdfWeightProducerTool()
Definition:
PdfWeightProducerTool.h:18
heppy::PdfWeightProducerTool
Definition:
PdfWeightProducerTool.h:16
heppy::PdfWeightProducerTool::weights_
std::map< std::string, std::vector< double > > weights_
Definition:
PdfWeightProducerTool.h:26
heppy
TAKEN FROM http://cmssw.cvs.cern.ch/cgi-bin/cmssw.cgi/CMSSW/ElectroWeakAnalysis/Utilities/src/PdfWeig...
Definition:
AlphaT.h:16
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
heppy::PdfWeightProducerTool::pdfs_
std::vector< std::string > pdfs_
Definition:
PdfWeightProducerTool.h:25
GenEventInfoProduct.h
heppy::PdfWeightProducerTool::addPdfSet
void addPdfSet(const std::string &name)
Definition:
PdfWeightProducerTool.cc:18
heppy::PdfWeightProducerTool::getWeights
const std::vector< double > & getWeights(const std::string &name) const
Definition:
PdfWeightProducerTool.cc:56
heppy::PdfWeightProducerTool::beginJob
void beginJob()
Definition:
PdfWeightProducerTool.cc:23
Skims_PA_cff.name
name
Definition:
Skims_PA_cff.py:17
Generated for CMSSW Reference Manual by
1.8.16