ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitProd/TreeFiller/interface/FillerMetaInfos.h
Revision: 1.3
Committed: Tue Jun 24 14:24:55 2008 UTC (16 years, 10 months ago) by loizides
Content type: text/plain
Branch: MAIN
Changes since 1.2: +13 -8 lines
Log Message:
Have RunInfo stored.

File Contents

# User Rev Content
1 loizides 1.1 //--------------------------------------------------------------------------------------------------
2 loizides 1.3 // $Id: FillerMetaInfos.h,v 1.2 2008/06/20 17:52:57 loizides Exp $
3 loizides 1.1 //
4     // FillerMetaInfos
5     //
6     // Authors: C.Loizides
7     //--------------------------------------------------------------------------------------------------
8    
9     #ifndef TREEFILLER_FILLERMETAINFOS_H
10     #define TREEFILLER_FILLERMETAINFOS_H
11    
12     #include "FWCore/ParameterSet/interface/ParameterSet.h"
13 loizides 1.2 #include "MitAna/DataTree/interface/EventHeader.h"
14 loizides 1.3 #include "MitAna/DataTree/interface/LAHeader.h"
15 loizides 1.2 #include "MitAna/DataTree/interface/RunInfo.h"
16 loizides 1.1 #include "MitProd/TreeFiller/interface/BaseFiller.h"
17    
18     namespace mithep
19     {
20     class FillerMetaInfos : public BaseFiller
21     {
22     public:
23     FillerMetaInfos(const edm::ParameterSet&);
24     ~FillerMetaInfos();
25    
26 loizides 1.2 void BookDataBlock(TreeWriter &tws);
27 loizides 1.1 void FillDataBlock(const edm::Event&, const edm::EventSetup&);
28 loizides 1.2 void FillRunInfo(const edm::Event&, const edm::EventSetup&);
29 loizides 1.1
30     private:
31 loizides 1.3 TreeWriter *tws_; //tree writer (not owned)
32     std::string evtName_; //event branch name
33     std::string runName_; //run info branch name
34     EventHeader *eventHeader_; //event header
35     LAHeader *evtLAHeader_; //look-ahead event header
36     RunInfo *runInfo_; //run info block
37     TTree *runTree_; //run info tree
38     TTree *laTree_; //look ahead tree
39     Int_t runEntries_; //number of run info entries
40     UShort_t fileNum_; //file number of current file
41     std::map<UInt_t,Int_t> runmap_; //map between run number and entry number
42 loizides 1.1 };
43     }
44     #endif