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 |
class TTree;
|
14 |
class TBranch;
|
15 |
namespace trkupgradeanalysis
|
16 |
{
|
17 |
namespace tools
|
18 |
{
|
19 |
class NTupleRow;
|
20 |
}
|
21 |
}
|
22 |
|
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 |
CutSetPlotSet( boost::shared_ptr<trkupgradeanalysis::VHbbCandidateCutSet> pCutSet, bool createNTupleOfAdditionalVariables=true );
|
34 |
void book( TDirectory* pDirectory );
|
35 |
void fill( const VHbbCandidate& vhbbCandidate );
|
36 |
void fill( const trkupgradeanalysis::tools::NTupleRow& ntupleRow );
|
37 |
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 |
std::vector<TH1F*> passedCandidatesPlots_;
|
48 |
std::vector<TH1F*> additionalVariablePlots_;
|
49 |
bool createNTupleOfAdditionalVariables_;
|
50 |
std::vector<TBranch*> additionalVariableBranches_; ///< If ntuplising, a branch for each variable
|
51 |
TTree* pAdditionalVariableTree_;
|
52 |
};
|
53 |
|
54 |
} // end of namespace trkupgradeanalysis
|
55 |
|
56 |
|
57 |
#endif // end of "#ifndef trkupgradeanalysis_CutSetPlotSet_h"
|