CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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  int bsize;
48 
49  TFile* theFile;
50  TTree* theTree;
51  TFile* LibFile;
52  TTree* LibTree;
53  TBranch* emBranch;
54  TBranch* hadBranch;
55 
58  std::vector<FileHandle> theFileHandle;
59 
63 };
64 #endif
HFShowerLibraryEventInfo evtInfo
edm::Service< TFileService > fs
std::vector< HFShowerPhoton > HFShowerPhotonCollection
HcalForwardLibWriter(const edm::ParameterSet &)
void analyze(const edm::Event &, const edm::EventSetup &) override
std::vector< FileHandle > theFileHandle
HFShowerPhotonCollection hadColl
HFShowerPhotonCollection emColl