CMS 3D CMS Logo

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>
7 
9 {
10 public:
13  RootChamberWriter(const std::string & treeName);
14 
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 
TClonesArray * theHits
RootChamberWriter()
default ctor, for STL
~RootChamberWriter()
writes the tree, and deletes everything
void write(const edm::PSimHitContainer &hits)
std::vector< PSimHit > PSimHitContainer