CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
RootChamberReader.h
Go to the documentation of this file.
1 #ifndef SimMuon_Neutron_RootChamberReader_h
2 #define SimMuon_Neutron_RootChamberReader_h
3 
4 #include <TFile.h>
5 #include <TTree.h>
7 
9 public:
12  RootChamberReader(TFile* file, const std::string& treeName);
15 
16  void read(edm::PSimHitContainer& hits);
17 
18 private:
19  TTree* theTree;
20  TClonesArray* theHits;
22  int theSize;
23 };
24 
25 #endif
TClonesArray * theHits
void read(edm::PSimHitContainer &hits)
RootChamberReader()
default ctor, for STL
~RootChamberReader()
writes the tree, and deletes everything
std::vector< PSimHit > PSimHitContainer