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>
13 
14 class TFile;
15 class TTree;
16 class CDFChunk;
17 class CDFEventInfo;
18 
25 class HcalTBWriter : public edm::EDAnalyzer {
26 public:
28  void analyze(const edm::Event& e, const edm::EventSetup& es) override;
29  void endJob() override;
30 
31 private:
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_;
45 };
46 #endif
HcalTBWriter::tree_
TTree * tree_
Definition: HcalTBWriter.h:38
Handle.h
HcalTBWriter::blockToName_
std::map< int, std::string > blockToName_
Definition: HcalTBWriter.h:34
HcalTBWriter::ri_
CDFRunInfo ri_
Definition: HcalTBWriter.h:40
HcalTBWriter::namePattern_
std::string namePattern_
Definition: HcalTBWriter.h:32
edm::EDGetTokenT< FEDRawDataCollection >
FEDRawDataCollection
Definition: FEDRawDataCollection.h:18
HcalTBWriter::chunkList_
CDFChunk * chunkList_[1024]
Definition: HcalTBWriter.h:42
HcalTBWriter::extractEventInfo
void extractEventInfo(const FEDRawDataCollection &raw, const edm::EventID &id)
Definition: HcalTBWriter.cc:135
HcalTBWriter::tok_raw_
edm::EDGetTokenT< FEDRawDataCollection > tok_raw_
Definition: HcalTBWriter.h:44
EDAnalyzer.h
edm::EDAnalyzer
Definition: EDAnalyzer.h:28
HcalTBWriter::trigChunk_
int trigChunk_
Definition: HcalTBWriter.h:43
HcalTBWriter::file_
TFile * file_
Definition: HcalTBWriter.h:37
CDFChunk
Definition: CDFChunk.h:7
HcalTBWriter::endJob
void endJob() override
Definition: HcalTBWriter.cc:28
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ParameterSet
Definition: ParameterSet.h:47
Event.h
FEDRawDataCollection.h
CDFRunInfo
Per-run or per-file information.
Definition: CDFRunInfo.h:15
edm::EventSetup
Definition: EventSetup.h:57
InputTag.h
CDFEventInfo
Global information about an event such as event number and run number.
Definition: CDFEventInfo.h:8
HcalTBWriter::eventInfo_
CDFEventInfo * eventInfo_
Definition: HcalTBWriter.h:39
HcalTBWriter::buildTree
void buildTree(const FEDRawDataCollection &raw)
Definition: HcalTBWriter.cc:78
CDFRunInfo.h
EventSetup.h
ParameterSet.h
HcalTBWriter
Definition: HcalTBWriter.h:25
edm::EventID
Definition: EventID.h:31
edm::Event
Definition: Event.h:73
HcalTBWriter::chunkMap_
std::map< int, int > chunkMap_
Definition: HcalTBWriter.h:41
HcalTBWriter::analyze
void analyze(const edm::Event &e, const edm::EventSetup &es) override
Definition: HcalTBWriter.cc:46
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
HcalTBWriter::HcalTBWriter
HcalTBWriter(const edm::ParameterSet &pset)
Definition: HcalTBWriter.cc:11