ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitProd/TreeFiller/interface/FillerGenJets.h
Revision: 1.1
Committed: Tue Sep 16 18:17:36 2008 UTC (16 years, 7 months ago) by sixie
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_008pre1, Mit_006b, Mit_006a, Mit_006, Mit_005, Mit_004
Log Message:
Add Gen Jets Filler

File Contents

# User Rev Content
1 sixie 1.1 //--------------------------------------------------------------------------------------------------
2     // $Id: $
3     //
4     // FillerGenJets
5     //
6     // Imlementation of a filler to fill EDM genjets into our mithep::GenJet data structure.
7     //
8     // Authors: S.Xie
9     //--------------------------------------------------------------------------------------------------
10    
11     #ifndef MITPROD_TREEFILLER_FILLERGENJETS_H
12     #define MITPROD_TREEFILLER_FILLERGENJETS_H
13    
14     #include "FWCore/ParameterSet/interface/ParameterSet.h"
15     #include "DataFormats/JetReco/interface/GenJetCollection.h"
16     #include "MitAna/DataUtil/interface/TreeWriter.h"
17     #include "MitAna/DataTree/interface/Collections.h"
18     #include "MitProd/TreeFiller/interface/BaseFiller.h"
19    
20     namespace mithep
21     {
22     class FillerGenJets : public BaseFiller
23     {
24     public:
25     FillerGenJets(const edm::ParameterSet &cfg, const char *name, bool active=1);
26     ~FillerGenJets();
27    
28     void BookDataBlock(TreeWriter &tws);
29     void FillDataBlock(const edm::Event &e, const edm::EventSetup &es);
30    
31     private:
32     Bool_t flavorMatchingActive_; //=true if flavor matching is done
33     std::string edmName_; //edm name of genjets collection
34     std::string mitName_; //name of GenJets in OAK
35     std::string flavorMatchingByReferenceName_; //name of flavor matching collection
36     std::string flavorMatchingDefinition_; //name of flavor matching algorithm
37     mithep::GenJetArr *genjets_; //array of GenJets
38     };
39     }
40     #endif