1 |
loizides |
1.1 |
//--------------------------------------------------------------------------------------------------
|
2 |
loizides |
1.5 |
// $Id: FillerGsfTracks.h,v 1.4 2008/07/03 07:56:14 loizides Exp $
|
3 |
loizides |
1.1 |
//
|
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 |
loizides |
1.2 |
FillerGsfTracks(const edm::ParameterSet &cfg, const char *name,
|
29 |
|
|
bool active=1, const SimParticleMap *sm=0);
|
30 |
loizides |
1.1 |
~FillerGsfTracks();
|
31 |
|
|
|
32 |
|
|
void BookDataBlock(TreeWriter &tws);
|
33 |
|
|
void FillDataBlock(const edm::Event &e, const edm::EventSetup &es);
|
34 |
loizides |
1.4 |
const GsfTrackMap *GetTrackMap() const { return trackMap_; }
|
35 |
|
|
const TrackCol *GetTrackCol() const { return tracks_; }
|
36 |
loizides |
1.1 |
|
37 |
|
|
private:
|
38 |
|
|
std::string edmName_;
|
39 |
|
|
std::string mitName_;
|
40 |
|
|
std::string edmSimAssociationName_;
|
41 |
|
|
const mithep::SimParticleMap *simMap_;
|
42 |
|
|
mithep::Array<mithep::Track> *tracks_;
|
43 |
|
|
mithep::GsfTrackMap *trackMap_;
|
44 |
|
|
};
|
45 |
|
|
}
|
46 |
|
|
#endif
|