1 |
#ifndef trkupgradeanalysis_MCInfoPlotSet_h
|
2 |
#define trkupgradeanalysis_MCInfoPlotSet_h
|
3 |
|
4 |
#include "VHbbAnalysis/VHbbDataFormats/interface/VHbbEventAuxInfo.h"
|
5 |
|
6 |
#include <map>
|
7 |
#include <string>
|
8 |
|
9 |
// Forward declarations
|
10 |
class TH1F;
|
11 |
class TDirectory;
|
12 |
|
13 |
namespace trkupgradeanalysis
|
14 |
{
|
15 |
/** @brief A class to take care of booking and filling histograms about Monte Carlo information in the event.
|
16 |
*
|
17 |
* @author Mark Grimes (mark.grimes@bristol.ac.uk)
|
18 |
* @date 15/Jan/2012
|
19 |
*/
|
20 |
class MCInfoPlotSet
|
21 |
{
|
22 |
public:
|
23 |
MCInfoPlotSet();
|
24 |
void book( TDirectory* pDirectory );
|
25 |
void fill( const VHbbEventAuxInfo& eventAuxInfo );
|
26 |
private:
|
27 |
bool histogramHaveBeenBooked_;
|
28 |
|
29 |
TH1F* pEventString_;
|
30 |
std::map<std::string,int> stringToBinMap_;
|
31 |
|
32 |
TH1F* pNumberOfBunchCrossings_;
|
33 |
TH1F* pNumberOfInteractionsPerBunchCrossing_;
|
34 |
TH1F* pTotalInteractionsPerEvent_;
|
35 |
|
36 |
TH1F* pNumberOfPrimaryVertices_; ///< @brief Not MC related, but it's in the AuxInfo object so easier to plot it here.
|
37 |
};
|
38 |
|
39 |
} // end of namespace trkupgradeanalysis
|
40 |
|
41 |
|
42 |
#endif // end of "#ifndef trkupgradeanalysis_MCInfoPlotSet_h"
|