Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:13:11

0001 #include "DQMOffline/PFTau/interface/PFCandidateManager.h"
0002 
0003 #include "DataFormats/ParticleFlowCandidate/interface/PFCandidate.h"
0004 
0005 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0006 
0007 #include <TFile.h>
0008 #include <TH1.h>
0009 #include <TH2.h>
0010 #include <TROOT.h>
0011 
0012 using namespace std;
0013 
0014 PFCandidateManager::~PFCandidateManager() {}
0015 
0016 void PFCandidateManager::setDirectory(TDirectory *dir) {
0017   Benchmark::setDirectory(dir);
0018 
0019   candBench_.setDirectory(dir);
0020   pfCandBench_.setDirectory(dir);
0021   matchCandBench_.setDirectory(dir);
0022 }
0023 
0024 void PFCandidateManager::setParameters(float dRMax, bool matchCharge, Benchmark::Mode mode) {
0025   dRMax_ = dRMax;
0026   matchCharge_ = matchCharge;
0027   mode_ = mode;
0028 
0029   candBench_.setParameters(mode);
0030   pfCandBench_.setParameters(mode);
0031   matchCandBench_.setParameters(mode);
0032 }
0033 
0034 void PFCandidateManager::setup(DQMStore::IBooker &b) {
0035   candBench_.setup(b);
0036   pfCandBench_.setup(b);
0037   matchCandBench_.setup(b);
0038 }