1 |
//--------------------------------------------------------------------------------------------------
|
2 |
// $Id: HLTExampleMod.h,v 1.2 2008/12/10 17:25:16 loizides Exp $
|
3 |
//
|
4 |
// HLTExampleAnaMod
|
5 |
//
|
6 |
// This TAM module shows how to use the HLTMod module. It produces the pt- and
|
7 |
// eta- distributions for trigger objects corresponding for a given trigger
|
8 |
// object name.
|
9 |
//
|
10 |
// Authors: C.Loizides
|
11 |
//--------------------------------------------------------------------------------------------------
|
12 |
|
13 |
#ifndef MITANA_PHYSICSMOD_HLTEXAMPLEMOD_H
|
14 |
#define MITANA_PHYSICSMOD_HLTEXAMPLEMOD_H
|
15 |
|
16 |
#include "MitAna/TreeMod/interface/BaseMod.h"
|
17 |
#include "MitAna/DataTree/interface/Collections.h"
|
18 |
|
19 |
class TH1D;
|
20 |
|
21 |
namespace mithep
|
22 |
{
|
23 |
class HLTExampleMod : public BaseMod
|
24 |
{
|
25 |
public:
|
26 |
HLTExampleMod(const char *name="HLTExampleMod",
|
27 |
const char *title="HLT example module");
|
28 |
|
29 |
void SetTrigObjsName(const char *n) { fObjsName=n; }
|
30 |
|
31 |
protected:
|
32 |
void Process();
|
33 |
void SlaveBegin();
|
34 |
void SlaveTerminate();
|
35 |
|
36 |
TString fObjsName; //name of trigger objects
|
37 |
TH1D *fPtHist; //!pt histogram
|
38 |
TH1D *fEtaHist; //!eta histogram
|
39 |
|
40 |
ClassDef(HLTExampleMod, 1) // HLT example analysis module
|
41 |
};
|
42 |
}
|
43 |
#endif
|