CMS 3D CMS Logo

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>
14 
15 class TFile;
16 class TTree;
17 class CDFChunk;
18 class CDFEventInfo;
19 
27 public:
28  explicit HcalTBWriter(const edm::ParameterSet& pset);
29  ~HcalTBWriter() override = default;
30  void analyze(const edm::Event& e, const edm::EventSetup& es) override;
31  void endJob() override;
32 
33 private:
35  // chunk naming...
36  std::map<int, std::string> blockToName_;
37  void extractEventInfo(const FEDRawDataCollection& raw, const edm::EventID& id);
38  void buildTree(const FEDRawDataCollection& raw);
39  TFile* file_;
40  TTree* tree_;
43  std::map<int, int> chunkMap_;
47 };
48 #endif
Per-run or per-file information.
Definition: CDFRunInfo.h:15
CDFEventInfo * eventInfo_
Definition: HcalTBWriter.h:41
edm::EDGetTokenT< FEDRawDataCollection > tok_raw_
Definition: HcalTBWriter.h:46
TTree * tree_
Definition: HcalTBWriter.h:40
std::map< int, int > chunkMap_
Definition: HcalTBWriter.h:43
HcalTBWriter(const edm::ParameterSet &pset)
Definition: HcalTBWriter.cc:11
void endJob() override
Definition: HcalTBWriter.cc:28
~HcalTBWriter() override=default
Global information about an event such as event number and run number.
Definition: CDFEventInfo.h:8
CDFRunInfo ri_
Definition: HcalTBWriter.h:42
std::string namePattern_
Definition: HcalTBWriter.h:34
CDFChunk * chunkList_[1024]
Definition: HcalTBWriter.h:44
void buildTree(const FEDRawDataCollection &raw)
Definition: HcalTBWriter.cc:78
void extractEventInfo(const FEDRawDataCollection &raw, const edm::EventID &id)
void analyze(const edm::Event &e, const edm::EventSetup &es) override
Definition: HcalTBWriter.cc:46
TFile * file_
Definition: HcalTBWriter.h:39
std::map< int, std::string > blockToName_
Definition: HcalTBWriter.h:36