CMS 3D CMS Logo

HcalForwardLibWriter.h
Go to the documentation of this file.
1 #ifndef SimG4CMS_ShowerLibraryProducer_HcalForwardLibWriter_h
2 #define SimG4CMS_ShowerLibraryProducer_HcalForwardLibWriter_h
3 
4 #include <memory>
5 #include <string>
6 #include <fstream>
7 #include <utility>
8 #include <vector>
9 
12 
15 
18 
23 
24 #include "TFile.h"
25 #include "TTree.h"
26 
28 public:
29  struct FileHandle {
32  int momentum;
33  };
34  explicit HcalForwardLibWriter(const edm::ParameterSet&);
35  ~HcalForwardLibWriter() override;
36 
37 private:
38  void beginJob() override;
39  void analyze(const edm::Event&, const edm::EventSetup&) override;
40  void endJob() override;
41  int readUserData();
42  int nbins;
43  int nshowers;
44 
45  TFile* theFile;
46  TTree* theTree;
47  TFile* LibFile;
48  TTree* LibTree;
49 
52  std::vector<FileHandle> theFileHandle;
53 
57 };
58 #endif
EDAnalyzer.h
MessageLogger.h
HcalForwardLibWriter::hadColl
HFShowerPhotonCollection hadColl
Definition: HcalForwardLibWriter.h:56
HcalForwardLibWriter::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: HcalForwardLibWriter.cc:27
HcalForwardLibWriter::HcalForwardLibWriter
HcalForwardLibWriter(const edm::ParameterSet &)
Definition: HcalForwardLibWriter.cc:6
HcalForwardLibWriter::evtInfo
HFShowerLibraryEventInfo evtInfo
Definition: HcalForwardLibWriter.h:54
HFShowerLibraryEventInfo.h
HcalForwardLibWriter::endJob
void endJob() override
Definition: HcalForwardLibWriter.cc:119
edm::one::EDAnalyzer
Definition: EDAnalyzer.h:30
HcalForwardLibWriter::theFile
TFile * theFile
Definition: HcalForwardLibWriter.h:45
HcalForwardLibWriter::theTree
TTree * theTree
Definition: HcalForwardLibWriter.h:46
MakerMacros.h
Service.h
HcalForwardLibWriter::theFileHandle
std::vector< FileHandle > theFileHandle
Definition: HcalForwardLibWriter.h:52
HcalForwardLibWriter::LibTree
TTree * LibTree
Definition: HcalForwardLibWriter.h:48
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
HcalForwardLibWriter::LibFile
TFile * LibFile
Definition: HcalForwardLibWriter.h:47
HcalForwardLibWriter
Definition: HcalForwardLibWriter.h:27
TFileService.h
HFShowerPhotonCollection
std::vector< HFShowerPhoton > HFShowerPhotonCollection
Definition: HFShowerPhoton.h:36
edm::ParameterSet
Definition: ParameterSet.h:47
HcalForwardLibWriter::FileHandle::name
std::string name
Definition: HcalForwardLibWriter.h:30
Event.h
HcalForwardLibWriter::FileHandle::momentum
int momentum
Definition: HcalForwardLibWriter.h:32
edm::Service< TFileService >
HFShowerLibraryEventInfo
Definition: HFShowerLibraryEventInfo.h:6
edm::EventSetup
Definition: EventSetup.h:58
HcalForwardLibWriter::nbins
int nbins
Definition: HcalForwardLibWriter.h:42
HcalForwardLibWriter::theDataFile
std::string theDataFile
Definition: HcalForwardLibWriter.h:51
HcalForwardLibWriter::~HcalForwardLibWriter
~HcalForwardLibWriter() override
Definition: HcalForwardLibWriter.cc:25
Frameworkfwd.h
HcalForwardLibWriter::readUserData
int readUserData()
Definition: HcalForwardLibWriter.cc:125
HcalForwardLibWriter::beginJob
void beginJob() override
Definition: HcalForwardLibWriter.cc:117
HcalForwardLibWriter::FileHandle
Definition: HcalForwardLibWriter.h:29
HFShowerPhoton.h
ParameterSet.h
HcalForwardLibWriter::emColl
HFShowerPhotonCollection emColl
Definition: HcalForwardLibWriter.h:55
HcalForwardLibWriter::fs
edm::Service< TFileService > fs
Definition: HcalForwardLibWriter.h:50
edm::Event
Definition: Event.h:73
HcalForwardLibWriter::FileHandle::id
std::string id
Definition: HcalForwardLibWriter.h:31
HcalForwardLibWriter::nshowers
int nshowers
Definition: HcalForwardLibWriter.h:43