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 using namespace edm;
28 
30 public:
31  struct FileHandle{
34  int momentum;
35  };
36  explicit HcalForwardLibWriter(const edm::ParameterSet&);
38 
39 private:
40  virtual void beginJob() ;
41  virtual void analyze(const edm::Event&, const edm::EventSetup&);
42  virtual void endJob() ;
43  int readUserData();
44  int nbins;
45  int nshowers;
46 
47  TFile* theFile;
48  TTree* theTree;
49  TFile* LibFile;
50  TTree* LibTree;
51 
54  std::vector<FileHandle> theFileHandle;
55 
59 
60 };
61 #endif
HFShowerLibraryEventInfo evtInfo
edm::Service< TFileService > fs
void beginJob()
Definition: Breakpoints.cc:15
std::vector< HFShowerPhoton > HFShowerPhotonCollection
std::vector< FileHandle > theFileHandle
HFShowerPhotonCollection hadColl
HFShowerPhotonCollection emColl