CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_10_patch1/src/SimMuon/Neutron/src/RootChamberReader.h

Go to the documentation of this file.
00001 #ifndef SimMuon_Neutron_RootChamberReader_h
00002 #define SimMuon_Neutron_RootChamberReader_h
00003 
00004 #include <TFile.h>
00005 #include <TTree.h>
00006 #include "SimDataFormats/TrackingHit/interface/PSimHitContainer.h"
00007 
00008 class RootChamberReader
00009 {
00010 public:
00012   RootChamberReader();
00013   RootChamberReader(TFile * file, const std::string & treeName);
00015   ~RootChamberReader();
00016 
00017   void read(edm::PSimHitContainer & hits);
00018 
00019 private:
00020   TTree * theTree;
00021   TClonesArray * theHits;
00022   int thePosition;
00023   int theSize;
00024 };
00025 
00026 #endif
00027