1 |
loizides |
1.1 |
//--------------------------------------------------------------------------------------------------
|
2 |
loizides |
1.2 |
// $Id: FillerTracks.h,v 1.1 2008/07/01 14:38:33 loizides Exp $
|
3 |
loizides |
1.1 |
//
|
4 |
|
|
// FillerTracks
|
5 |
|
|
//
|
6 |
|
|
// Imlementation of a filler to fill EDM tracks into our mithep::Track data structure.
|
7 |
|
|
//
|
8 |
|
|
// Authors: J.Bendavid, C.Loizides
|
9 |
|
|
//--------------------------------------------------------------------------------------------------
|
10 |
|
|
|
11 |
|
|
#ifndef TREEFILLER_FILLERTRACKS_H
|
12 |
|
|
#define TREEFILLER_FILLERTRACKS_H
|
13 |
|
|
|
14 |
|
|
#include "FWCore/ParameterSet/interface/ParameterSet.h"
|
15 |
|
|
#include "DataFormats/TrackReco/interface/TrackFwd.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 FillerTracks : public BaseFiller
|
24 |
|
|
{
|
25 |
|
|
public:
|
26 |
loizides |
1.2 |
FillerTracks(const edm::ParameterSet &cfg, const char *name,
|
27 |
|
|
bool active=1, const SimParticleMap* sm=0);
|
28 |
loizides |
1.1 |
~FillerTracks();
|
29 |
|
|
|
30 |
|
|
void BookDataBlock(TreeWriter &tws);
|
31 |
|
|
void FillDataBlock(const edm::Event &e,
|
32 |
|
|
const edm::EventSetup &es);
|
33 |
|
|
const TrackMap *GetTrackMap() { return trackMap_; }
|
34 |
|
|
const TrackCol *GetTrackCol() { return tracks_; }
|
35 |
|
|
|
36 |
|
|
private:
|
37 |
|
|
std::string edmName_;
|
38 |
|
|
std::string edmDataName_;
|
39 |
|
|
std::string mitName_;
|
40 |
|
|
std::string edmSimAssociationName_;
|
41 |
|
|
const mithep::SimParticleMap *simMap_;
|
42 |
|
|
mithep::TrackArr *tracks_;
|
43 |
|
|
mithep::TrackMap* trackMap_;
|
44 |
|
|
edm::Handle<reco::TrackCollection> trackProduct_;
|
45 |
|
|
};
|
46 |
|
|
}
|
47 |
|
|
#endif
|