SimMuon
Neutron
src
RootChamberWriter.h
Go to the documentation of this file.
1
#ifndef SimMuon_Neutron_RootChamberWriter_h
2
#define SimMuon_Neutron_RootChamberWriter_h
3
4
#include <TTree.h>
5
#include <TClonesArray.h>
6
#include "
SimDataFormats/TrackingHit/interface/PSimHitContainer.h
"
7
8
class
RootChamberWriter
{
9
public
:
11
RootChamberWriter
() :
theTree
(nullptr),
theHits
(nullptr) {}
12
RootChamberWriter
(
const
std::string
& treeName);
13
15
~RootChamberWriter
();
16
17
void
write
(
const
edm::PSimHitContainer
&
hits
);
18
19
TTree*
tree
() {
return
theTree
; }
20
21
private
:
22
TTree*
theTree
;
23
TClonesArray*
theHits
;
24
};
25
26
#endif
RootChamberWriter::theTree
TTree * theTree
Definition:
RootChamberWriter.h:22
RootChamberWriter::theHits
TClonesArray * theHits
Definition:
RootChamberWriter.h:23
hfClusterShapes_cfi.hits
hits
Definition:
hfClusterShapes_cfi.py:5
PSimHitContainer.h
RootChamberWriter::~RootChamberWriter
~RootChamberWriter()
writes the tree, and deletes everything
Definition:
RootChamberWriter.cc:13
RootChamberWriter::tree
TTree * tree()
Definition:
RootChamberWriter.h:19
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
RootChamberWriter
Definition:
RootChamberWriter.h:8
RootChamberWriter::RootChamberWriter
RootChamberWriter()
default ctor, for STL
Definition:
RootChamberWriter.h:11
edm::PSimHitContainer
std::vector< PSimHit > PSimHitContainer
Definition:
PSimHitContainer.h:11
RootChamberWriter::write
void write(const edm::PSimHitContainer &hits)
Definition:
RootChamberWriter.cc:20
Generated for CMSSW Reference Manual by
1.8.16