#include <GBRWrap/GBRWrapperMaker/src/GBRWrapperMaker.cc>
Public Member Functions | |
GBRWrapperMaker (const edm::ParameterSet &) | |
~GBRWrapperMaker () | |
Static Public Member Functions | |
static void | fillDescriptions (edm::ConfigurationDescriptions &descriptions) |
Private Member Functions | |
virtual void | analyze (const edm::Event &, const edm::EventSetup &) |
virtual void | beginJob () |
virtual void | beginLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) |
virtual void | beginRun (edm::Run const &, edm::EventSetup const &) |
virtual void | endJob () |
virtual void | endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) |
virtual void | endRun (edm::Run const &, edm::EventSetup const &) |
Description: [one line class summary]
Implementation: [Notes on implementation]
Definition at line 49 of file GBRWrapperMaker.cc.
GBRWrapperMaker::GBRWrapperMaker | ( | const edm::ParameterSet & | iConfig | ) | [explicit] |
Definition at line 81 of file GBRWrapperMaker.cc.
{
//now do what ever initialization is needed
}
GBRWrapperMaker::~GBRWrapperMaker | ( | ) |
Definition at line 89 of file GBRWrapperMaker.cc.
{ // do anything here that needs to be done at desctruction time // (e.g. close files, deallocate resources etc.) }
void GBRWrapperMaker::analyze | ( | const edm::Event & | iEvent, |
const edm::EventSetup & | iSetup | ||
) | [private, virtual] |
Implements edm::EDAnalyzer.
Definition at line 104 of file GBRWrapperMaker.cc.
References EdgesToViz::infile.
{ using namespace edm; // #ifdef THIS_IS_AN_EVENT_EXAMPLE // Handle<ExampleData> pIn; // iEvent.getByLabel("example",pIn); // #endif // // #ifdef THIS_IS_AN_EVENTSETUP_EXAMPLE // ESHandle<SetupData> pSetup; // iSetup.get<SetupRecord>().get(pSetup); // #endif //from Josh: TFile *infile = new TFile("/afs/cern.ch/user/b/bendavid/cmspublic/gbrv3ph.root","READ"); printf("load forest\n"); GBRForest *gbreb = (GBRForest*)infile->Get("EBCorrection"); GBRForest *gbrebvar = (GBRForest*)infile->Get("EBUncertainty"); GBRForest *gbree = (GBRForest*)infile->Get("EECorrection"); GBRForest *gbreevar = (GBRForest*)infile->Get("EEUncertainty"); //from Rishi TFile *infile_PFLC = new TFile("/afs/cern.ch/user/r/rpatel/ConvXml/TMVARegression_BDTG_PFClusterCorr.root","READ"); TFile *infile_PFGC = new TFile("/afs/cern.ch/user/r/rpatel/ConvXml/TMVARegression_BDTG_PFGlobalCorr.root","READ"); TFile *infile_PFRes = new TFile("/afs/cern.ch/user/r/rpatel/ConvXml/TMVARegression_BDTG_PFRes.root ","READ"); GBRForest *gbrLC = (GBRForest*)infile_PFLC->Get("GBRForest"); GBRForest *gbrGC = (GBRForest*)infile_PFGC->Get("GBRForest"); GBRForest *gbrRes = (GBRForest*)infile_PFRes->Get("GBRForest"); printf("made objects\n"); edm::Service<cond::service::PoolDBOutputService> poolDbService; if (poolDbService.isAvailable()) { poolDbService->writeOne( gbreb, poolDbService->beginOfTime(), "wgbrph_EBCorrection" ); poolDbService->writeOne( gbrebvar, poolDbService->beginOfTime(), "wgbrph_EBUncertainty" ); poolDbService->writeOne( gbree, poolDbService->beginOfTime(), "wgbrph_EECorrection" ); poolDbService->writeOne( gbreevar, poolDbService->beginOfTime(), "wgbrph_EEUncertainty" ); poolDbService->writeOne( gbrLC, poolDbService->beginOfTime(), "wgbrph_PFLCCorrection" ); poolDbService->writeOne( gbrGC, poolDbService->beginOfTime(), "wgbrph_PFGlobalCorrection" ); poolDbService->writeOne( gbrRes, poolDbService->beginOfTime(), "wgbrph_PFResolution" ); } }
void GBRWrapperMaker::beginJob | ( | void | ) | [private, virtual] |
void GBRWrapperMaker::beginLuminosityBlock | ( | edm::LuminosityBlock const & | , |
edm::EventSetup const & | |||
) | [private, virtual] |
void GBRWrapperMaker::beginRun | ( | edm::Run const & | , |
edm::EventSetup const & | |||
) | [private, virtual] |
void GBRWrapperMaker::endJob | ( | void | ) | [private, virtual] |
void GBRWrapperMaker::endLuminosityBlock | ( | edm::LuminosityBlock const & | , |
edm::EventSetup const & | |||
) | [private, virtual] |
void GBRWrapperMaker::endRun | ( | edm::Run const & | , |
edm::EventSetup const & | |||
) | [private, virtual] |
void GBRWrapperMaker::fillDescriptions | ( | edm::ConfigurationDescriptions & | descriptions | ) | [static] |
Reimplemented from edm::EDAnalyzer.
Definition at line 210 of file GBRWrapperMaker.cc.
References edm::ConfigurationDescriptions::addDefault(), and edm::ParameterSetDescription::setUnknown().
{ //The following says we do not know what parameters are allowed so do no validation // Please change this to state exactly what you do use, even if it is no parameters edm::ParameterSetDescription desc; desc.setUnknown(); descriptions.addDefault(desc); }