ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/Validation/interface/MCParticlesValMod.h
Revision: 1.1
Committed: Tue Mar 17 15:44:07 2009 UTC (16 years, 1 month ago) by loizides
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_008pre2
Log Message:
Test mods

File Contents

# Content
1 //--------------------------------------------------------------------------------------------------
2 // $Id: MCParticlesMod.h,v 1.4 2008/12/10 17:25:17 loizides Exp $
3 //
4 //
5 // Authors: C.Loizides
6 //--------------------------------------------------------------------------------------------------
7
8 #ifndef MITANA_VALIDATION_MCPARTICLESVALMOD_H
9 #define MITANA_VALIDATION_MCPARTICLESVALMOD_H
10
11 #include "MitAna/TreeMod/interface/BaseMod.h"
12 #include "MitAna/DataTree/interface/Collections.h"
13
14 class TH1D;
15
16 namespace mithep
17 {
18 class MCParticlesValMod : public BaseMod
19 {
20 public:
21 MCParticlesValMod(const char *name="MCParticlesValMod",
22 const char *title="MCParticles analysis module");
23 ~MCParticlesValMod() {}
24
25 const char *GetPartName() const { return fPartName; }
26 void SetPartName(const char *n) { fPartName=n; }
27
28 protected:
29 void Process();
30 void SlaveBegin();
31 void SlaveTerminate();
32
33 TString fPartName; //branch name of MCParticle collection
34 const MCParticleCol *fParticles; //!pointer to generated particle branch
35 TH1D *fHs[100]; //!histograms
36
37 ClassDef(MCParticlesValMod, 1) // MCParticles analysis module
38 };
39 }
40 #endif