Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-11-17 01:40:59

0001 #include "DQMOffline/RecoB/plugins/MiniAODTaggerHarvester.h"
0002 #include "FWCore/Framework/interface/MakerMacros.h"
0003 #include "FWCore/Framework/interface/Event.h"
0004 
0005 MiniAODTaggerHarvester::MiniAODTaggerHarvester(const edm::ParameterSet& pSet)
0006     : folder_(pSet.getParameter<std::string>("folder")),
0007       discrParameters_(pSet.getParameter<edm::ParameterSet>("parameters")),
0008 
0009       mclevel_(pSet.getParameter<int>("MClevel")),
0010       doCTagPlots_(pSet.getParameter<bool>("CTagPlots")),
0011       dodifferentialPlots_(pSet.getParameter<bool>("differentialPlots")),
0012       discrCut_(pSet.getParameter<double>("discrCut")),
0013 
0014       etaActive_(pSet.getParameter<bool>("etaActive")),
0015       etaMin_(pSet.getParameter<double>("etaMin")),
0016       etaMax_(pSet.getParameter<double>("etaMax")),
0017       ptActive_(pSet.getParameter<bool>("ptActive")),
0018       ptMin_(pSet.getParameter<double>("ptMin")),
0019       ptMax_(pSet.getParameter<double>("ptMax"))
0020 
0021 {}
0022 
0023 MiniAODTaggerHarvester::~MiniAODTaggerHarvester() {}
0024 
0025 void MiniAODTaggerHarvester::dqmEndJob(DQMStore::IBooker& ibook, DQMStore::IGetter& iget) {
0026   jetTagPlotter_ = std::make_unique<JetTagPlotter>(folder_,
0027                                                    EtaPtBin(etaActive_, etaMin_, etaMax_, ptActive_, ptMin_, ptMax_),
0028                                                    discrParameters_,
0029                                                    mclevel_,
0030                                                    true,
0031                                                    ibook,
0032                                                    doCTagPlots_,
0033                                                    dodifferentialPlots_,
0034                                                    discrCut_);
0035 
0036   jetTagPlotter_->finalize(ibook, iget);
0037 }
0038 
0039 //define this as a plug-in
0040 DEFINE_FWK_MODULE(MiniAODTaggerHarvester);