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:
23  explicit HcalTBSource(const edm::ParameterSet& pset, edm::InputSourceDescription const& desc);
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
HcalTBSource::m_quiet
bool m_quiet
Definition: HcalTBSource.h:34
HcalTBSource::CHUNK_COUNT
static const int CHUNK_COUNT
Definition: HcalTBSource.h:36
HcalTBSource::setRunAndEventInfo
bool setRunAndEventInfo(edm::EventID &id, edm::TimeValue_t &time, edm::EventAuxiliary::ExperimentType &) override
Definition: HcalTBSource.cc:110
CalibrationSummaryClient_cfi.params
params
Definition: CalibrationSummaryClient_cfi.py:14
HcalTBSource::m_onlyRemapped
bool m_onlyRemapped
Definition: HcalTBSource.h:34
edm::InputSourceDescription
Definition: InputSourceDescription.h:20
HcalTBSource::openFile
void openFile(const std::string &filename)
Definition: HcalTBSource.cc:53
HcalTBSource::m_eventInfo
CDFEventInfo * m_eventInfo
Definition: HcalTBSource.h:40
HcalTBSource::m_fileCounter
int m_fileCounter
Definition: HcalTBSource.h:33
CDFChunk
Definition: CDFChunk.h:7
HcalTBSource::produce
void produce(edm::Event &e) override
Definition: HcalTBSource.cc:154
corrVsCorr.filename
filename
Definition: corrVsCorr.py:123
HcalTBSource::m_chunks
CDFChunk * m_chunks[CHUNK_COUNT]
Definition: HcalTBSource.h:37
HcalTBSource::unpackSetup
void unpackSetup(const std::vector< std::string > &params)
Definition: HcalTBSource.cc:29
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
HcalTBSource::m_file
TFile * m_file
Definition: HcalTBSource.h:32
HcalTBSource::m_chunkIds
int m_chunkIds[CHUNK_COUNT]
Definition: HcalTBSource.h:38
edm::ParameterSet
Definition: ParameterSet.h:36
HcalTBSource
Definition: HcalTBSource.h:21
Event.h
HcalTBSource::m_sourceIdRemap
std::map< std::string, int > m_sourceIdRemap
Definition: HcalTBSource.h:39
HcalTBSource::m_i
int m_i
Definition: HcalTBSource.h:33
CDFEventInfo
Global information about an event such as event number and run number.
Definition: CDFEventInfo.h:8
HcalTBSource::m_eventNumberOffset
int m_eventNumberOffset
Definition: HcalTBSource.h:41
HcalTBSource::~HcalTBSource
~HcalTBSource() override
Definition: HcalTBSource.cc:45
edm::ProducerSourceFromFiles
Definition: ProducerSourceFromFiles.h:17
edm::EventAuxiliary::ExperimentType
ExperimentType
Definition: EventAuxiliary.h:18
HcalTBSource::HcalTBSource
HcalTBSource(const edm::ParameterSet &pset, edm::InputSourceDescription const &desc)
Definition: HcalTBSource.cc:16
HcalTBSource::m_tree
TTree * m_tree
Definition: HcalTBSource.h:31
ParameterSet.h
ntuplemaker.time
time
Definition: ntuplemaker.py:310
edm::EventID
Definition: EventID.h:31
edm::Event
Definition: Event.h:73
HcalTBSource::n_chunks
int n_chunks
Definition: HcalTBSource.h:35
ProducerSourceFromFiles.h
edm::TimeValue_t
unsigned long long TimeValue_t
Definition: Timestamp.h:28
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37