ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/grimes/VHbbAnalysisCode/interface/MuonInfoPlotSet.h
Revision: 1.2
Committed: Fri Apr 27 13:52:13 2012 UTC (13 years ago) by grimes
Content type: text/plain
Branch: MAIN
Changes since 1.1: +34 -2 lines
Log Message:
Added code to analyse muon isolation.

File Contents

# User Rev Content
1 grimes 1.1 #ifndef trkupgradeanalysis_MuonInfoPlotSet_h
2     #define trkupgradeanalysis_MuonInfoPlotSet_h
3    
4     #include "VHbbAnalysis/VHbbDataFormats/interface/VHbbEvent.h"
5    
6     // Forward declarations
7     class TH1F;
8     class TDirectory;
9 grimes 1.2 class TTree;
10     class VHbbEventAuxInfo;
11 grimes 1.1
12     namespace trkupgradeanalysis
13     {
14     /** @brief A class to take care of booking and filling histograms about MuonInfo objects.
15     *
16     * @author Mark Grimes (mark.grimes@bristol.ac.uk)
17     * @date 27/Nov/2011
18     */
19     class MuonInfoPlotSet
20     {
21     public:
22 grimes 1.2 /** @brief Only constructor
23     *
24     * createIsolationTree - set whether to record the isolation values in a TTree or not. Default
25     * is off to save space.
26     */
27     MuonInfoPlotSet( bool createIsolationTree=false );
28 grimes 1.1 void book( TDirectory* pDirectory );
29 grimes 1.2 void fill( const VHbbEvent::MuonInfo& muon, const VHbbEventAuxInfo* pAuxInfo=NULL );
30    
31     static float combinedRelativeIsolation( const VHbbEvent::MuonInfo& muon );
32     static float deltaBetaCorrectedIsolation( const VHbbEvent::MuonInfo& muon, float deltaBetaFactor=-0.5 );
33     static float rho25CorrectedIsolation( const VHbbEvent::MuonInfo& muon, float rho25 );
34 grimes 1.1 private:
35     bool histogramHaveBeenBooked_;
36    
37 grimes 1.2 bool createIsolationTree_; ///< Whether or not to record isolation values in a TTree.
38     TTree* pIsolationTree_; ///< This TTree is only created if createIsolationTree is set to true in the constructor.
39     int numberOfPrimaryVertices_branch_; ///< All these are variables to hold the branch data
40     float chargedIsolation_branch_;
41     float photonIsolation_branch_;
42     float neutralIsolation_branch_;
43     float pileupIsolation_branch_;
44     float rho25_branch_;
45     float pT_branch_;
46    
47 grimes 1.1 TH1F* pGlobalChi2_;
48     TH1F* pNumberOfPixelHits_;
49     TH1F* pNumberOfGlobalHits_;
50     TH1F* pNumberOfHits_;
51     TH1F* pCategory_;
52     TH1F* pNumberOfMatches_;
53     TH1F* pIPDB_;
54     TH1F* pEta_;
55     TH1F* pPt_;
56 grimes 1.2 TH1F* pChargedIsolation_;
57     TH1F* pPhotonIsolation_;
58     TH1F* pNeutralIsolation_;
59     TH1F* pPileupIsolation_;
60     TH1F* pRelativeChargedIsolation_;
61     TH1F* pRelativePhotonIsolation_;
62     TH1F* pRelativeNeutralIsolation_;
63     TH1F* pRelativePileupIsolation_;
64     TH1F* pRelativeIsolation_;
65     TH1F* pDeltaBetaCorrectedIsolation_;
66     TH1F* pRho25CorrectedIsolation_;
67 grimes 1.1 };
68    
69     } // end of namespace trkupgradeanalysis
70    
71    
72     #endif // end of "#ifndef trkupgradeanalysis_MuonInfoPlotSet_h"