Main Page
Namespaces
Classes
Package Documentation
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
{
10
public
:
12
RootChamberWriter
() :
theTree
(
nullptr
),
theHits
(
nullptr
) {}
13
RootChamberWriter
(
const
std::string
& treeName);
14
16
~RootChamberWriter
();
17
18
void
write
(
const
edm::PSimHitContainer
&
hits
);
19
20
TTree *
tree
() {
return
theTree
;}
21
22
private
:
23
TTree *
theTree
;
24
TClonesArray *
theHits
;
25
};
26
27
#endif
28
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
hfClusterShapes_cfi.hits
hits
Definition:
hfClusterShapes_cfi.py:5
RootChamberWriter::theHits
TClonesArray * theHits
Definition:
RootChamberWriter.h:24
RootChamberWriter::RootChamberWriter
RootChamberWriter()
default ctor, for STL
Definition:
RootChamberWriter.h:12
nullptr
#define nullptr
RootChamberWriter::theTree
TTree * theTree
Definition:
RootChamberWriter.h:23
PSimHitContainer.h
RootChamberWriter::~RootChamberWriter
~RootChamberWriter()
writes the tree, and deletes everything
Definition:
RootChamberWriter.cc:16
RootChamberWriter::write
void write(const edm::PSimHitContainer &hits)
Definition:
RootChamberWriter.cc:25
RootChamberWriter
Definition:
RootChamberWriter.h:8
edm::PSimHitContainer
std::vector< PSimHit > PSimHitContainer
Definition:
PSimHitContainer.h:11
RootChamberWriter::tree
TTree * tree()
Definition:
RootChamberWriter.h:20
Generated for CMSSW Reference Manual by
1.8.11