Get the analysis.
271 bool passed_HLT =
false;
277 for (
unsigned int ti = 0; (ti < trigNames.
size()) && !passed_HLT; ++ti) {
279 if (pos == 0) passed_HLT = HLTresults->accept(ti);
289 if (!photonCollection.
isValid())
return;
295 for (
unsigned int ti = 0; ti < trigNames.
size(); ++ti) {
298 passed_HLT = HLTresults->accept(ti);
305 for (PhotonCollection::const_iterator recoPhoton =
306 photonCollection->begin();
307 recoPhoton != photonCollection->end(); recoPhoton++) {
342 for (
unsigned int i = 0; i < vertexCollection.size(); ++
i) {
343 if (vertexCollection[i].isValid()) nvvertex++;
345 if (nvvertex == 0)
return;
366 float photon_et = -9.0;
367 float photon_eta = -9.0;
368 float photon_phi = -9.0;
369 bool photon_passPhotonID =
false;
370 bool found_lead_pho =
false;
371 int photon_count_bar = 0;
372 int photon_count_end = 0;
375 auto pho_maxet = std::max_element(
376 photonCollection->begin(), photonCollection->end(),
379 if (pho_maxet != photonCollection->end() &&
406 bool pho_current_passPhotonID =
false;
407 bool pho_current_isEB = pho_maxet->isEB();
408 bool pho_current_isEE = pho_maxet->isEE();
410 if (pho_current_isEB && (pho_maxet->sigmaIetaIeta() < 0.01 ||
411 pho_maxet->hadronicOverEm() < 0.05)) {
413 pho_current_passPhotonID =
true;
415 }
else if (pho_current_isEE && (pho_maxet->hadronicOverEm() < 0.05)) {
417 pho_current_passPhotonID =
true;
421 if (!found_lead_pho) {
422 found_lead_pho =
true;
423 photon_passPhotonID = pho_current_passPhotonID;
424 photon_et = pho_maxet->et();
425 photon_eta = pho_maxet->eta();
426 photon_phi = pho_maxet->phi();
441 if (!jetCollection.
isValid())
return;
444 float jet_eta = -8.0;
445 float jet_phi = -8.0;
447 float jet2_pt = -9.0;
448 float jet2_eta = -9.0;
449 float jet2_phi = -9.0;
451 for (
unsigned int i_jet = 0; i_jet < jetCollection->size(); i_jet++) {
452 const Jet*
jet = &jetCollection->at(i_jet);
454 float jet_current_pt = jet->
pt();
457 if (
deltaR(jet->
eta(), jet->
phi(), photon_eta, photon_phi) < 0.5)
continue;
462 if (jet_current_pt > jet_pt) {
468 jet_eta = jet->
eta();
469 jet_phi = jet->
phi();
470 }
else if (jet_current_pt > jet2_pt) {
471 jet2_pt = jet_current_pt;
472 jet2_eta = jet->
eta();
473 jet2_phi = jet->
phi();
491 if (fabs(photon_eta) < 1.45 &&
492 photon_passPhotonID) {
493 if (fabs(jet_eta) < 1.45) {
494 if (photon_eta * jet_eta > 0) {
499 }
else if (jet_eta > 1.55 && jet_eta < 2.5) {
500 if (photon_eta * jet_eta > 0) {
525 deltaR(photon_eta, photon_phi, jet2_eta, jet2_phi));
edm::EDGetTokenT< edm::View< reco::Jet > > theJetCollectionToken_
virtual edm::TriggerNames const & triggerNames(edm::TriggerResults const &triggerResults) const
MonitorElement * h_photon_et
MonitorElement * h_photon_eta
MonitorElement * h_photon_count_bar
edm::EDGetTokenT< edm::TriggerResults > trigTagToken_
MonitorElement * h_photon_et_jetco
std::vector< std::string > thePlotTheseTriggersToo_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::EDGetTokenT< reco::VertexCollection > theVertexCollectionToken_
MonitorElement * h_deltaR_jet_jet2
Base class for all types of Jets.
MonitorElement * h_deltaR_photon_jet2
MonitorElement * h_photon_et_jetfs
std::vector< Vertex > VertexCollection
collection of Vertex objects
MonitorElement * h_deltaEt_photon_jet
Strings::size_type size() const
MonitorElement * h_jet_count
MonitorElement * h_jet_eta
virtual double eta() const
momentum pseudorapidity
virtual double pt() const
transverse momentum
MonitorElement * h_photon_et_jetfo
MonitorElement * h_jet2_ptOverPhotonEt
MonitorElement * h_photon_et_jetcs
MonitorElement * h_jet2_pt
MonitorElement * h_photon_et_beforeCuts
MonitorElement * h_jet_pt
Abs< T >::type abs(const T &t)
edm::EDGetTokenT< EcalRecHitCollection > theBarrelRecHitToken_
Container::value_type value_type
bool theRequirePhotonFound_
double deltaR(double eta1, double eta2, double phi1, double phi2)
MonitorElement * h_photon_count_end
static const char *const trigNames[]
std::string theTriggerPathToPass_
MonitorElement * h_jet2_eta
MonitorElement * h_deltaPhi_photon_jet2
T const * product() const
std::string const & triggerName(unsigned int index) const
MonitorElement * h_triggers_passed
edm::EDGetTokenT< reco::PhotonCollection > thePhotonCollectionToken_
MonitorElement * h_deltaPhi_jet_jet2
MonitorElement * h_deltaPhi_photon_jet
virtual double phi() const
momentum azimuthal angle
edm::EDGetTokenT< EcalRecHitCollection > theEndcapRecHitToken_