ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/Validation/interface/GenRelValMod.h
Revision: 1.5
Committed: Thu Dec 4 13:52:38 2008 UTC (16 years, 5 months ago) by loizides
Content type: text/plain
Branch: MAIN
Changes since 1.4: +12 -12 lines
Log Message:
Updated to use const ptr to col

File Contents

# User Rev Content
1 loizides 1.1 //--------------------------------------------------------------------------------------------------
2 loizides 1.5 // $Id: GenRelValMod.h,v 1.4 2008/11/21 20:12:26 loizides Exp $
3 loizides 1.1 //
4     // GenRelValMod
5     //
6     // This is an analysis module which is used to validate the genparticles filled into the tree.
7     //
8     // Authors: C.Loizides
9     //--------------------------------------------------------------------------------------------------
10    
11 loizides 1.3 #ifndef MITANA_VALIDATION_GENRELVAL_H
12     #define MITANA_VALIDATION_GENRELVAL_H
13 loizides 1.1
14     #include <Riostream.h>
15     #include "MitAna/TreeMod/interface/BaseMod.h"
16     #include "MitAna/DataTree/interface/Collections.h"
17    
18     namespace mithep
19     {
20     class GenRelValMod : public BaseMod
21     {
22     public:
23     GenRelValMod(const char *name = "GenRelValMod",
24     const char *title = "Analysis Module for GenParticles validation");
25     ~GenRelValMod() {}
26    
27 loizides 1.5 void Process();
28     void SetPrint(Bool_t b) { fPrint = b; }
29     void SetWrite(Bool_t b) { fWrite = b; }
30     void SlaveBegin();
31     void SlaveTerminate();
32 loizides 1.1
33     protected:
34 loizides 1.5 TString fMCPartName; //name of particle collection
35     TString fFileName; //filename of output
36     Bool_t fPrint; //=true then print to screen (def=1)
37     Bool_t fWrite; //=true then write to file (def=0)
38     const MCParticleCol *fParticles; //!particle branch
39     std::ofstream *ofile; //!output text file
40 loizides 1.1
41     ClassDef(GenRelValMod,1) // GenParticle validation module
42     };
43     }
44     #endif