ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/Validation/interface/MCParticlesValMod.h
Revision: 1.1
Committed: Mon Mar 23 09:09:11 2009 UTC (16 years, 1 month ago) by loizides
Content type: text/plain
Branch: MAIN
Log Message:
Moved here from MitAna/Validation.

File Contents

# User Rev Content
1 loizides 1.1 //--------------------------------------------------------------------------------------------------
2     // $Id: MCParticlesValMod.h,v 1.1 2009/03/17 15:44:07 loizides Exp $
3     //
4     //
5     // Authors: C.Loizides
6     //--------------------------------------------------------------------------------------------------
7    
8     #ifndef MITPHYSICS_VALIDATION_MCPARTICLESVALMOD_H
9     #define MITPHYSICS_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