Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
SimG4CMS
ShowerLibraryProducer
interface
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
32
#include "
FWCore/Framework/interface/Frameworkfwd.h
"
33
#include "
FWCore/Framework/interface/EDProducer.h
"
34
35
#include "
FWCore/Framework/interface/Event.h
"
36
#include "
FWCore/Framework/interface/MakerMacros.h
"
37
38
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
39
#include "
FWCore/Utilities/interface/Exception.h
"
40
41
#include "
SimDataFormats/CaloHit/interface/HFShowerPhoton.h
"
42
#include "
SimDataFormats/CaloHit/interface/HFShowerLibraryEventInfo.h
"
43
44
#include "TFile.h"
45
#include "TTree.h"
46
47
//
48
// class declaration
49
//
50
51
class
HcalForwardLibWriter
:
public
edm::EDProducer
{
52
public
:
53
54
struct
FileHandle
{
55
std::string
name
;
56
std::string
id
;
57
int
momentum
;
58
};
59
60
explicit
HcalForwardLibWriter
(
const
edm::ParameterSet
&);
61
~HcalForwardLibWriter
();
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 ---------------------------
71
std::string
fDataFile
;
72
std::vector<FileHandle>
fFileHandle
;
73
TFile*
fFile
;
74
TTree*
fTree
;
75
};
76
#endif
HcalForwardLibWriter::FileHandle::momentum
int momentum
Definition:
HcalForwardLibWriter.h:57
HcalForwardLibWriter::fDataFile
std::string fDataFile
Definition:
HcalForwardLibWriter.h:71
HcalForwardLibWriter::fFileHandle
std::vector< FileHandle > fFileHandle
Definition:
HcalForwardLibWriter.h:72
HcalForwardLibWriter::fFile
TFile * fFile
Definition:
HcalForwardLibWriter.h:73
Event.h
MakerMacros.h
HcalForwardLibWriter::produce
virtual void produce(edm::Event &, const edm::EventSetup &) override
Definition:
HcalForwardLibWriter.cc:41
HcalForwardLibWriter::fTree
TTree * fTree
Definition:
HcalForwardLibWriter.h:74
Frameworkfwd.h
HcalForwardLibWriter::FileHandle
Definition:
HcalForwardLibWriter.h:54
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
edm::EDProducer
Definition:
EDProducer.h:30
HcalForwardLibWriter::FileHandle::name
std::string name
Definition:
HcalForwardLibWriter.h:55
ParameterSet.h
HFShowerLibraryEventInfo.h
HcalForwardLibWriter::~HcalForwardLibWriter
~HcalForwardLibWriter()
Definition:
HcalForwardLibWriter.cc:39
edm::EventSetup
Definition:
EventSetup.h:44
EDProducer.h
Exception.h
HcalForwardLibWriter::HcalForwardLibWriter
HcalForwardLibWriter(const edm::ParameterSet &)
Definition:
HcalForwardLibWriter.cc:21
HcalForwardLibWriter::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition:
HcalForwardLibWriter.cc:171
HFShowerPhoton.h
edm::ParameterSet
Definition:
ParameterSet.h:35
edm::Event
Definition:
Event.h:62
HcalForwardLibWriter::readUserData
void readUserData()
Definition:
HcalForwardLibWriter.cc:145
HcalForwardLibWriter::FileHandle::id
std::string id
Definition:
HcalForwardLibWriter.h:56
HcalForwardLibWriter
Definition:
HcalForwardLibWriter.h:51
edm::ConfigurationDescriptions
Definition:
ConfigurationDescriptions.h:27
Generated for CMSSW Reference Manual by
1.8.5