ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/grimes/VHbbAnalysisCode/interface/CutSetPlotSet.h
Revision: 1.3
Committed: Wed Aug 15 22:37:46 2012 UTC (12 years, 8 months ago) by grimes
Content type: text/plain
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +15 -1 lines
Log Message:
Long overdue commit with several new files

File Contents

# User Rev Content
1 grimes 1.1 #ifndef trkupgradeanalysis_CutSetPlotSet_h
2     #define trkupgradeanalysis_CutSetPlotSet_h
3    
4     #include <vector>
5     #include <boost/shared_ptr.hpp>
6     #include "TrkUpgradeAnalysis/VHbb/interface/VHbbCandidatePlotSet.h"
7     #include "TrkUpgradeAnalysis/VHbb/interface/VHbbCandidateCutSets.h"
8    
9     // Forward declarations
10     class TH1F;
11     class TDirectory;
12     class VHbbCandidate;
13 grimes 1.3 class TTree;
14     class TBranch;
15     namespace trkupgradeanalysis
16     {
17     namespace tools
18     {
19     class NTupleRow;
20     }
21     }
22 grimes 1.1
23     namespace trkupgradeanalysis
24     {
25     /** @brief A class to take care of booking and filling histograms about cuts on VHbbCandidates.
26     *
27     * @author Mark Grimes (mark.grimes@bristol.ac.uk)
28     * @date 26/Nov/2011
29     */
30     class CutSetPlotSet
31     {
32     public:
33 grimes 1.3 CutSetPlotSet( boost::shared_ptr<trkupgradeanalysis::VHbbCandidateCutSet> pCutSet, bool createNTupleOfAdditionalVariables=true );
34 grimes 1.1 void book( TDirectory* pDirectory );
35     void fill( const VHbbCandidate& vhbbCandidate );
36 grimes 1.3 void fill( const trkupgradeanalysis::tools::NTupleRow& ntupleRow );
37 grimes 1.1 private:
38     bool histogramHaveBeenBooked_;
39    
40     boost::shared_ptr<trkupgradeanalysis::VHbbCandidateCutSet> pCutSet_;
41    
42     VHbbCandidatePlotSet passedCandidateHistograms_;
43     TH1F* pCutsPassed_;
44     TH1F* pCutFlow_;
45     std::vector<TH1F*> nMinus1Plots_;
46     std::vector<TH1F*> allCandidatesPlots_;
47 grimes 1.2 std::vector<TH1F*> passedCandidatesPlots_;
48 grimes 1.3 std::vector<TH1F*> additionalVariablePlots_;
49     bool createNTupleOfAdditionalVariables_;
50     std::vector<TBranch*> additionalVariableBranches_; ///< If ntuplising, a branch for each variable
51     TTree* pAdditionalVariableTree_;
52 grimes 1.1 };
53    
54     } // end of namespace trkupgradeanalysis
55    
56    
57     #endif // end of "#ifndef trkupgradeanalysis_CutSetPlotSet_h"