1 |
//--------------------------------------------------------------------------------------------------
|
2 |
// $Id: FillerSimParticles.h,v 1.7 2008/07/08 12:38:20 loizides Exp $
|
3 |
//
|
4 |
// FillerSimParticles
|
5 |
//
|
6 |
// Imlementation of a filler to fill simulation level particles into our data structure.
|
7 |
//
|
8 |
// Authors: J.Bendavid
|
9 |
//--------------------------------------------------------------------------------------------------
|
10 |
|
11 |
#ifndef TREEFILLER_FILLERSIMPARTICLES_H
|
12 |
#define TREEFILLER_FILLERSIMPARTICLES_H
|
13 |
|
14 |
#include "FWCore/ParameterSet/interface/ParameterSet.h"
|
15 |
#include "SimDataFormats/TrackingAnalysis/interface/TrackingParticleFwd.h"
|
16 |
#include "MitAna/DataUtil/interface/TreeWriter.h"
|
17 |
#include "MitAna/DataTree/interface/Collections.h"
|
18 |
#include "MitProd/TreeFiller/interface/BaseFiller.h"
|
19 |
#include "MitProd/TreeFiller/interface/AssociationMaps.h"
|
20 |
|
21 |
namespace mithep
|
22 |
{
|
23 |
class FillerSimParticles : public BaseFiller
|
24 |
{
|
25 |
public:
|
26 |
FillerSimParticles(const edm::ParameterSet &cfg, bool active=1,
|
27 |
const GenParticleMap *genMap=0);
|
28 |
~FillerSimParticles();
|
29 |
|
30 |
void BookDataBlock(TreeWriter &tws);
|
31 |
void FillDataBlock(const edm::Event &e, const edm::EventSetup &es);
|
32 |
void ResolveLinks (const edm::Event &e, const edm::EventSetup &es);
|
33 |
const SimParticleMap *GetSimParticleMap() const { return simMap_; }
|
34 |
|
35 |
private:
|
36 |
std::string edmName_;
|
37 |
std::string mitName_;
|
38 |
const mithep::GenParticleMap *genMap_;
|
39 |
mithep::Array<mithep::SimParticle> *simParticles_;
|
40 |
mithep::SimParticleMap *simMap_;
|
41 |
};
|
42 |
}
|
43 |
#endif
|