CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HcalTBWriter.h
Go to the documentation of this file.
1 #ifndef IORAWDATA_HCALTBINPUTSERVICE_HCALTBWRITER_H
2 #define IORAWDATA_HCALTBINPUTSERVICE_HCALTBWRITER_H 1
3 
4 #include <map>
13 
14 class TFile;
15 class TTree;
16 class CDFChunk;
17 class CDFEventInfo;
18 
27 class HcalTBWriter : public edm::EDAnalyzer {
28 public:
29  HcalTBWriter(const edm::ParameterSet & pset);
30  virtual void analyze(const edm::Event& e, const edm::EventSetup& es);
31  virtual void endJob();
32 private:
34  // chunk naming...
35  std::map<int, std::string> blockToName_;
36  void extractEventInfo(const FEDRawDataCollection& raw, const edm::EventID& id);
37  void buildTree(const FEDRawDataCollection& raw);
38  TFile* file_;
39  TTree* tree_;
42  std::map<int,int> chunkMap_;
46 };
47 #endif
edm::InputTag fedRawDataCollectionTag_
Definition: HcalTBWriter.h:45
Per-run or per-file information.
Definition: CDFRunInfo.h:15
CDFEventInfo * eventInfo_
Definition: HcalTBWriter.h:40
TTree * tree_
Definition: HcalTBWriter.h:39
HcalTBWriter(const edm::ParameterSet &pset)
Definition: HcalTBWriter.cc:13
Global information about an event such as event number and run number.
Definition: CDFEventInfo.h:8
CDFRunInfo ri_
Definition: HcalTBWriter.h:41
std::string namePattern_
Definition: HcalTBWriter.h:33
std::map< int, int > chunkMap_
Definition: HcalTBWriter.h:42
CDFChunk * chunkList_[1024]
Definition: HcalTBWriter.h:43
void buildTree(const FEDRawDataCollection &raw)
Definition: HcalTBWriter.cc:82
void extractEventInfo(const FEDRawDataCollection &raw, const edm::EventID &id)
TFile * file_
Definition: HcalTBWriter.h:38
std::map< int, std::string > blockToName_
Definition: HcalTBWriter.h:35
virtual void analyze(const edm::Event &e, const edm::EventSetup &es)
Definition: HcalTBWriter.cc:49
virtual void endJob()
Definition: HcalTBWriter.cc:31