22 <<
" Failed to find File = " << inputFileName <<
" !!\n";
23 std::auto_ptr<TFile>
inputFile(
new TFile(inputFileName.fullPath().data()));
27 for ( std::vector<std::string>::const_iterator variable = variables.begin();
28 variable != variables.end(); ++variable ) {
41 for ( std::vector<lutEntryType*>::iterator lutEntry =
lutEntries_.begin();
43 produces<double>((*lutEntry)->variableName_);
49 for ( std::vector<lutEntryType*>::iterator it =
lutEntries_.begin();
58 std::cout <<
"<EmbeddingKineReweightProducer::produce>:" << std::endl;
64 if ( genDiTaus->size() != 1 )
66 <<
"Failed to find unique genDiTau object !!\n";
69 std::cout <<
"diTau: Pt = " << genDiTau.
pt() <<
", eta = " << genDiTau.
eta() <<
", phi = " << genDiTau.
phi() <<
", mass = " << genDiTau.
mass() << std::endl;
72 for ( std::vector<lutEntryType*>::const_iterator lutEntry =
lutEntries_.begin();
74 double weight = (**lutEntry)(genDiTau);
78 std::cout <<
" " << (*lutEntry)->variableName_ <<
" = " << weight << std::endl;
80 std::auto_ptr<double> weightPtr(
new double(weight));
81 evt.
put(weightPtr, (*lutEntry)->variableName_);
T getParameter(std::string const &) const
virtual double pt() const =0
transverse momentum
#define DEFINE_FWK_MODULE(type)
virtual double mass() const =0
mass
bool exists(std::string const ¶meterName) const
checks if a parameter exists
edm::InputTag srcGenDiTaus_
std::vector< std::string > getParameterNamesForType(bool trackiness=true) const
edm::View< reco::Candidate > CandidateView
std::vector< lutEntryType * > lutEntries_
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
~EmbeddingKineReweightProducer()
void produce(edm::Event &, const edm::EventSetup &)
EmbeddingKineReweightProducer(const edm::ParameterSet &)
virtual double phi() const =0
momentum azimuthal angle
virtual double eta() const =0
momentum pseudorapidity