1 #ifndef CALIBRATABLETEST_H_ 2 #define CALIBRATABLETEST_H_ 86 const std::vector<reco::PFSimParticle>& sims);
92 const std::vector<reco::PFCandidate>& cands,
const double&
deltaR);
102 double deltaR(
const double& eta1,
const double& eta2,
const double& phi1,
151 event.getByLabel(tag, c);
153 std::cout <<
"Warning! Collection for label " << tag <<
" is not valid!" << std::endl;
157 std::cout <<
"Couldn't get collection\n";
edm::InputTag inputTagClustersHcal_
edm::Service< TFileService > fileservice_
~CalibratableTest() override
std::vector< unsigned > findPrimarySimParticles(const std::vector< reco::PFSimParticle > &sims)
virtual void fillTreeAndReset()
CalibratableTest(const edm::ParameterSet &)
edm::Handle< reco::PFCandidateCollection > * pfCandidates_
unsigned nParticleWrites_
double deltaR(const double &eta1, const double &eta2, const double &phi1, const double &phi2)
void extractCandidate(const reco::PFCandidate &cand)
pftools::Calibratable * calib_
edm::Handle< reco::PFSimParticleCollection > * simParticles_
edm::Handle< reco::PFClusterCollection > * clustersEcal_
EDAnalyzer to exercise and demonstrate usage of Calibratable tree.
void getCollection(edm::Handle< T > &c, const edm::InputTag &tag, const edm::Event &event) const
edm::InputTag inputTagCandidates_
std::vector< unsigned > findCandidatesInDeltaR(const reco::PFSimParticle &pft, const std::vector< reco::PFCandidate > &cands, const double &deltaR)
true particle for particle flow
edm::InputTag inputTagSimParticles_
edm::Handle< reco::PFClusterCollection > * clustersHcal_
Particle reconstructed by the particle flow algorithm.
void analyze(const edm::Event &, const edm::EventSetup &) override
edm::InputTag inputTagClustersEcal_