ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/Validation/interface/GenRelValMod.h
Revision: 1.4
Committed: Fri Nov 21 20:12:26 2008 UTC (16 years, 5 months ago) by loizides
Content type: text/plain
Branch: MAIN
Changes since 1.3: +8 -3 lines
Log Message:
Have switch to print to screen.

File Contents

# User Rev Content
1 loizides 1.1 //--------------------------------------------------------------------------------------------------
2 loizides 1.4 // $Id: GenRelValMod.h,v 1.3 2008/09/10 03:33:29 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.4 void Process();
28     void SetPrint(Bool_t b) { fPrint = b; }
29     void SetWrite(Bool_t b) { fWrite = b; }
30     void SlaveBegin();
31 loizides 1.1 void SlaveTerminate();
32    
33     protected:
34 loizides 1.2 TString fMCPartName; //name of particle collection
35 loizides 1.4 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 loizides 1.2 MCParticleCol *fParticles; //!particle branch
39 loizides 1.1 std::ofstream *ofile; //!output text file
40    
41     ClassDef(GenRelValMod,1) // GenParticle validation module
42     };
43     }
44     #endif