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 // $Id: HcalForwardLibWriter.h,v 1.5 2013/05/25 17:03:41 chrjones Exp $
20 //
21 //
22 
23 
24 // system include files
25 #include <memory>
26 #include <string>
27 #include <fstream>
28 #include <utility>
29 #include <vector>
30 
31 
32 // user include files
35 
38 
41 
44 
45 #include "TFile.h"
46 #include "TTree.h"
47 
48 //
49 // class declaration
50 //
51 
53  public:
54 
55  struct FileHandle{
58  int momentum;
59  };
60 
61  explicit HcalForwardLibWriter(const edm::ParameterSet&);
63 
64  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
65 
66  private:
67  virtual void produce(edm::Event&, const edm::EventSetup&) override;
68 
69  void readUserData();
70 
71  // ----------member data ---------------------------
73  std::vector<FileHandle> fFileHandle;
74  TFile* fFile;
75  TTree* fTree;
76 };
77 #endif
std::vector< FileHandle > fFileHandle
virtual void produce(edm::Event &, const edm::EventSetup &) override
HcalForwardLibWriter(const edm::ParameterSet &)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)