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