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 protected:
32  virtual void setRunAndEventInfo();
33  virtual bool produce(edm::Event & e);
34 private:
35  void unpackSetup(const std::vector<std::string>& params);
36  void openFile(const std::string& filename);
37  TTree* m_tree;
38  TFile* m_file;
41  int n_chunks;
42  static const int CHUNK_COUNT=64; // MAX Chunks
45  std::map<std::string,int> m_sourceIdRemap;
48 };
49 
50 
51 
52 #endif // HcalTBSource_h_included
virtual bool produce(edm::Event &e)
TFile * m_file
Definition: HcalTBSource.h:38
int m_eventNumberOffset
Definition: HcalTBSource.h:47
virtual void setRunAndEventInfo()
TTree * m_tree
Definition: HcalTBSource.h:37
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
bool m_onlyRemapped
Definition: HcalTBSource.h:40
CDFChunk * m_chunks[CHUNK_COUNT]
Definition: HcalTBSource.h:43
int m_chunkIds[CHUNK_COUNT]
Definition: HcalTBSource.h:44
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
CDFEventInfo * m_eventInfo
Definition: HcalTBSource.h:46
static const int CHUNK_COUNT
Definition: HcalTBSource.h:42
std::map< std::string, int > m_sourceIdRemap
Definition: HcalTBSource.h:45
virtual ~HcalTBSource()
Definition: HcalTBSource.cc:47