1 |
//--------------------------------------------------------------------------------------------------
|
2 |
// $Id: FillerGlobalMuons.h,v 1.3 2008/06/18 19:17:21 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);
|
27 |
~FillerSimParticles();
|
28 |
|
29 |
void BookDataBlock(TreeWriter &tws);
|
30 |
void FillDataBlock(const edm::Event &e, const edm::EventSetup &es);
|
31 |
void ResolveLinks (const edm::Event &e, const edm::EventSetup &es);
|
32 |
const SimParticleMap *GetSimParticleMap() { return simMap_; }
|
33 |
|
34 |
private:
|
35 |
std::string edmName_;
|
36 |
std::string edmDataName_;
|
37 |
std::string mitName_;
|
38 |
mithep::Array<mithep::SimParticle> *simParticles_;
|
39 |
mithep::SimParticleMap* simMap_;
|
40 |
edm::Handle<TrackingParticleCollection> trackingParticleProduct;
|
41 |
};
|
42 |
}
|
43 |
#endif
|