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 
27 
29 public:
30  struct FileHandle{
33  int momentum;
34  };
35  explicit HcalForwardLibWriter(const edm::ParameterSet&);
36  ~HcalForwardLibWriter() override;
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 
46  TFile* theFile;
47  TTree* theTree;
48  TFile* LibFile;
49  TTree* LibTree;
50 
53  std::vector<FileHandle> theFileHandle;
54 
58 
59 };
60 #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