CMS 3D CMS Logo

HcalTBSource.h
Go to the documentation of this file.
1 /* -*- C++ -*- */
2 #ifndef HcalTBSource_h_included
3 #define HcalTBSource_h_included 1
4 
5 #include <map>
6 #include <string>
7 #include <vector>
8 
12 
13 class TFile;
14 class TTree;
15 class CDFChunk;
16 class CDFEventInfo;
17 
22 public:
24  ~HcalTBSource() override;
25 
26 private:
28  void produce(edm::Event& e) override;
29  void unpackSetup(const std::vector<std::string>& params);
30  void openFile(const std::string& filename);
31  TTree* m_tree;
32  TFile* m_file;
35  int n_chunks;
36  static const int CHUNK_COUNT = 64; // MAX Chunks
39  std::map<std::string, int> m_sourceIdRemap;
42 };
43 
44 #endif // HcalTBSource_h_included
TFile * m_file
Definition: HcalTBSource.h:32
int m_eventNumberOffset
Definition: HcalTBSource.h:41
TTree * m_tree
Definition: HcalTBSource.h:31
void openFile(const std::string &filename)
Definition: HcalTBSource.cc:54
Global information about an event such as event number and run number.
Definition: CDFEventInfo.h:8
unsigned long long TimeValue_t
Definition: Timestamp.h:28
bool m_onlyRemapped
Definition: HcalTBSource.h:34
CDFChunk * m_chunks[CHUNK_COUNT]
Definition: HcalTBSource.h:37
int m_chunkIds[CHUNK_COUNT]
Definition: HcalTBSource.h:38
HcalTBSource(const edm::ParameterSet &pset, edm::InputSourceDescription const &desc)
Definition: HcalTBSource.cc:16
void unpackSetup(const std::vector< std::string > &params)
Definition: HcalTBSource.cc:30
std::map< std::string, int > m_sourceIdRemap
Definition: HcalTBSource.h:39
CDFEventInfo * m_eventInfo
Definition: HcalTBSource.h:40
bool setRunAndEventInfo(edm::EventID &id, edm::TimeValue_t &time, edm::EventAuxiliary::ExperimentType &) override
~HcalTBSource() override
Definition: HcalTBSource.cc:46
static const int CHUNK_COUNT
Definition: HcalTBSource.h:36
void produce(edm::Event &e) override