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 
98 // forward declarations
99 class TFile;
100 class TH1F;
101 class TH2F;
102 class TProfile;
103 class TTree;
104 class SimVertex;
105 class SimTrack;
106 
107 
109 {
110 
111 
112  public:
113 
114  //
115  explicit ZToMuMuGammaAnalyzer( const edm::ParameterSet& ) ;
116  virtual ~ZToMuMuGammaAnalyzer();
117 
118  virtual void analyze( const edm::Event&, const edm::EventSetup& ) ;
119  virtual void beginJob() ;
120  virtual void endJob() ;
121  virtual void endRun(const edm::Run& , const edm::EventSetup& ) ;
122 
123 
124  private:
133  //
140  unsigned int prescaleFactor_;
146  std::stringstream currentFolder_;
147  int nEvt_;
148  int nEntry_;
149 
150 
151  // muon selection
152  float muonMinPt_;
155  float muonMaxDxy_;
161  // dimuon selection
164  // photon selection
168 
169  // mu mu gamma selection
170  float nearMuonDr_;
177 
178  float mumuInvMass( const reco::Muon & m1,const reco::Muon & m2 ) ;
179  float mumuGammaInvMass(const reco::Muon & mu1,const reco::Muon & mu2, const reco::Photon& pho );
180  bool basicMuonSelection ( const reco::Muon & m );
181  bool muonSelection ( const reco::Muon & m, const reco::BeamSpot& bs );
182  bool photonSelection ( const reco::Photon & p );
183 
184 
188 
191 
193 
198 
204 
209 
214 
219 
224 
229 
233 
239 
245 
251 
257 
263 
269 
275 
279 
281 
286 
292 
297 
302 
307 
312 
317 
321 
327 
333 
339 
345 
351 
357 
363 
364 
368 
370 
375 
381 
386 
391 
396 
401 
406 
410 
416 
422 
428 
434 
440 
446 
452 
453 
454 };
455 
456 
457 
458 
459 
460 #endif
461 
462 
463 
464 
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_
MonitorElement * h_e2x5VsEtEndcap_
MonitorElement * p_e2x5VsEtBarrel_
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_
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_
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_
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_
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_
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:36
MonitorElement * h_r2x5VsEtBarrel_
MonitorElement * p_trackPtSumHollowVsEt_
MonitorElement * h_r2x5VsEtaBarrel_