Get the analysis.
222 bool passed_HLT=
false;
228 for (
unsigned int ti=0; (ti<trigNames.
size()) && !passed_HLT; ++ti) {
230 if (pos==0) passed_HLT = HLTresults->accept(ti);
241 if (!photonCollection.
isValid())
return;
248 for (
unsigned int ti=0; ti<trigNames.
size(); ++ti) {
251 passed_HLT = HLTresults->accept(ti);
258 for (PhotonCollection::const_iterator recoPhoton = photonCollection->begin(); recoPhoton!=photonCollection->end(); recoPhoton++){
292 for (
unsigned int i=0; i<vertexCollection.size(); ++
i) {
293 if (vertexCollection[i].isValid()) nvvertex++;
295 if (nvvertex==0)
return;
318 float photon_et = -9.0;
319 float photon_eta = -9.0;
320 float photon_phi = -9.0;
321 bool photon_passPhotonID =
false;
322 bool found_lead_pho =
false;
323 int photon_count_bar = 0;
324 int photon_count_end = 0;
326 for (PhotonCollection::const_iterator recoPhoton = photonCollection->begin(); recoPhoton!=photonCollection->end(); recoPhoton++){
354 bool pho_current_passPhotonID =
false;
355 bool pho_current_isEB = recoPhoton->isEB();
356 bool pho_current_isEE = recoPhoton->isEE();
358 if ( pho_current_isEB && (recoPhoton->sigmaIetaIeta() < 0.01 || recoPhoton->hadronicOverEm() < 0.05) ) {
360 pho_current_passPhotonID =
true;
362 }
else if ( pho_current_isEE && (recoPhoton->hadronicOverEm() < 0.05) ) {
364 pho_current_passPhotonID =
true;
368 if (!found_lead_pho) {
369 found_lead_pho =
true;
370 photon_passPhotonID = pho_current_passPhotonID;
371 photon_et = recoPhoton->et();
372 photon_eta = recoPhoton->eta();
373 photon_phi = recoPhoton->phi();
387 if (!jetCollection.
isValid())
return;
390 float jet_eta = -8.0;
391 float jet_phi = -8.0;
393 float jet2_pt = -9.0;
394 float jet2_eta = -9.0;
395 float jet2_phi = -9.0;
397 for (
unsigned int i_jet = 0; i_jet < jetCollection->size(); i_jet++) {
398 const Jet*
jet = & jetCollection->at(i_jet);
400 float jet_current_pt = jet->
pt();
403 if (
deltaR(jet->
eta(), jet->
phi(), photon_eta, photon_phi) < 0.5 )
continue;
408 if (jet_current_pt > jet_pt) {
412 jet_pt = jet_current_pt;
413 jet_eta = jet->
eta();
414 jet_phi = jet->
phi();
415 }
else if (jet_current_pt > jet2_pt) {
416 jet2_pt = jet_current_pt;
417 jet2_eta = jet->
eta();
418 jet2_phi = jet->
phi();
428 if ( jet_pt > 0.0 ) {
437 if ( fabs(photon_eta)<1.45 && photon_passPhotonID ) {
438 if (fabs(jet_eta)<1.45){
439 if (photon_eta*jet_eta>0) {
444 }
else if (jet_eta>1.55 && jet_eta<2.5) {
445 if (photon_eta*jet_eta>0) {
461 if ( jet2_pt > 0.0 ) {
virtual edm::TriggerNames const & triggerNames(edm::TriggerResults const &triggerResults) const
MonitorElement * h_photon_et
edm::InputTag theJetCollectionLabel_
edm::InputTag theEndcapRecHitTag
MonitorElement * h_photon_eta
MonitorElement * h_photon_count_bar
MonitorElement * h_photon_et_jetco
edm::InputTag theBarrelRecHitTag
std::vector< std::string > thePlotTheseTriggersToo_
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
edm::InputTag thePhotonCollectionLabel_
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
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
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
edm::InputTag theVertexCollectionLabel_
MonitorElement * h_triggers_passed
MonitorElement * h_deltaPhi_jet_jet2
MonitorElement * h_deltaPhi_photon_jet
virtual float pt() const GCC11_FINAL
transverse momentum