1 |
//------------------------------------------------------------------------------
|
2 |
// $Id: ttEvtSelMod.h,v 1.1 2008/10/06 16:59:52 ceballos Exp $
|
3 |
//
|
4 |
// ttEvtSelMod
|
5 |
//
|
6 |
// A Module for Selecting ttbar events
|
7 |
// and produces some distributions
|
8 |
//
|
9 |
//
|
10 |
// Authors: ceballos
|
11 |
//------------------------------------------------------------------------------
|
12 |
|
13 |
#ifndef HWWMODS_TTEVTSELMOD_H
|
14 |
#define HWWMODS_TTEVTSELMOD_H
|
15 |
|
16 |
#include "MitAna/TreeMod/interface/BaseMod.h"
|
17 |
#include "MitAna/DataTree/interface/Collections.h"
|
18 |
|
19 |
class TH1D;
|
20 |
class TH2D;
|
21 |
|
22 |
namespace mithep
|
23 |
{
|
24 |
class ttEvtSelMod : public BaseMod
|
25 |
{
|
26 |
public:
|
27 |
ttEvtSelMod(const char *name="ttEvtSelMod",
|
28 |
const char *title="Example analysis module with all branches");
|
29 |
~ttEvtSelMod() {}
|
30 |
void SetPrintDebug(bool b) { fPrintDebug = b; }
|
31 |
void SetCleanJetsName (TString s) { fCleanJetsName = s;}
|
32 |
void SetMCLeptonsName(TString s) { fMCLeptonsName = s;}
|
33 |
void SetMCQuarksName(TString s) { fMCQuarksName = s; }
|
34 |
|
35 |
protected:
|
36 |
bool fPrintDebug; // Debug info
|
37 |
TString fPlotType; // Type of histograms to make
|
38 |
TString fMetName; // name of met collection
|
39 |
TString fMuonName; // name of muon collection
|
40 |
TString fCleanJetsName; // name of clean central jets collection
|
41 |
TString fMCLeptonsName ; // new lepton coll
|
42 |
TString fMCQuarksName; // new Quarks coll
|
43 |
MetCol *fMet; // Missing Et
|
44 |
MuonCol *fMuons; // Muon branch
|
45 |
|
46 |
TH1D *hDttPresel[300];
|
47 |
|
48 |
int fNEventsProcessed;
|
49 |
|
50 |
void Begin();
|
51 |
void Process();
|
52 |
void SlaveBegin();
|
53 |
void SlaveTerminate();
|
54 |
void Terminate();
|
55 |
|
56 |
ClassDef(ttEvtSelMod,1) // TAM example analysis module
|
57 |
};
|
58 |
}
|
59 |
#endif
|