1 |
//--------------------------------------------------------------------------------------------------
|
2 |
// $Id: GenRelValMod.h,v 1.3 2008/09/10 03:33:29 loizides Exp $
|
3 |
//
|
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 |
#ifndef MITANA_VALIDATION_GENRELVAL_H
|
12 |
#define MITANA_VALIDATION_GENRELVAL_H
|
13 |
|
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 |
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 |
|
33 |
protected:
|
34 |
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 |
MCParticleCol *fParticles; //!particle branch
|
39 |
std::ofstream *ofile; //!output text file
|
40 |
|
41 |
ClassDef(GenRelValMod,1) // GenParticle validation module
|
42 |
};
|
43 |
}
|
44 |
#endif
|