ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/PhysicsMod/interface/HLTExampleMod.h
Revision: 1.3
Committed: Tue May 12 18:41:39 2009 UTC (15 years, 11 months ago) by loizides
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_009a
Changes since 1.2: +5 -5 lines
Log Message:
Save number of triggered events.

File Contents

# User Rev Content
1 loizides 1.1 //--------------------------------------------------------------------------------------------------
2 loizides 1.3 // $Id: HLTExampleMod.h,v 1.2 2008/12/10 17:25:16 loizides Exp $
3 loizides 1.1 //
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 loizides 1.3 void Process();
33     void SlaveBegin();
34     void SlaveTerminate();
35    
36 loizides 1.1 TString fObjsName; //name of trigger objects
37     TH1D *fPtHist; //!pt histogram
38     TH1D *fEtaHist; //!eta histogram
39    
40 loizides 1.2 ClassDef(HLTExampleMod, 1) // HLT example analysis module
41 loizides 1.1 };
42     }
43     #endif