test
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 // -*- C++ -*-
5 //
6 // Package: HcalForwardLibWriter
7 // Class: HcalForwardLibWriter
8 //
16 //
17 // Original Author: Taylan Yetkin,510 1-004,+41227672815,
18 // Created: Thu Feb 9 13:02:38 CET 2012
19 //
20 //
21 
22 
23 // system include files
24 #include <memory>
25 #include <string>
26 #include <fstream>
27 #include <utility>
28 #include <vector>
29 
30 
31 // user include files
34 
37 
40 
43 
44 #include "TFile.h"
45 #include "TTree.h"
46 
47 //
48 // class declaration
49 //
50 
52  public:
53 
54  struct FileHandle{
57  int momentum;
58  };
59 
60  explicit HcalForwardLibWriter(const edm::ParameterSet&);
62 
63  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
64 
65  private:
66  virtual void produce(edm::Event&, const edm::EventSetup&) override;
67 
68  void readUserData();
69 
70  // ----------member data ---------------------------
72  std::vector<FileHandle> fFileHandle;
73  TFile* fFile;
74  TTree* fTree;
75 };
76 #endif
std::vector< FileHandle > fFileHandle
virtual void produce(edm::Event &, const edm::EventSetup &) override
HcalForwardLibWriter(const edm::ParameterSet &)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)