CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_2_9/src/DQMOffline/PFTau/src/PFCandidateManager.cc

Go to the documentation of this file.
00001 #include "DQMOffline/PFTau/interface/PFCandidateManager.h"
00002 
00003 #include "DataFormats/ParticleFlowCandidate/interface/PFCandidate.h"
00004 
00005 // #include "DQMServices/Core/interface/MonitorElement.h"
00006 // #include "DQMServices/Core/interface/DQMStore.h"
00007 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00008 
00009 #include <TROOT.h>
00010 #include <TFile.h>
00011 #include <TH1.h>
00012 #include <TH2.h>
00013 
00014 
00015 using namespace std;
00016 
00017 
00018 
00019 PFCandidateManager::~PFCandidateManager() {}
00020 
00021 
00022 void PFCandidateManager::setDirectory(TDirectory* dir) {
00023   
00024   Benchmark::setDirectory(dir);
00025 
00026   candBench_.setDirectory(dir);
00027   pfCandBench_.setDirectory(dir);
00028   matchCandBench_.setDirectory(dir);
00029 
00030 } 
00031 
00032 void PFCandidateManager::setParameters( float dRMax,
00033                                         bool matchCharge, 
00034                                         Benchmark::Mode mode) {
00035   dRMax_ = dRMax;
00036   matchCharge_ = matchCharge;
00037   mode_ = mode;
00038   
00039   candBench_.setParameters(mode);
00040   pfCandBench_.setParameters(mode);
00041   matchCandBench_.setParameters(mode);
00042   
00043 }
00044 
00045 void PFCandidateManager::setup() {
00046   candBench_.setup();
00047   pfCandBench_.setup();
00048   matchCandBench_.setup();
00049 }
00050 
00051 
00052