QcdPhotonsDQM

Macros

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
#ifndef QcdPhotonsDQM_H
#define QcdPhotonsDQM_H

/** \class QcdPhotonsDQM
 *
 *  DQM offline for QCD-Photons
 *
 *  \author Michael B. Anderson, University of Wisconsin Madison
 */

#include "FWCore/Framework/interface/Frameworkfwd.h"

// Trigger stuff
#include "DataFormats/Common/interface/TriggerResults.h"

#include "DataFormats/EcalRecHit/interface/EcalRecHitCollections.h"
#include "DataFormats/EgammaCandidates/interface/PhotonFwd.h"
#include "DataFormats/VertexReco/interface/VertexFwd.h"
#include "DQMServices/Core/interface/DQMEDAnalyzer.h"
#include "DQMServices/Core/interface/DQMStore.h"

#include "RecoEcal/EgammaCoreTools/interface/EcalClusterLazyTools.h"

namespace reco {
  class Jet;
}

class QcdPhotonsDQM : public DQMEDAnalyzer {
public:
  /// Constructor
  QcdPhotonsDQM(const edm::ParameterSet&);

  /// Destructor
  ~QcdPhotonsDQM() override;

  //Book histograms
  void bookHistograms(DQMStore::IBooker&, edm::Run const&, edm::EventSetup const&) override;

  /// Get the analysis
  void analyze(const edm::Event&, const edm::EventSetup&) override;

private:
  // ----------member data ---------------------------

  // Switch for verbosity
  std::string logTraceName;

  // Variables from config file
  std::string theTriggerPathToPass_;
  std::vector<std::string> thePlotTheseTriggersToo_;
  edm::InputTag theJetCollectionLabel_;
  edm::EDGetTokenT<edm::TriggerResults> trigTagToken_;
  edm::EDGetTokenT<reco::PhotonCollection> thePhotonCollectionToken_;
  edm::EDGetTokenT<edm::View<reco::Jet> > theJetCollectionToken_;
  edm::EDGetTokenT<reco::VertexCollection> theVertexCollectionToken_;
  double theMinJetPt_;
  double theMinPhotonEt_;
  bool theRequirePhotonFound_;
  double thePlotPhotonMaxEt_;
  double thePlotPhotonMaxEta_;
  double thePlotJetMaxEta_;

  edm::InputTag theBarrelRecHitTag_;
  edm::InputTag theEndcapRecHitTag_;
  edm::EDGetTokenT<EcalRecHitCollection> theBarrelRecHitToken_;
  edm::EDGetTokenT<EcalRecHitCollection> theEndcapRecHitToken_;
  EcalClusterLazyTools::ESGetTokens ecalClusterToolsESGetTokens_;

  // Histograms
  MonitorElement* h_triggers_passed;
  MonitorElement* h_photon_et_beforeCuts;
  MonitorElement* h_photon_et;
  MonitorElement* h_photon_eta;
  MonitorElement* h_photon_count_bar;
  MonitorElement* h_photon_count_end;
  MonitorElement* h_jet_pt;
  MonitorElement* h_jet_eta;
  MonitorElement* h_jet_count;
  MonitorElement* h_deltaPhi_photon_jet;
  MonitorElement* h_deltaPhi_jet_jet2;
  MonitorElement* h_deltaEt_photon_jet;
  MonitorElement* h_jet2_ptOverPhotonEt;
  MonitorElement* h_jet2_pt;
  MonitorElement* h_jet2_eta;
  MonitorElement* h_deltaPhi_photon_jet2;
  MonitorElement* h_deltaR_jet_jet2;
  MonitorElement* h_deltaR_photon_jet2;

  MonitorElement* h_photon_et_jetcs;
  MonitorElement* h_photon_et_jetco;
  MonitorElement* h_photon_et_jetfs;
  MonitorElement* h_photon_et_jetfo;
};
#endif

/* Local Variables: */
/* show-trailing-whitespace: t */
/* truncate-lines: t */
/* End: */