1 |
//--------------------------------------------------------------------------------------------------
|
2 |
// $Id: FillerGsfTracks.h,v 1.6 2008/07/31 12:34:04 loizides Exp $
|
3 |
//
|
4 |
// FillerGsfTracks
|
5 |
//
|
6 |
// Imlementation of a filler to fill EDM gsf tracks into our mithep::Track data structure.
|
7 |
//
|
8 |
// Authors: J.Bendavid
|
9 |
//--------------------------------------------------------------------------------------------------
|
10 |
|
11 |
#ifndef TREEFILLER_FILLERGSFTRACKS_H
|
12 |
#define TREEFILLER_FILLERGSFTRACKS_H
|
13 |
|
14 |
#include "FWCore/ParameterSet/interface/ParameterSet.h"
|
15 |
#include "MitAna/DataUtil/interface/TreeWriter.h"
|
16 |
#include "MitAna/DataTree/interface/Track.h"
|
17 |
#include "DataFormats/GsfTrackReco/interface/GsfTrack.h"
|
18 |
#include "DataFormats/GsfTrackReco/interface/GsfTrackFwd.h"
|
19 |
#include "MitAna/DataTree/interface/Collections.h"
|
20 |
#include "MitProd/TreeFiller/interface/BaseFiller.h"
|
21 |
#include "MitProd/TreeFiller/interface/AssociationMaps.h"
|
22 |
|
23 |
namespace mithep
|
24 |
{
|
25 |
class FillerGsfTracks : public BaseFiller
|
26 |
{
|
27 |
public:
|
28 |
FillerGsfTracks(const edm::ParameterSet &cfg, const char *name, bool active=1, const SimParticleMap *sm=0);
|
29 |
~FillerGsfTracks();
|
30 |
|
31 |
void BookDataBlock(TreeWriter &tws);
|
32 |
void FillDataBlock(const edm::Event &e, const edm::EventSetup &es);
|
33 |
void InitLayerMap();
|
34 |
|
35 |
private:
|
36 |
std::string edmName_; //edm name of gsftracks collection
|
37 |
std::string mitName_; //name of Tracks in OAK
|
38 |
std::string edmSimAssociationName_; //edm name of sim association map
|
39 |
std::string simMapName_; //name of inported map wrt simparts
|
40 |
std::string trackMapName_; //name of export map
|
41 |
const mithep::SimParticleMap *simMap_; //map wrt simulated particles
|
42 |
mithep::Array<mithep::Track> *tracks_; //array of Tracks
|
43 |
mithep::GsfTrackMap *trackMap_; //map wrt tracks
|
44 |
std::map<uint32_t,mithep::Track::HitLayer> layerMap_;
|
45 |
};
|
46 |
}
|
47 |
#endif
|