ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/PhysicsMod/interface/HLTExampleMod.h
Revision: 1.1
Committed: Tue Nov 25 14:30:53 2008 UTC (16 years, 5 months ago) by loizides
Content type: text/plain
Branch: MAIN
Log Message:
Added examples here.

File Contents

# User Rev Content
1 loizides 1.1 //--------------------------------------------------------------------------------------------------
2     // $Id: HLTExampleMod.h,v 1.1 2008/09/28 02:41:21 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     ~HLTExampleMod() {}
29    
30     void SetTrigObjsName(const char *n) { fObjsName=n; }
31    
32     protected:
33     TString fObjsName; //name of trigger objects
34     TH1D *fPtHist; //!pt histogram
35     TH1D *fEtaHist; //!eta histogram
36    
37     void Process();
38     void SlaveBegin();
39    
40     ClassDef(HLTExampleMod,1) // HLT example analysis module
41     };
42     }
43     #endif