test
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 
23 public:
24 explicit HcalTBSource(const edm::ParameterSet & pset, edm::InputSourceDescription const& desc);
25 virtual ~HcalTBSource();
26 private:
28  virtual void produce(edm::Event & e);
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 
45 
46 #endif // HcalTBSource_h_included
TFile * m_file
Definition: HcalTBSource.h:32
int m_eventNumberOffset
Definition: HcalTBSource.h:41
virtual bool setRunAndEventInfo(edm::EventID &id, edm::TimeValue_t &time, edm::EventAuxiliary::ExperimentType &)
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
virtual void produce(edm::Event &e)
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
tuple filename
Definition: lut2db_cfg.py:20
CDFEventInfo * m_eventInfo
Definition: HcalTBSource.h:40
static const int CHUNK_COUNT
Definition: HcalTBSource.h:36
std::map< std::string, int > m_sourceIdRemap
Definition: HcalTBSource.h:39
virtual ~HcalTBSource()
Definition: HcalTBSource.cc:46