ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitProd/TreeFiller/interface/FillerMetaInfos.h
Revision: 1.9
Committed: Wed Sep 10 03:31:02 2008 UTC (16 years, 7 months ago) by loizides
Content type: text/plain
Branch: MAIN
Changes since 1.8: +4 -3 lines
Log Message:
Cleanup

File Contents

# User Rev Content
1 loizides 1.1 //--------------------------------------------------------------------------------------------------
2 loizides 1.9 // $Id: FillerMetaInfos.h,v 1.8 2008/08/18 11:16:11 sixie Exp $
3 loizides 1.1 //
4     // FillerMetaInfos
5     //
6     // Authors: C.Loizides
7     //--------------------------------------------------------------------------------------------------
8    
9 loizides 1.9 #ifndef MITPROD_TREEFILLER_FILLERMETAINFOS_H
10     #define MITPROD_TREEFILLER_FILLERMETAINFOS_H
11 loizides 1.1
12     #include "FWCore/ParameterSet/interface/ParameterSet.h"
13     #include "MitProd/TreeFiller/interface/BaseFiller.h"
14    
15     namespace mithep
16     {
17 loizides 1.5 class RunInfo;
18     class EventHeader;
19     class LAHeader;
20    
21 loizides 1.1 class FillerMetaInfos : public BaseFiller
22     {
23     public:
24 loizides 1.6 FillerMetaInfos(const edm::ParameterSet &cfg, bool active=1);
25 loizides 1.1 ~FillerMetaInfos();
26    
27 loizides 1.2 void BookDataBlock(TreeWriter &tws);
28 loizides 1.5 void FillDataBlock(const edm::Event &e, const edm::EventSetup &es);
29     void FillRunInfo(const edm::Event &e, const edm::EventSetup &es);
30     void FillHltInfo(const edm::Event &e, const edm::EventSetup &es);
31    
32 loizides 1.1 private:
33 sixie 1.8 Bool_t hltActive_; //=true if HLT info are filled
34 loizides 1.9 Bool_t l1Active_; //=true if L1 info are filled
35 loizides 1.3 std::string evtName_; //event branch name
36     std::string runName_; //run info branch name
37 loizides 1.4 std::string lahName_; //look-ahead header branch name
38 loizides 1.6 std::string hltName_; //todo
39     std::string l1tName_; //todo
40 loizides 1.5 TreeWriter *tws_; //tree writer (not owned)
41 loizides 1.3 EventHeader *eventHeader_; //event header
42     LAHeader *evtLAHeader_; //look-ahead event header
43     RunInfo *runInfo_; //run info block
44 loizides 1.5 TTree *runTree_; //run info tree (not owned)
45     TTree *laTree_; //look ahead tree (not owned)
46 loizides 1.3 Int_t runEntries_; //number of run info entries
47     UShort_t fileNum_; //file number of current file
48     std::map<UInt_t,Int_t> runmap_; //map between run number and entry number
49 loizides 1.7
50     static bool instance_; //=true when one active instance
51 loizides 1.1 };
52     }
53     #endif