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
// $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
33
#include "
FWCore/Framework/interface/Frameworkfwd.h
"
34
#include "
FWCore/Framework/interface/EDProducer.h
"
35
36
#include "
FWCore/Framework/interface/Event.h
"
37
#include "
FWCore/Framework/interface/MakerMacros.h
"
38
39
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
40
#include "
FWCore/Utilities/interface/Exception.h
"
41
42
#include "
SimDataFormats/CaloHit/interface/HFShowerPhoton.h
"
43
#include "
SimDataFormats/CaloHit/interface/HFShowerLibraryEventInfo.h
"
44
45
#include "TFile.h"
46
#include "TTree.h"
47
48
//
49
// class declaration
50
//
51
52
class
HcalForwardLibWriter
:
public
edm::EDProducer
{
53
public
:
54
55
struct
FileHandle
{
56
std::string
name
;
57
std::string
id
;
58
int
momentum
;
59
};
60
61
explicit
HcalForwardLibWriter
(
const
edm::ParameterSet
&);
62
~HcalForwardLibWriter
();
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 ---------------------------
72
std::string
fDataFile
;
73
std::vector<FileHandle>
fFileHandle
;
74
TFile*
fFile
;
75
TTree*
fTree
;
76
};
77
#endif
HcalForwardLibWriter::FileHandle::momentum
int momentum
Definition:
HcalForwardLibWriter.h:58
HcalForwardLibWriter::fDataFile
std::string fDataFile
Definition:
HcalForwardLibWriter.h:72
HcalForwardLibWriter::fFileHandle
std::vector< FileHandle > fFileHandle
Definition:
HcalForwardLibWriter.h:73
HcalForwardLibWriter::fFile
TFile * fFile
Definition:
HcalForwardLibWriter.h:74
Event.h
MakerMacros.h
HcalForwardLibWriter::produce
virtual void produce(edm::Event &, const edm::EventSetup &) override
Definition:
HcalForwardLibWriter.cc:42
HcalForwardLibWriter::fTree
TTree * fTree
Definition:
HcalForwardLibWriter.h:75
Frameworkfwd.h
HcalForwardLibWriter::FileHandle
Definition:
HcalForwardLibWriter.h:55
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
edm::EDProducer
Definition:
EDProducer.h:22
HcalForwardLibWriter::FileHandle::name
std::string name
Definition:
HcalForwardLibWriter.h:56
ParameterSet.h
HFShowerLibraryEventInfo.h
HcalForwardLibWriter::~HcalForwardLibWriter
~HcalForwardLibWriter()
Definition:
HcalForwardLibWriter.cc:40
edm::EventSetup
Definition:
EventSetup.h:44
EDProducer.h
Exception.h
HcalForwardLibWriter::HcalForwardLibWriter
HcalForwardLibWriter(const edm::ParameterSet &)
Definition:
HcalForwardLibWriter.cc:22
HcalForwardLibWriter::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition:
HcalForwardLibWriter.cc:172
HFShowerPhoton.h
edm::ParameterSet
Definition:
ParameterSet.h:35
edm::Event
Definition:
Event.h:56
HcalForwardLibWriter::readUserData
void readUserData()
Definition:
HcalForwardLibWriter.cc:146
HcalForwardLibWriter::FileHandle::id
std::string id
Definition:
HcalForwardLibWriter.h:57
HcalForwardLibWriter
Definition:
HcalForwardLibWriter.h:52
edm::ConfigurationDescriptions
Definition:
ConfigurationDescriptions.h:27
Generated for CMSSW Reference Manual by
1.8.5