1 |
loizides |
1.1 |
//--------------------------------------------------------------------------------------------------
|
2 |
loizides |
1.2 |
// $Id: MCParticlesValMod.h,v 1.1 2009/03/23 09:09:11 loizides Exp $
|
3 |
loizides |
1.1 |
//
|
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 |
|
|
|
24 |
|
|
const char *GetPartName() const { return fPartName; }
|
25 |
|
|
void SetPartName(const char *n) { fPartName=n; }
|
26 |
|
|
|
27 |
|
|
protected:
|
28 |
|
|
void Process();
|
29 |
|
|
void SlaveBegin();
|
30 |
|
|
void SlaveTerminate();
|
31 |
|
|
|
32 |
|
|
TString fPartName; //branch name of MCParticle collection
|
33 |
|
|
const MCParticleCol *fParticles; //!pointer to generated particle branch
|
34 |
|
|
TH1D *fHs[100]; //!histograms
|
35 |
|
|
|
36 |
|
|
ClassDef(MCParticlesValMod, 1) // MCParticles analysis module
|
37 |
|
|
};
|
38 |
|
|
}
|
39 |
|
|
#endif
|