1 |
loizides |
1.1 |
//--------------------------------------------------------------------------------------------------
|
2 |
bendavid |
1.12 |
// $Id: FillerTracks.h,v 1.11 2008/08/29 02:50:02 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 |
bendavid |
1.8 |
//
|
9 |
loizides |
1.1 |
// Authors: J.Bendavid, C.Loizides
|
10 |
|
|
//--------------------------------------------------------------------------------------------------
|
11 |
|
|
|
12 |
|
|
#ifndef TREEFILLER_FILLERTRACKS_H
|
13 |
|
|
#define TREEFILLER_FILLERTRACKS_H
|
14 |
|
|
|
15 |
|
|
#include "FWCore/ParameterSet/interface/ParameterSet.h"
|
16 |
|
|
#include "DataFormats/TrackReco/interface/TrackFwd.h"
|
17 |
|
|
#include "MitAna/DataUtil/interface/TreeWriter.h"
|
18 |
|
|
#include "MitAna/DataTree/interface/Collections.h"
|
19 |
bendavid |
1.8 |
#include "MitAna/DataTree/interface/Track.h"
|
20 |
loizides |
1.1 |
#include "MitProd/TreeFiller/interface/BaseFiller.h"
|
21 |
|
|
#include "MitProd/TreeFiller/interface/AssociationMaps.h"
|
22 |
loizides |
1.11 |
#include "MitAna/DataTree/interface/Names.h"
|
23 |
loizides |
1.1 |
|
24 |
|
|
namespace mithep
|
25 |
|
|
{
|
26 |
|
|
class FillerTracks : public BaseFiller
|
27 |
|
|
{
|
28 |
|
|
public:
|
29 |
loizides |
1.11 |
FillerTracks(const edm::ParameterSet &cfg, const char *name, bool active=1,
|
30 |
|
|
const char *edmName="generalTracks", const char *mitName=Names::gkTrackBrn);
|
31 |
|
|
virtual ~FillerTracks();
|
32 |
loizides |
1.1 |
|
33 |
loizides |
1.10 |
void BookDataBlock(TreeWriter &tws);
|
34 |
|
|
void FillDataBlock(const edm::Event &e, const edm::EventSetup &es);
|
35 |
|
|
void InitLayerMap();
|
36 |
bendavid |
1.8 |
|
37 |
loizides |
1.11 |
protected:
|
38 |
loizides |
1.10 |
std::string edmName_; //edm name of tracks collection
|
39 |
|
|
std::string mitName_; //name of Tracks in OAK
|
40 |
|
|
std::string edmSimAssociationName_; //edm name of sim association map
|
41 |
bendavid |
1.12 |
std::string trackingMapName_; //name of inported map wrt simparts
|
42 |
loizides |
1.10 |
std::string trackMapName_; //name of export map
|
43 |
bendavid |
1.12 |
const mithep::TrackingParticleMap *trackingMap_; //map wrt simulated particles
|
44 |
loizides |
1.10 |
mithep::TrackArr *tracks_; //array of Tracks
|
45 |
loizides |
1.11 |
std::map<uint32_t,mithep::Track::HitLayer> layerMap_; //hitlayer bitmap conversion map
|
46 |
|
|
|
47 |
|
|
private:
|
48 |
loizides |
1.10 |
mithep::TrackMap *trackMap_; //map wrt tracks
|
49 |
loizides |
1.1 |
};
|
50 |
|
|
}
|
51 |
|
|
#endif
|