1 |
#include <iostream>
|
2 |
#include <fstream>
|
3 |
|
4 |
#include "FWCore/MessageLogger/interface/MessageLogger.h"
|
5 |
|
6 |
#include "UserCode/HbbAnalysis/interface/HistosPairs.hh"
|
7 |
|
8 |
namespace HbbAnalysis {//namespace
|
9 |
|
10 |
// void HistosPairs::FillEventHistograms(const edm::Handle<std::vector<CompositePtrCandidateT1T2MEt<reco::Candidate, reco::Candidate> > > & aCol)
|
11 |
// {
|
12 |
|
13 |
// //if (doGenMatched_) {
|
14 |
// //unsigned int nMatched = 0;
|
15 |
// // for (std::vector<CompositePtrCandidateT1T2MEt<reco::Candidate, reco::Candidate> >::const_iterator iPair = aCol->begin();
|
16 |
// // iPair != aCol->end();
|
17 |
// // iPair++)
|
18 |
// // {
|
19 |
// //if (MatchesGenParticles(*iPair)) nMatched++;
|
20 |
// // }
|
21 |
// // p_nPairs->Fill(nMatched);
|
22 |
// //}
|
23 |
// // else
|
24 |
// p_nPairs->Fill(aCol->size());
|
25 |
|
26 |
// }
|
27 |
|
28 |
// void HistosPairs::FillHistograms(const CompositePtrCandidateT1T2MEt<reco::Candidate, reco::Candidate> & aPair){//FillHistograms
|
29 |
|
30 |
// reco::Candidate::LorentzVector lp4 = aPair.p4Vis();
|
31 |
// p_Vis_px->Fill(lp4.px());
|
32 |
// p_Vis_py->Fill(lp4.py());
|
33 |
// p_Vis_pz->Fill(lp4.pz());
|
34 |
// p_Vis_pt->Fill(lp4.pt());
|
35 |
// p_Vis_Et->Fill(lp4.Et());
|
36 |
// p_Vis_mt->Fill(lp4.mt());
|
37 |
// p_Vis_mass->Fill(lp4.mass());
|
38 |
// p_Vis_energy->Fill(lp4.energy());
|
39 |
// p_Vis_eta->Fill(lp4.eta());
|
40 |
// p_Vis_phi->Fill(lp4.phi());
|
41 |
|
42 |
// if (aPair.collinearApproxIsValid()){
|
43 |
// lp4 = aPair.p4CollinearApprox();
|
44 |
// p_Coll_px->Fill(lp4.px());
|
45 |
// p_Coll_py->Fill(lp4.py());
|
46 |
// p_Coll_pz->Fill(lp4.pz());
|
47 |
// p_Coll_pt->Fill(lp4.pt());
|
48 |
// p_Coll_Et->Fill(lp4.Et());
|
49 |
// p_Coll_mt->Fill(lp4.mt());
|
50 |
// p_Coll_mass->Fill(lp4.mass());
|
51 |
// p_Coll_energy->Fill(lp4.energy());
|
52 |
// p_Coll_eta->Fill(lp4.eta());
|
53 |
// p_Coll_phi->Fill(lp4.phi());
|
54 |
// }
|
55 |
|
56 |
// lp4 = aPair.p4CDFmethod();
|
57 |
// p_CDF_px->Fill(lp4.px());
|
58 |
// p_CDF_py->Fill(lp4.py());
|
59 |
// p_CDF_pz->Fill(lp4.pz());
|
60 |
// p_CDF_pt->Fill(lp4.pt());
|
61 |
// p_CDF_Et->Fill(lp4.Et());
|
62 |
// p_CDF_mt->Fill(lp4.mt());
|
63 |
// p_CDF_mass->Fill(lp4.mass());
|
64 |
// p_CDF_energy->Fill(lp4.energy());
|
65 |
// p_CDF_eta->Fill(lp4.eta());
|
66 |
// p_CDF_phi->Fill(lp4.phi());
|
67 |
|
68 |
// p_charge->Fill(aPair.charge());
|
69 |
|
70 |
// p_mt12MET->Fill(aPair.mt12MET());
|
71 |
|
72 |
// p_mt1MET->Fill(aPair.mt1MET());
|
73 |
// p_mt2MET->Fill(aPair.mt2MET());
|
74 |
// p_dPhi1MET->Fill(aPair.dPhi1MET());
|
75 |
// p_dPhi2MET->Fill(aPair.dPhi2MET());
|
76 |
|
77 |
// p_dPhi12->Fill(aPair.dPhi12());
|
78 |
// p_dR12->Fill(aPair.dR12());
|
79 |
|
80 |
|
81 |
// }//FillHistograms
|
82 |
|
83 |
}//namespace
|
84 |
|
85 |
|