Get the analysis.
248 bool passed_HLT =
false;
254 for (
unsigned int ti = 0; (ti < trigNames.
size()) && !passed_HLT; ++ti) {
257 passed_HLT = HLTresults->
accept(ti);
268 if (!photonCollection.
isValid())
275 for (
unsigned int ti = 0; ti < trigNames.
size(); ++ti) {
278 passed_HLT = HLTresults->
accept(ti);
285 for (PhotonCollection::const_iterator recoPhoton = photonCollection->begin(); recoPhoton != photonCollection->end();
322 for (
unsigned int i = 0; i < vertexCollection.size(); ++
i) {
323 if (vertexCollection[i].isValid())
347 float photon_et = -9.0;
348 float photon_eta = -9.0;
349 float photon_phi = -9.0;
350 bool photon_passPhotonID =
false;
351 bool found_lead_pho =
false;
352 int photon_count_bar = 0;
353 int photon_count_end = 0;
356 auto pho_maxet = std::max_element(
357 photonCollection->begin(),
358 photonCollection->end(),
360 if (pho_maxet != photonCollection->end() && pho_maxet->et() >=
theMinPhotonEt_) {
386 bool pho_current_passPhotonID =
false;
387 bool pho_current_isEB = pho_maxet->isEB();
388 bool pho_current_isEE = pho_maxet->isEE();
390 if (pho_current_isEB && (pho_maxet->sigmaIetaIeta() < 0.01 || pho_maxet->hadronicOverEm() < 0.05)) {
392 pho_current_passPhotonID =
true;
394 }
else if (pho_current_isEE && (pho_maxet->hadronicOverEm() < 0.05)) {
396 pho_current_passPhotonID =
true;
400 if (!found_lead_pho) {
401 found_lead_pho =
true;
402 photon_passPhotonID = pho_current_passPhotonID;
403 photon_et = pho_maxet->et();
404 photon_eta = pho_maxet->eta();
405 photon_phi = pho_maxet->phi();
423 float jet_eta = -8.0;
424 float jet_phi = -8.0;
426 float jet2_pt = -9.0;
427 float jet2_eta = -9.0;
428 float jet2_phi = -9.0;
430 for (
unsigned int i_jet = 0; i_jet < jetCollection->size(); i_jet++) {
431 const Jet*
jet = &jetCollection->at(i_jet);
433 float jet_current_pt = jet->
pt();
436 if (
deltaR(jet->
eta(), jet->
phi(), photon_eta, photon_phi) < 0.5)
443 if (jet_current_pt > jet_pt) {
447 jet_pt = jet_current_pt;
448 jet_eta = jet->
eta();
449 jet_phi = jet->
phi();
450 }
else if (jet_current_pt > jet2_pt) {
451 jet2_pt = jet_current_pt;
452 jet2_eta = jet->
eta();
453 jet2_phi = jet->
phi();
470 if (fabs(photon_eta) < 1.45 && photon_passPhotonID) {
471 if (fabs(jet_eta) < 1.45) {
472 if (photon_eta * jet_eta > 0) {
477 }
else if (jet_eta > 1.55 && jet_eta < 2.5) {
478 if (photon_eta * jet_eta > 0) {
edm::EDGetTokenT< edm::View< reco::Jet > > theJetCollectionToken_
MonitorElement * h_photon_et
double eta() const final
momentum pseudorapidity
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
bool accept() const
Has at least one path accepted the event?
MonitorElement * h_deltaR_photon_jet2
MonitorElement * h_photon_et_jetfs
double pt() const final
transverse momentum
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
MonitorElement * h_photon_et_jetfo
MonitorElement * h_jet2_ptOverPhotonEt
MonitorElement * h_photon_et_jetcs
Container::value_type value_type
MonitorElement * h_jet2_pt
MonitorElement * h_photon_et_beforeCuts
MonitorElement * h_jet_pt
Abs< T >::type abs(const T &t)
edm::EDGetTokenT< EcalRecHitCollection > theBarrelRecHitToken_
bool theRequirePhotonFound_
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
double phi() const final
momentum azimuthal angle
edm::EDGetTokenT< EcalRecHitCollection > theEndcapRecHitToken_
edm::TriggerNames const & triggerNames(edm::TriggerResults const &triggerResults) const override