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>
12 
13 class TFile;
14 class TTree;
15 class CDFChunk;
16 class CDFEventInfo;
17 
26 class HcalTBWriter : public edm::EDAnalyzer {
27 public:
28  HcalTBWriter(const edm::ParameterSet & pset);
29  virtual void analyze(const edm::Event& e, const edm::EventSetup& es);
30  virtual void endJob();
31 private:
32  std::string namePattern_;
33  // chunk naming...
34  std::map<int, std::string> blockToName_;
35  void extractEventInfo(const FEDRawDataCollection& raw, const edm::EventID& id);
36  void buildTree(const FEDRawDataCollection& raw);
37  TFile* file_;
38  TTree* tree_;
41  std::map<int,int> chunkMap_;
44 };
45 #endif
Per-run or per-file information.
Definition: CDFRunInfo.h:15
CDFEventInfo * eventInfo_
Definition: HcalTBWriter.h:39
TTree * tree_
Definition: HcalTBWriter.h:38
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:40
std::string namePattern_
Definition: HcalTBWriter.h:32
std::map< int, int > chunkMap_
Definition: HcalTBWriter.h:41
CDFChunk * chunkList_[1024]
Definition: HcalTBWriter.h:42
void buildTree(const FEDRawDataCollection &raw)
Definition: HcalTBWriter.cc:81
void extractEventInfo(const FEDRawDataCollection &raw, const edm::EventID &id)
TFile * file_
Definition: HcalTBWriter.h:37
std::map< int, std::string > blockToName_
Definition: HcalTBWriter.h:34
virtual void analyze(const edm::Event &e, const edm::EventSetup &es)
Definition: HcalTBWriter.cc:48
virtual void endJob()
Definition: HcalTBWriter.cc:30