45 startFromGen_ = iConfig.
getParameter<
bool>(
"StartFromGen");
46 plotAgainstRecoQuantities_ = iConfig.
getParameter<
bool>(
"PlotAgainstRecoQuantities");
47 onlyTwoJets_ = iConfig.
getParameter<
bool>(
"OnlyTwoJets");
53 minDeltaEt_ = iConfig.
getParameter<
double>(
"minDeltaEt");
54 maxDeltaEt_ = iConfig.
getParameter<
double>(
"maxDeltaEt");
55 minDeltaPhi_ = iConfig.
getParameter<
double>(
"minDeltaPhi");
56 maxDeltaPhi_ = iConfig.
getParameter<
double>(
"maxDeltaPhi");
59 if (outputFile_.size() > 0)
60 edm::LogInfo(
"OutputInfo") <<
" ParticleFLow Task histograms will be saved to '" << outputFile_.c_str()<<
"'";
61 else edm::LogInfo(
"OutputInfo") <<
" ParticleFlow Task histograms will NOT be saved";
77 if (plotAgainstRecoQuantities_) path +=
"Reco";
else path +=
"Gen";
79 setup(
dbe_, plotAgainstRecoQuantities_, minDeltaEt_, maxDeltaEt_, minDeltaPhi_, maxDeltaPhi_, doMetPlots_);
94 const candidateCollection *truth_candidates;
95 const candidateCollection *reco_candidates;
104 bool isGen = iEvent.
getByLabel(inputTruthLabel_, truth_hnd);
106 std::cout <<
"Warning : no Gen jets in input !" << std::endl;
110 truth_candidates = truth_hnd.
product();
114 bool isReco = iEvent.
getByLabel(inputRecoLabel_, reco_hnd);
116 std::cout <<
"Warning : no Reco jets in input !" << std::endl;
119 reco_candidates = reco_hnd.
product();
127 if (!truth_candidates || !reco_candidates) {
129 edm::LogInfo(
"OutputInfo") <<
" failed to retrieve data required by ParticleFlow Task";
130 edm::LogInfo(
"OutputInfo") <<
" ParticleFlow Task cannot continue...!";
139 fill(reco_candidates,truth_candidates,
140 startFromGen_, plotAgainstRecoQuantities_,
141 onlyTwoJets_, recPt_cut, minEta_cut, maxEta_cut, deltaR_cut);
148 if (outputFile_.size() != 0)
GenericBenchmarkAnalyzer(const edm::ParameterSet &)
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
virtual ~GenericBenchmarkAnalyzer()
virtual void analyze(const edm::Event &, const edm::EventSetup &)
void save(const std::string &filename, const std::string &path="", const std::string &pattern="", const std::string &rewrite="", SaveReferenceTag ref=SaveWithReference, int minStatus=dqm::qstatus::STATUS_OK, const std::string &fileupdate="RECREATE")
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
T const * product() const
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
void setCurrentFolder(const std::string &fullpath)