ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitProd/TreeFiller/interface/FillerMetaInfos.h
Revision: 1.4
Committed: Wed Jun 25 07:39:57 2008 UTC (16 years, 10 months ago) by loizides
Content type: text/plain
Branch: MAIN
Changes since 1.3: +2 -1 lines
Log Message:
Also have LAHeader configurable.

File Contents

# Content
1 //--------------------------------------------------------------------------------------------------
2 // $Id: FillerMetaInfos.h,v 1.3 2008/06/24 14:24:55 loizides Exp $
3 //
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 #include "MitAna/DataTree/interface/EventHeader.h"
14 #include "MitAna/DataTree/interface/LAHeader.h"
15 #include "MitAna/DataTree/interface/RunInfo.h"
16 #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 void BookDataBlock(TreeWriter &tws);
27 void FillDataBlock(const edm::Event&, const edm::EventSetup&);
28 void FillRunInfo(const edm::Event&, const edm::EventSetup&);
29
30 private:
31 TreeWriter *tws_; //tree writer (not owned)
32 std::string evtName_; //event branch name
33 std::string runName_; //run info branch name
34 std::string lahName_; //look-ahead header branch name
35 EventHeader *eventHeader_; //event header
36 LAHeader *evtLAHeader_; //look-ahead event header
37 RunInfo *runInfo_; //run info block
38 TTree *runTree_; //run info tree
39 TTree *laTree_; //look ahead tree
40 Int_t runEntries_; //number of run info entries
41 UShort_t fileNum_; //file number of current file
42 std::map<UInt_t,Int_t> runmap_; //map between run number and entry number
43 };
44 }
45 #endif