test
Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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
private
:
24
std::vector<std::string>
pdfs_
;
25
std::map<std::string, std::vector<double> >
weights_
;
26
};
27
28
};
29
30
#endif
heppy::PdfWeightProducerTool::pdfs_
std::vector< std::string > pdfs_
Definition:
PdfWeightProducerTool.h:24
GenEventInfoProduct
Definition:
GenEventInfoProduct.h:15
heppy::PdfWeightProducerTool::weights_
std::map< std::string, std::vector< double > > weights_
Definition:
PdfWeightProducerTool.h:25
heppy::PdfWeightProducerTool::PdfWeightProducerTool
PdfWeightProducerTool()
Definition:
PdfWeightProducerTool.h:18
heppy::PdfWeightProducerTool::addPdfSet
void addPdfSet(const std::string &name)
Definition:
PdfWeightProducerTool.cc:18
heppy::PdfWeightProducerTool::processEvent
void processEvent(const GenEventInfoProduct &pdfstuff)
Definition:
PdfWeightProducerTool.cc:29
mergeVDriftHistosByStation.name
string name
Definition:
mergeVDriftHistosByStation.py:77
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
heppy::PdfWeightProducerTool::beginJob
void beginJob()
Definition:
PdfWeightProducerTool.cc:23
heppy::PdfWeightProducerTool::getWeights
const std::vector< double > & getWeights(const std::string &name) const
Definition:
PdfWeightProducerTool.cc:55
heppy::PdfWeightProducerTool
Definition:
PdfWeightProducerTool.h:16
GenEventInfoProduct.h
Generated for CMSSW Reference Manual by
1.8.5