Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
#include "DQMOffline/PFTau/interface/PFCandidateManager.h"

#include "DataFormats/ParticleFlowCandidate/interface/PFCandidate.h"

#include "FWCore/ParameterSet/interface/ParameterSet.h"

#include <TFile.h>
#include <TH1.h>
#include <TH2.h>
#include <TROOT.h>

using namespace std;

PFCandidateManager::~PFCandidateManager() {}

void PFCandidateManager::setDirectory(TDirectory *dir) {
  Benchmark::setDirectory(dir);

  candBench_.setDirectory(dir);
  pfCandBench_.setDirectory(dir);
  matchCandBench_.setDirectory(dir);
}

void PFCandidateManager::setParameters(float dRMax, bool matchCharge, Benchmark::Mode mode) {
  dRMax_ = dRMax;
  matchCharge_ = matchCharge;
  mode_ = mode;

  candBench_.setParameters(mode);
  pfCandBench_.setParameters(mode);
  matchCandBench_.setParameters(mode);
}

void PFCandidateManager::setup(DQMStore::IBooker &b) {
  candBench_.setup(b);
  pfCandBench_.setup(b);
  matchCandBench_.setup(b);
}