ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitProd/TreeFiller/interface/FillerTracks.h
Revision: 1.8
Committed: Thu Jul 31 13:39:57 2008 UTC (16 years, 9 months ago) by bendavid
Content type: text/plain
Branch: MAIN
Changes since 1.7: +7 -2 lines
Log Message:
Updated fillers for new Track Class changes and added tracker hit info

File Contents

# User Rev Content
1 loizides 1.1 //--------------------------------------------------------------------------------------------------
2 bendavid 1.8 // $Id: FillerTracks.h,v 1.7 2008/07/31 12:34:04 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 // TRACK PARAMETERS ARE CURRENTLY FILLED INCORRECTLY!
9     //
10 loizides 1.1 // Authors: J.Bendavid, C.Loizides
11     //--------------------------------------------------------------------------------------------------
12    
13     #ifndef TREEFILLER_FILLERTRACKS_H
14     #define TREEFILLER_FILLERTRACKS_H
15    
16     #include "FWCore/ParameterSet/interface/ParameterSet.h"
17     #include "DataFormats/TrackReco/interface/TrackFwd.h"
18     #include "MitAna/DataUtil/interface/TreeWriter.h"
19     #include "MitAna/DataTree/interface/Collections.h"
20 bendavid 1.8 #include "MitAna/DataTree/interface/Track.h"
21 loizides 1.1 #include "MitProd/TreeFiller/interface/BaseFiller.h"
22     #include "MitProd/TreeFiller/interface/AssociationMaps.h"
23    
24     namespace mithep
25     {
26     class FillerTracks : public BaseFiller
27     {
28     public:
29 loizides 1.7 FillerTracks(const edm::ParameterSet &cfg, const char *name, bool active=1);
30 loizides 1.1 ~FillerTracks();
31    
32 loizides 1.4 void BookDataBlock(TreeWriter &tws);
33     void FillDataBlock(const edm::Event &e, const edm::EventSetup &es);
34 bendavid 1.8 void InitLayerMap();
35    
36 loizides 1.1 private:
37 loizides 1.7 std::string edmName_; //edm name of tracks collection
38     std::string mitName_; //name of Tracks in OAK
39     std::string edmSimAssociationName_; //edm name of sim association map
40     std::string simMapName_; //name of inported map wrt simparts
41     std::string trackMapName_; //name of export map
42     const mithep::SimParticleMap *simMap_; //map wrt simulated particles
43     mithep::TrackArr *tracks_; //array of Tracks
44     mithep::TrackMap *trackMap_; //map wrt tracks
45 bendavid 1.8 std::map<uint32_t,mithep::Track::HitLayer> layerMap_;
46 loizides 1.1 };
47     }
48     #endif