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
#include <memory>
5
#include <string>
6
#include <fstream>
7
#include <utility>
8
#include <vector>
9
10
#include "
FWCore/Framework/interface/Frameworkfwd.h
"
11
#include "
FWCore/Framework/interface/one/EDAnalyzer.h
"
12
13
#include "
FWCore/Framework/interface/Event.h
"
14
#include "
FWCore/Framework/interface/MakerMacros.h
"
15
16
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
17
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
18
19
#include "
SimDataFormats/CaloHit/interface/HFShowerPhoton.h
"
20
#include "
SimDataFormats/CaloHit/interface/HFShowerLibraryEventInfo.h
"
21
#include "
CommonTools/UtilAlgos/interface/TFileService.h
"
22
#include "
FWCore/ServiceRegistry/interface/Service.h
"
23
24
#include "TFile.h"
25
#include "TTree.h"
26
27
class
HcalForwardLibWriter
:
public
edm::one::EDAnalyzer
<> {
28
public
:
29
struct
FileHandle
{
30
std::string
name
;
31
std::string
id
;
32
int
momentum
;
33
};
34
explicit
HcalForwardLibWriter
(
const
edm::ParameterSet
&);
35
~HcalForwardLibWriter
()
override
;
36
37
private
:
38
void
beginJob
()
override
;
39
void
analyze
(
const
edm::Event
&,
const
edm::EventSetup
&)
override
;
40
void
endJob
()
override
;
41
int
readUserData
();
42
int
nbins
;
43
int
nshowers
;
44
45
TFile*
theFile
;
46
TTree*
theTree
;
47
TFile*
LibFile
;
48
TTree*
LibTree
;
49
50
edm::Service<TFileService>
fs
;
51
std::string
theDataFile
;
52
std::vector<FileHandle>
theFileHandle
;
53
54
HFShowerLibraryEventInfo
evtInfo
;
55
HFShowerPhotonCollection
emColl
;
56
HFShowerPhotonCollection
hadColl
;
57
};
58
#endif
EDAnalyzer.h
MessageLogger.h
HcalForwardLibWriter::hadColl
HFShowerPhotonCollection hadColl
Definition:
HcalForwardLibWriter.h:56
HcalForwardLibWriter::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition:
HcalForwardLibWriter.cc:27
HcalForwardLibWriter::HcalForwardLibWriter
HcalForwardLibWriter(const edm::ParameterSet &)
Definition:
HcalForwardLibWriter.cc:6
HcalForwardLibWriter::evtInfo
HFShowerLibraryEventInfo evtInfo
Definition:
HcalForwardLibWriter.h:54
HFShowerLibraryEventInfo.h
HcalForwardLibWriter::endJob
void endJob() override
Definition:
HcalForwardLibWriter.cc:119
edm::one::EDAnalyzer
Definition:
EDAnalyzer.h:30
HcalForwardLibWriter::theFile
TFile * theFile
Definition:
HcalForwardLibWriter.h:45
HcalForwardLibWriter::theTree
TTree * theTree
Definition:
HcalForwardLibWriter.h:46
MakerMacros.h
Service.h
HcalForwardLibWriter::theFileHandle
std::vector< FileHandle > theFileHandle
Definition:
HcalForwardLibWriter.h:52
HcalForwardLibWriter::LibTree
TTree * LibTree
Definition:
HcalForwardLibWriter.h:48
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
HcalForwardLibWriter::LibFile
TFile * LibFile
Definition:
HcalForwardLibWriter.h:47
HcalForwardLibWriter
Definition:
HcalForwardLibWriter.h:27
TFileService.h
HFShowerPhotonCollection
std::vector< HFShowerPhoton > HFShowerPhotonCollection
Definition:
HFShowerPhoton.h:36
edm::ParameterSet
Definition:
ParameterSet.h:47
HcalForwardLibWriter::FileHandle::name
std::string name
Definition:
HcalForwardLibWriter.h:30
Event.h
HcalForwardLibWriter::FileHandle::momentum
int momentum
Definition:
HcalForwardLibWriter.h:32
edm::Service< TFileService >
HFShowerLibraryEventInfo
Definition:
HFShowerLibraryEventInfo.h:6
edm::EventSetup
Definition:
EventSetup.h:58
HcalForwardLibWriter::nbins
int nbins
Definition:
HcalForwardLibWriter.h:42
HcalForwardLibWriter::theDataFile
std::string theDataFile
Definition:
HcalForwardLibWriter.h:51
HcalForwardLibWriter::~HcalForwardLibWriter
~HcalForwardLibWriter() override
Definition:
HcalForwardLibWriter.cc:25
Frameworkfwd.h
HcalForwardLibWriter::readUserData
int readUserData()
Definition:
HcalForwardLibWriter.cc:125
HcalForwardLibWriter::beginJob
void beginJob() override
Definition:
HcalForwardLibWriter.cc:117
HcalForwardLibWriter::FileHandle
Definition:
HcalForwardLibWriter.h:29
HFShowerPhoton.h
ParameterSet.h
HcalForwardLibWriter::emColl
HFShowerPhotonCollection emColl
Definition:
HcalForwardLibWriter.h:55
HcalForwardLibWriter::fs
edm::Service< TFileService > fs
Definition:
HcalForwardLibWriter.h:50
edm::Event
Definition:
Event.h:73
HcalForwardLibWriter::FileHandle::id
std::string id
Definition:
HcalForwardLibWriter.h:31
HcalForwardLibWriter::nshowers
int nshowers
Definition:
HcalForwardLibWriter.h:43
Generated for CMSSW Reference Manual by
1.8.16