ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitProd/TreeFiller/interface/FillTracks.h
Revision: 1.1
Committed: Thu Jun 5 16:07:11 2008 UTC (16 years, 11 months ago) by bendavid
Content type: text/plain
Branch: MAIN
Log Message:
added basic tree fillers for tracks, muons, electrons, updated example

File Contents

# User Rev Content
1 bendavid 1.1 // $Id$
2    
3     #ifndef TREEFILLER_FILLTRACKS_H
4     #define TREEFILLER_FILLTRACKS_H
5    
6     #include "FWCore/Framework/interface/EDAnalyzer.h"
7     #include "FWCore/Framework/interface/Event.h"
8     #include "FWCore/ParameterSet/interface/ParameterSet.h"
9     #include "FWCore/Framework/interface/Frameworkfwd.h"
10    
11     #include "MitProd/TreeService/interface/TreeService.h"
12     #include "MitAna/DataUtil/interface/TreeWriter.h"
13    
14     #include "MitAna/DataTree/interface/Track.h"
15     #include "MitAna/DataTree/interface/Vector.h"
16     #include <TClonesArray.h>
17    
18     //--------------------------------------------------------------------------------------------------
19     //
20     // FillTracks
21     //
22     // Module copying general EDM tracks into mithep::Tracks
23     //
24     // Authors: C.Loizides, J.Bendavid
25     //
26     //--------------------------------------------------------------------------------------------------
27    
28     namespace mithep
29     {
30     class FillTracks : public edm::EDAnalyzer
31     {
32     public:
33     FillTracks(const edm::ParameterSet&);
34     ~FillTracks();
35    
36     void analyze(const edm::Event&, const edm::EventSetup&);
37     void beginJob(edm::EventSetup const&);
38     void endJob ();
39    
40     private:
41     mithep::Vector<mithep::Track> *tracks_;
42     std::string trackSource_;
43     std::string trackBranch_;
44     };
45    
46     } /*namespace mithep*/
47    
48     #endif