forked from cms-sw/cmssw
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
UAEDF-tomc
committed
Apr 29, 2014
1 parent
a26361d
commit 6ab50c1
Showing
8 changed files
with
34 additions
and
359 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
105 changes: 0 additions & 105 deletions
105
JetMETCorrections/Modules/plugins/QGLikelihoodDBReader.cc
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 0 additions & 6 deletions
6
JetMETCorrections/Modules/plugins/QGLikelihoodSystematicsDBWriter.cc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,10 @@ | ||
// Author: Benedikt Hegner, Tom Cornelis | ||
// Email: [email protected], [email protected] | ||
|
||
#include <sstream> | ||
#include <stdlib.h> | ||
#include <vector> | ||
#include <iterator> | ||
#include <algorithm> | ||
#include <sstream> | ||
#include <memory> | ||
#include <string> | ||
#include <fstream> | ||
#include <iostream> | ||
#include "FWCore/Framework/interface/Frameworkfwd.h" | ||
#include "FWCore/Framework/interface/EDAnalyzer.h" | ||
#include "FWCore/Framework/interface/Event.h" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,78 +1,34 @@ | ||
// -*- C++ -*- | ||
// | ||
// Package: JetMETCorrections/QGLikelihoodESProducer | ||
// Class: QGLikelihoodESProducer | ||
// | ||
/**\class QGLikelihoodESProducer QGLikelihoodESProducer.h JetMETCorrections/QGLikelihoodESProducer/plugins/QGLikelihoodESProducer.cc | ||
/* | ||
Description: ESProducer to get the quark-gluon likelihood object "QGLikelihoodObject" | ||
from record "QGLikelihoodRcd". | ||
Implementation: | ||
Completely trivial, simply returns the QGLikelihoodObject to the user. There is only | ||
one QGLikelihoodObject object in each record. | ||
*/ | ||
// | ||
// Original Author: Salvatore Rappoccio | ||
// Created: Thu, 13 Mar 2014 15:02:39 GMT | ||
// | ||
// | ||
|
||
|
||
#include "JetMETCorrections/Modules/interface/QGLikelihoodESProducer.h" | ||
|
||
// | ||
// constants, enums and typedefs | ||
// | ||
|
||
// | ||
// static data member definitions | ||
// | ||
|
||
// | ||
// constructors and destructor | ||
// | ||
QGLikelihoodESProducer::QGLikelihoodESProducer(const edm::ParameterSet& iConfig) | ||
{ | ||
QGLikelihoodESProducer::QGLikelihoodESProducer(const edm::ParameterSet& iConfig){ | ||
//the following line is needed to tell the framework what | ||
// data is being produced | ||
std::string label(iConfig.getParameter<std::string>("@module_label")); | ||
mAlgo = iConfig.getParameter<std::string>("algo"); | ||
std::string label = iConfig.getParameter<std::string>("@module_label"); | ||
mAlgo = iConfig.getParameter<std::string>("algo"); | ||
setWhatProduced(this, label); | ||
//findingRecordWithKey<QGLikelihoodRcd>(); | ||
} | ||
|
||
|
||
QGLikelihoodESProducer::~QGLikelihoodESProducer() | ||
{ | ||
// The same PDF's are valid for any time | ||
void QGLikelihoodESProducer::setIntervalFor(const edm::eventsetup::EventSetupRecordKey&, const edm::IOVSyncValue&, edm::ValidityInterval& oInterval){ | ||
oInterval = edm::ValidityInterval(edm::IOVSyncValue::beginOfTime(), edm::IOVSyncValue::endOfTime()); | ||
} | ||
|
||
|
||
// | ||
// member functions | ||
// | ||
|
||
void | ||
QGLikelihoodESProducer::setIntervalFor(const edm::eventsetup::EventSetupRecordKey&, | ||
const edm::IOVSyncValue&, | ||
edm::ValidityInterval& oInterval ) { | ||
// the same PDF's is valid for any time | ||
oInterval = edm::ValidityInterval (edm::IOVSyncValue::beginOfTime (), | ||
edm::IOVSyncValue::endOfTime ()) ; | ||
} | ||
|
||
// ------------ method called to produce the data ------------ | ||
QGLikelihoodESProducer::ReturnType | ||
QGLikelihoodESProducer::produce(const QGLikelihoodRcd& iRecord) | ||
{ | ||
using namespace edm::es; | ||
// boost::shared_ptr<QGLikelihoodObject> pQGLikelihoodObject; | ||
// return products(pQGLikelihoodObject); | ||
|
||
// Produce the data | ||
boost::shared_ptr<QGLikelihoodObject> QGLikelihoodESProducer::produce(const QGLikelihoodRcd& iRecord){ | ||
edm::ESHandle<QGLikelihoodObject> qglObj; | ||
iRecord.get(mAlgo, qglObj); | ||
|
||
boost::shared_ptr<QGLikelihoodObject> pMyType( new QGLikelihoodObject(*qglObj) ); | ||
boost::shared_ptr<QGLikelihoodObject> pMyType(new QGLikelihoodObject(*qglObj)); | ||
return pMyType; | ||
|
||
} |
Oops, something went wrong.