Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:30:49

0001 #ifndef SimMuon_Neutron_RootChamberReader_h
0002 #define SimMuon_Neutron_RootChamberReader_h
0003 
0004 #include <TFile.h>
0005 #include <TTree.h>
0006 #include "SimDataFormats/TrackingHit/interface/PSimHitContainer.h"
0007 
0008 class RootChamberReader {
0009 public:
0010   /// default ctor, for STL
0011   RootChamberReader();
0012   RootChamberReader(TFile* file, const std::string& treeName);
0013   /// writes the tree, and deletes everything
0014   ~RootChamberReader();
0015 
0016   void read(edm::PSimHitContainer& hits);
0017 
0018 private:
0019   TTree* theTree;
0020   TClonesArray* theHits;
0021   int thePosition;
0022   int theSize;
0023 };
0024 
0025 #endif