CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 
27 
29 public:
30  struct FileHandle{
33  int momentum;
34  };
35  explicit HcalForwardLibWriter(const edm::ParameterSet&);
37 
38 private:
39  virtual void beginJob() ;
40  virtual void analyze(const edm::Event&, const edm::EventSetup&);
41  virtual void endJob() ;
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
virtual void analyze(const edm::Event &, const edm::EventSetup &)
HcalForwardLibWriter(const edm::ParameterSet &)
std::vector< FileHandle > theFileHandle
HFShowerPhotonCollection hadColl
HFShowerPhotonCollection emColl