CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
18 
28 public:
29 explicit HcalTBSource(const edm::ParameterSet & pset, edm::InputSourceDescription const& desc);
30 virtual ~HcalTBSource();
31 private:
33  virtual void produce(edm::Event & e);
34  void unpackSetup(const std::vector<std::string>& params);
35  void openFile(const std::string& filename);
36  TTree* m_tree;
37  TFile* m_file;
40  int n_chunks;
41  static const int CHUNK_COUNT=64; // MAX Chunks
44  std::map<std::string,int> m_sourceIdRemap;
47 };
48 
49 
50 
51 #endif // HcalTBSource_h_included
TFile * m_file
Definition: HcalTBSource.h:37
int m_eventNumberOffset
Definition: HcalTBSource.h:46
TTree * m_tree
Definition: HcalTBSource.h:36
void openFile(const std::string &filename)
Definition: HcalTBSource.cc:55
Global information about an event such as event number and run number.
Definition: CDFEventInfo.h:8
virtual void produce(edm::Event &e)
unsigned long long TimeValue_t
Definition: Timestamp.h:28
bool m_onlyRemapped
Definition: HcalTBSource.h:39
CDFChunk * m_chunks[CHUNK_COUNT]
Definition: HcalTBSource.h:42
int m_chunkIds[CHUNK_COUNT]
Definition: HcalTBSource.h:43
HcalTBSource(const edm::ParameterSet &pset, edm::InputSourceDescription const &desc)
Definition: HcalTBSource.cc:17
void unpackSetup(const std::vector< std::string > &params)
Definition: HcalTBSource.cc:31
tuple filename
Definition: lut2db_cfg.py:20
virtual bool setRunAndEventInfo(edm::EventID &id, edm::TimeValue_t &time)
CDFEventInfo * m_eventInfo
Definition: HcalTBSource.h:45
static const int CHUNK_COUNT
Definition: HcalTBSource.h:41
std::map< std::string, int > m_sourceIdRemap
Definition: HcalTBSource.h:44
virtual ~HcalTBSource()
Definition: HcalTBSource.cc:47