8 |
|
#include "VHbbAnalysis/VHbbDataFormats/interface/VHbbEvent.h" |
9 |
|
|
10 |
|
#include "TrkUpgradeAnalysis/VHbb/interface/MuonInfoCollectionPlotSet.h" |
11 |
+ |
#include "TrkUpgradeAnalysis/VHbb/interface/ElectronInfoCollectionPlotSet.h" |
12 |
|
#include "TrkUpgradeAnalysis/VHbb/interface/MuonInfoPlotSet.h" |
13 |
|
|
14 |
|
// Forward declarations |
40 |
|
*/ |
41 |
|
std::vector<VHbbEvent::MuonInfo> cleanMuons( const std::vector<VHbbEvent::MuonInfo>& muons ); |
42 |
|
|
43 |
+ |
/** @brief Applies the same cleaning as VHbb package, apart from isolation. |
44 |
+ |
* |
45 |
+ |
* Code copied almost verbatim from HbbCandidateFinderAlgo::findElectrons(...) in |
46 |
+ |
* VHbbAnalysis/VHbbDataFormats/src/HbbCandidateFinderAlgo.cc, but with the id95 check |
47 |
+ |
* changed to not care about isolation (set to 5 instead of 7). id95 is the combination |
48 |
+ |
* of 3 bits, one for ID, one for isolation and one for conversion rejection. Hence 7 |
49 |
+ |
* means all 3 bits are set, i.e. the electron passed all three. Since isolation is the |
50 |
+ |
* second bit, 5 means all but the second bit is set. |
51 |
+ |
*/ |
52 |
+ |
std::vector<VHbbEvent::ElectronInfo> cleanElectrons( const std::vector<VHbbEvent::ElectronInfo>& electrons ); |
53 |
+ |
|
54 |
|
/** @brief Returns the first muon in the collection and the next one with an opposite charge. |
55 |
|
* |
56 |
|
* The intention is that the collection should be sorted high to low by pT, so that this method |
80 |
|
*/ |
81 |
|
bool firstMuonIsMoreDeltaBetaCorrectedIsolated( std::pair<VHbbEvent::MuonInfo,VHbbEvent::MuonInfo> diMuons ); |
82 |
|
|
71 |
– |
// TTree* pLeastIsolatedDiMuonTree_; |
72 |
– |
// int numberOfPrimaryVertices_branch_; // All these are variables to hold the branch data |
73 |
– |
// float chargedIsolation_branch_; |
74 |
– |
// float photonIsolation_branch_; |
75 |
– |
// float neutralIsolation_branch_; |
76 |
– |
// float pileupIsolation_branch_; |
77 |
– |
// float pT_branch_; |
83 |
|
trkupgradeanalysis::MuonInfoCollectionPlotSet cleanedMuons_; ///< Plots for the muons that have had cleaning applied (except isolation) |
84 |
+ |
trkupgradeanalysis::ElectronInfoCollectionPlotSet cleanedElectrons_; ///< Plots for the electrons that have had cleaning applied (except isolation) |
85 |
|
trkupgradeanalysis::MuonInfoPlotSet highestPtDiMuon_; ///< Plots for the muon in the pair with the highest pT |
86 |
|
trkupgradeanalysis::MuonInfoPlotSet lowestPtDiMuon_; |
87 |
|
trkupgradeanalysis::MuonInfoPlotSet mostIsolatedDiMuon_; ///< Plots for the muon in the pair that is most isolated |