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";
158 std::ostringstream err;
edm::InputTag inputTagClustersHcal_
edm::Service< TFileService > fileservice_
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)
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
true particle for particle flow
edm::InputTag inputTagSimParticles_
edm::Handle< reco::PFClusterCollection > * clustersHcal_
Particle reconstructed by the particle flow algorithm.
virtual void analyze(const edm::Event &, const edm::EventSetup &)
edm::InputTag inputTagClustersEcal_