CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ZToMuMuGammaAnalyzer.h
Go to the documentation of this file.
1 #ifndef ZToMuMuGammaAnalyzer_H
2 #define ZToMuMuGammaAnalyzer_H
3 
6 //
11 // DataFormats
24 
33 
38 
43 
45 
46 // Geometry
56 //
57 #include "TFile.h"
58 #include "TH1.h"
59 #include "TH2.h"
60 #include "TTree.h"
61 #include "TVector3.h"
62 #include "TProfile.h"
63 //
64 
73 
74 //
75 //DQM services
79 
80 
81 
82 #include <vector>
83 #include <string>
84 
97 // forward declarations
98 class TFile;
99 class TH1F;
100 class TH2F;
101 class TProfile;
102 class TTree;
103 class SimVertex;
104 class SimTrack;
105 
106 
108 {
109 
110 
111  public:
112 
113  //
114  explicit ZToMuMuGammaAnalyzer( const edm::ParameterSet& ) ;
115  virtual ~ZToMuMuGammaAnalyzer();
116 
117  virtual void analyze( const edm::Event&, const edm::EventSetup& ) ;
118  virtual void beginJob() ;
119  virtual void endJob() ;
120  virtual void endRun(const edm::Run& , const edm::EventSetup& ) ;
121 
122 
123  private:
132 
135 
139  unsigned int prescaleFactor_;
145  std::stringstream currentFolder_;
146  int nEvt_;
147  int nEntry_;
148 
149 
150  // muon selection
151  float muonMinPt_;
154  float muonMaxDxy_;
160  // dimuon selection
163  // photon selection
167 
168  // mu mu gamma selection
169  float nearMuonDr_;
176 
177  float mumuInvMass( const reco::Muon & m1,const reco::Muon & m2 ) ;
178  float mumuGammaInvMass(const reco::Muon & mu1,const reco::Muon & mu2, const reco::Photon& pho );
179  bool basicMuonSelection ( const reco::Muon & m );
180  bool muonSelection ( const reco::Muon & m, const reco::BeamSpot& bs );
181  bool photonSelection ( const reco::Photon & p );
182 
183 
187 
190 
192 
197 
203 
208 
213 
218 
223 
228 
232 
238 
244 
250 
256 
262 
268 
274 
278 
280 
285 
291 
296 
301 
306 
311 
316 
320 
326 
332 
338 
344 
350 
356 
362 
363 
367 
369 
374 
380 
385 
390 
395 
400 
405 
409 
415 
421 
427 
433 
439 
445 
451 
452 
453 };
454 
455 
456 
457 
458 
459 #endif
460 
461 
462 
463 
MonitorElement * h_phoEtaEndcap_
MonitorElement * h_sigmaIetaIetaVsEta_
MonitorElement * p_nTrackIsolHollowVsEta_
MonitorElement * h_phoSigmaIetaIeta_
MonitorElement * h_r2x5VsEtEndcap_
MonitorElement * p_hcalSumVsEtBarrel_
MonitorElement * h_h1OverEEndcap_
MonitorElement * p_r9VsEtaBarrel_
MonitorElement * p_trackPtSumSolidVsEtBarrel_
MonitorElement * h_trackPtSumSolidVsEtaEndcap_
MonitorElement * h_r1x5VsEtaBarrel_
MonitorElement * p_hcalSumVsEtaEndcap_
MonitorElement * h_r2x5VsEta_
MonitorElement * h_scEtaBarrel_
MonitorElement * h_nTrackIsolSolid_
MonitorElement * p_sigmaIetaIetaVsEtaEndcap_
MonitorElement * h_ecalSumVsEtEndcap_
MonitorElement * p_hOverEVsEtEndcap_
bool muonSelection(const reco::Muon &m, const reco::BeamSpot &bs)
MonitorElement * h_ecalSumVsEta_
MonitorElement * p_e1x5VsEtEndcap_
MonitorElement * p_maxEXtalOver3x3VsEt_
MonitorElement * h_scPhiBarrel_
MonitorElement * h1_mumuGammaInvMass_
edm::EDGetTokenT< edm::SortedCollection< EcalRecHit, edm::StrictWeakOrdering< EcalRecHit > > > barrelRecHit_token_
MonitorElement * h_e2x5VsEtEndcap_
MonitorElement * p_e2x5VsEtBarrel_
edm::EDGetTokenT< std::vector< reco::Photon > > photon_token_
MonitorElement * h_trackPtSumHollowVsEtEndcap_
MonitorElement * p_r1x5VsEta_
MonitorElement * p_maxEXtalOver3x3VsEtBarrel_
MonitorElement * h_trackPtSumHollowBarrel_
MonitorElement * p_e1x5VsEtBarrel_
MonitorElement * h_nPhoBarrel_
MonitorElement * p_r1x5VsEtaBarrel_
MonitorElement * h_nTrackIsolHollow_
MonitorElement * h_r1x5VsEtBarrel_
MonitorElement * h_r9VsEtaEndcap_
MonitorElement * h_nTrackIsolHollowVsEt_
MonitorElement * h_trackPtSumSolid_
MonitorElement * p_hOverEVsEta_
MonitorElement * p_r2x5VsEt_
MonitorElement * h_hcalSumEndcap_
MonitorElement * p_e1x5VsEtaBarrel_
MonitorElement * h_trackPtSumHollowVsEtaBarrel_
MonitorElement * h_hOverEEndcap_
MonitorElement * h_r9Endcap_
MonitorElement * p_nTrackIsolSolidVsEt_
MonitorElement * p_e1x5VsEt_
MonitorElement * p_r9VsEtBarrel_
MonitorElement * p_trackPtSumSolidVsEtEndcap_
MonitorElement * h_r2x5VsEtaEndcap_
edm::EDGetTokenT< edm::SortedCollection< EcalRecHit, edm::StrictWeakOrdering< EcalRecHit > > > endcapRecHit_token_
MonitorElement * h_ecalSumBarrel_
MonitorElement * h_h2OverEBarrel_
MonitorElement * p_nTrackIsolSolidVsEtBarrel_
MonitorElement * p_r2x5VsEtBarrel_
MonitorElement * h_trackPtSumHollow_
MonitorElement * h_nTrackIsolHollowVsEtaEndcap_
MonitorElement * p_r1x5VsEtBarrel_
MonitorElement * h_hcalSumVsEtBarrel_
MonitorElement * h_trackPtSumHollowVsEtaEndcap_
edm::EDGetTokenT< trigger::TriggerEvent > triggerEvent_token_
MonitorElement * p_nTrackIsolSolidVsEta_
MonitorElement * h_r9VsEt_
MonitorElement * p_ecalSumVsEtBarrel_
virtual void analyze(const edm::Event &, const edm::EventSetup &)
MonitorElement * p_maxEXtalOver3x3VsEtEndcap_
MonitorElement * h_trackPtSumHollowEndcap_
MonitorElement * h_trackPtSumHollowVsEta_
MonitorElement * h_r1x5VsEt_
MonitorElement * h_phoPhiBarrel_
MonitorElement * p_maxEXtalOver3x3VsEta_
MonitorElement * p_e1x5VsEta_
MonitorElement * h_r9VsEtBarrel_
MonitorElement * p_r2x5VsEtaBarrel_
MonitorElement * h_phoPhi_
MonitorElement * h_e1x5VsEta_
MonitorElement * h_phoPhiEndcap_
MonitorElement * p_nTrackIsolHollowVsEtaBarrel_
MonitorElement * h_maxEXtalOver3x3VsEta_
MonitorElement * p_r9VsEta_
MonitorElement * h_trackPtSumSolidEndcap_
MonitorElement * p_trackPtSumHollowVsEtaBarrel_
MonitorElement * p_e2x5VsEtaBarrel_
MonitorElement * h_nTrackIsolHollowVsEtaBarrel_
MonitorElement * h_sigmaIetaIetaVsEtaEndcap_
MonitorElement * h_e1x5VsEtaBarrel_
MonitorElement * h_h2OverEEndcap_
MonitorElement * h_hcalSumVsEt_
MonitorElement * p_nTrackIsolHollowVsEtEndcap_
MonitorElement * h_trackPtSumSolidVsEtBarrel_
MonitorElement * p_ecalSumVsEt_
MonitorElement * p_r2x5VsEtEndcap_
std::stringstream currentFolder_
MonitorElement * p_hOverEVsEtaEndcap_
MonitorElement * h_scPhiEndcap_
MonitorElement * p_sigmaIetaIetaVsEta_
MonitorElement * h_ecalSumVsEtaBarrel_
MonitorElement * p_nTrackIsolSolidVsEtaBarrel_
MonitorElement * h1_mumuInvMass_
photon histos
MonitorElement * h_e2x5VsEtaBarrel_
MonitorElement * p_trackPtSumSolidVsEt_
MonitorElement * h_trackPtSumSolidVsEta_
MonitorElement * p_e2x5VsEtEndcap_
MonitorElement * h_phoEtaBarrel_
MonitorElement * h_hcalSum_
MonitorElement * p_e1x5VsEtaEndcap_
MonitorElement * p_r2x5VsEtaEndcap_
MonitorElement * h_nTrackIsolSolidVsEta_
MonitorElement * p_nTrackIsolHollowVsEtBarrel_
MonitorElement * h_phoEta_
float mumuInvMass(const reco::Muon &m1, const reco::Muon &m2)
MonitorElement * h_e2x5VsEt_
MonitorElement * p_r1x5VsEtaEndcap_
ZToMuMuGammaAnalyzer(const edm::ParameterSet &)
MonitorElement * h_trackPtSumHollowVsEt_
MonitorElement * h_hcalSumVsEta_
MonitorElement * p_sigmaIetaIetaVsEtaBarrel_
MonitorElement * p_r1x5VsEtEndcap_
MonitorElement * h_ecalSum_
MonitorElement * h_maxEXtalOver3x3VsEtEndcap_
MonitorElement * p_ecalSumVsEtaBarrel_
MonitorElement * p_hcalSumVsEta_
MonitorElement * h_r9VsEtEndcap_
MonitorElement * p_ecalSumVsEtEndcap_
MonitorElement * h_e1x5VsEtBarrel_
MonitorElement * h_e2x5VsEta_
MonitorElement * h_nTrackIsolSolidVsEt_
MonitorElement * p_r9VsEtEndcap_
MonitorElement * h_maxEXtalOver3x3VsEtBarrel_
MonitorElement * h_nTrackIsolHollowVsEta_
MonitorElement * p_r2x5VsEta_
MonitorElement * h_phoEtEndcap_
MonitorElement * p_hcalSumVsEtaBarrel_
MonitorElement * p_trackPtSumSolidVsEtaBarrel_
MonitorElement * p_hOverEVsEtBarrel_
edm::ParameterSet parameters_
MonitorElement * p_maxEXtalOver3x3VsEtaEndcap_
MonitorElement * h_r9VsEta_
MonitorElement * h_ecalSumVsEtaEndcap_
MonitorElement * h_r1x5VsEta_
MonitorElement * p_e2x5VsEt_
MonitorElement * h_nTrackIsolSolidVsEtaBarrel_
bool photonSelection(const reco::Photon &p)
MonitorElement * h_r9VsEtaBarrel_
MonitorElement * h_phoEtBarrel_
MonitorElement * h_h1OverEBarrel_
MonitorElement * h_r1x5VsEtaEndcap_
MonitorElement * h_e2x5VsEtaEndcap_
MonitorElement * h_scEtaEndcap_
MonitorElement * h_e1x5VsEt_
MonitorElement * p_hcalSumVsEt_
MonitorElement * h_h2OverE_
MonitorElement * p_trackPtSumHollowVsEtEndcap_
MonitorElement * h_sigmaIetaIetaVsEtaBarrel_
MonitorElement * h_trackPtSumSolidVsEt_
MonitorElement * h_nTrackIsolHollowBarrel_
MonitorElement * h_hOverE_
MonitorElement * h_h1OverE_
MonitorElement * p_r1x5VsEt_
MonitorElement * h_nTrackIsolHollowVsEtBarrel_
MonitorElement * h_nTrackIsolSolidVsEtaEndcap_
edm::EDGetTokenT< reco::BeamSpot > beamSpot_token_
MonitorElement * p_nTrackIsolHollowVsEtaEndcap_
MonitorElement * p_e2x5VsEta_
MonitorElement * p_e2x5VsEtaEndcap_
MonitorElement * p_maxEXtalOver3x3VsEtaBarrel_
MonitorElement * h_nTrackIsolHollowVsEtEndcap_
MonitorElement * h_phoEEndcap_
endcap only histos
MonitorElement * h_phoSigmaIetaIetaBarrel_
MonitorElement * p_ecalSumVsEtaEndcap_
MonitorElement * h_nTrackIsolSolidVsEtEndcap_
MonitorElement * h_nTrackIsolSolidVsEtBarrel_
MonitorElement * h_hcalSumVsEtEndcap_
MonitorElement * h_maxEXtalOver3x3VsEtaBarrel_
MonitorElement * h_e1x5VsEtaEndcap_
MonitorElement * h_phoEBarrel_
barrel only histos
MonitorElement * p_trackPtSumHollowVsEtBarrel_
bool basicMuonSelection(const reco::Muon &m)
MonitorElement * p_trackPtSumHollowVsEta_
MonitorElement * p_nTrackIsolSolidVsEtEndcap_
MonitorElement * h_trackPtSumSolidBarrel_
MonitorElement * h_trackPtSumSolidVsEtaBarrel_
edm::EDGetTokenT< edm::ValueMap< bool > > PhotonIDTight_token_
MonitorElement * h_maxEXtalOver3x3VsEt_
MonitorElement * p_r9VsEt_
MonitorElement * h_nPhoEndcap_
MonitorElement * p_nTrackIsolSolidVsEtaEndcap_
MonitorElement * p_hOverEVsEt_
MonitorElement * h_phoSigmaIetaIetaEndcap_
MonitorElement * p_trackPtSumHollowVsEtaEndcap_
MonitorElement * p_trackPtSumSolidVsEtaEndcap_
MonitorElement * p_hcalSumVsEtEndcap_
MonitorElement * p_nTrackIsolHollowVsEt_
MonitorElement * h_nTrackIsolSolidEndcap_
MonitorElement * h_r2x5VsEt_
MonitorElement * h_e2x5VsEtBarrel_
MonitorElement * h_nTrackIsolSolidBarrel_
MonitorElement * h_ecalSumVsEt_
MonitorElement * h_nTrackIsolHollowEndcap_
edm::EDGetTokenT< edm::ValueMap< bool > > PhotonIDLoose_token_
MonitorElement * h_maxEXtalOver3x3VsEtaEndcap_
MonitorElement * h_hcalSumBarrel_
MonitorElement * h_ecalSumVsEtBarrel_
MonitorElement * h_hOverEBarrel_
MonitorElement * h_hcalSumVsEtaBarrel_
MonitorElement * h_trackPtSumSolidVsEtEndcap_
MonitorElement * p_r9VsEtaEndcap_
virtual void endRun(const edm::Run &, const edm::EventSetup &)
MonitorElement * h_r9Barrel_
MonitorElement * h_r1x5VsEtEndcap_
MonitorElement * h_trackPtSumHollowVsEtBarrel_
MonitorElement * h_e1x5VsEtEndcap_
MonitorElement * p_ecalSumVsEta_
MonitorElement * h_hcalSumVsEtaEndcap_
float mumuGammaInvMass(const reco::Muon &mu1, const reco::Muon &mu2, const reco::Photon &pho)
MonitorElement * p_hOverEVsEtaBarrel_
MonitorElement * p_trackPtSumSolidVsEta_
MonitorElement * h_ecalSumEndcap_
Definition: Run.h:41
MonitorElement * h_r2x5VsEtBarrel_
MonitorElement * p_trackPtSumHollowVsEt_
edm::EDGetTokenT< std::vector< reco::Muon > > muon_token_
MonitorElement * h_r2x5VsEtaBarrel_