Get the analysis.
226 bool passed_HLT=
false;
232 for (
unsigned int ti=0; (ti<trigNames.
size()) && !passed_HLT; ++ti) {
234 if (pos==0) passed_HLT = HLTresults->accept(ti);
245 if (!photonCollection.
isValid())
return;
252 for (
unsigned int ti=0; ti<trigNames.
size(); ++ti) {
255 passed_HLT = HLTresults->accept(ti);
262 for (PhotonCollection::const_iterator recoPhoton = photonCollection->begin(); recoPhoton!=photonCollection->end(); recoPhoton++){
296 for (
unsigned int i=0; i<vertexCollection.size(); ++
i) {
297 if (vertexCollection[i].isValid()) nvvertex++;
299 if (nvvertex==0)
return;
322 float photon_et = -9.0;
323 float photon_eta = -9.0;
324 float photon_phi = -9.0;
325 bool photon_passPhotonID =
false;
326 bool found_lead_pho =
false;
327 int photon_count_bar = 0;
328 int photon_count_end = 0;
330 for (PhotonCollection::const_iterator recoPhoton = photonCollection->begin(); recoPhoton!=photonCollection->end(); recoPhoton++){
358 bool pho_current_passPhotonID =
false;
359 bool pho_current_isEB = recoPhoton->isEB();
360 bool pho_current_isEE = recoPhoton->isEE();
362 if ( pho_current_isEB && (recoPhoton->sigmaIetaIeta() < 0.01 || recoPhoton->hadronicOverEm() < 0.05) ) {
364 pho_current_passPhotonID =
true;
366 }
else if ( pho_current_isEE && (recoPhoton->hadronicOverEm() < 0.05) ) {
368 pho_current_passPhotonID =
true;
372 if (!found_lead_pho) {
373 found_lead_pho =
true;
374 photon_passPhotonID = pho_current_passPhotonID;
375 photon_et = recoPhoton->et();
376 photon_eta = recoPhoton->eta();
377 photon_phi = recoPhoton->phi();
391 if (!jetCollection.
isValid())
return;
394 float jet_eta = -8.0;
395 float jet_phi = -8.0;
397 float jet2_pt = -9.0;
398 float jet2_eta = -9.0;
399 float jet2_phi = -9.0;
401 for (
unsigned int i_jet = 0; i_jet < jetCollection->size(); i_jet++) {
402 const Jet*
jet = & jetCollection->at(i_jet);
404 float jet_current_pt = jet->
pt();
407 if (
deltaR(jet->
eta(), jet->
phi(), photon_eta, photon_phi) < 0.5 )
continue;
412 if (jet_current_pt > jet_pt) {
416 jet_pt = jet_current_pt;
417 jet_eta = jet->
eta();
418 jet_phi = jet->
phi();
419 }
else if (jet_current_pt > jet2_pt) {
420 jet2_pt = jet_current_pt;
421 jet2_eta = jet->
eta();
422 jet2_phi = jet->
phi();
432 if ( jet_pt > 0.0 ) {
441 if ( fabs(photon_eta)<1.45 && photon_passPhotonID ) {
442 if (fabs(jet_eta)<1.45){
443 if (photon_eta*jet_eta>0) {
448 }
else if (jet_eta>1.55 && jet_eta<2.5) {
449 if (photon_eta*jet_eta>0) {
465 if ( jet2_pt > 0.0 ) {
edm::InputTag theBarrelRecHitTag_
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::InputTag theEndcapRecHitTag_
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
MonitorElement * h_photon_et_jetfo
MonitorElement * h_jet2_ptOverPhotonEt
virtual float phi() const GCC11_FINAL
momentum azimuthal angle
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_
bool theRequirePhotonFound_
virtual float eta() const GCC11_FINAL
momentum pseudorapidity
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
std::string const & triggerName(unsigned int index) const
T const * product() const
MonitorElement * h_triggers_passed
edm::EDGetTokenT< reco::PhotonCollection > thePhotonCollectionToken_
MonitorElement * h_deltaPhi_jet_jet2
MonitorElement * h_deltaPhi_photon_jet
virtual float pt() const GCC11_FINAL
transverse momentum
edm::EDGetTokenT< EcalRecHitCollection > theEndcapRecHitToken_