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 = default;
36  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
37 
38 private:
39  void beginJob() override;
40  void analyze(const edm::Event&, const edm::EventSetup&) override;
41  void endJob() override;
42  int readUserData();
43  int nbins;
44  int nshowers;
45  int bsize;
49 
50  TFile* theFile;
51  TTree* theTree;
52  TFile* LibFile;
53  TTree* LibTree;
54  TBranch* emBranch;
55  TBranch* hadBranch;
56 
58  std::vector<FileHandle> theFileHandle;
59 
63 };
64 #endif
~HcalForwardLibWriter() override=default
HFShowerLibraryEventInfo evtInfo
std::vector< HFShowerPhoton > HFShowerPhotonCollection
HcalForwardLibWriter(const edm::ParameterSet &)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void analyze(const edm::Event &, const edm::EventSetup &) override
std::vector< FileHandle > theFileHandle
HFShowerPhotonCollection hadColl
HFShowerPhotonCollection emColl