00001 #ifndef RootNeutronReader_h 00002 #define RootNeutronReader_h 00003 00004 #include "SimMuon/Neutron/src/NeutronReader.h" 00005 #include "SimMuon/Neutron/src/RootChamberReader.h" 00006 #include <TFile.h> 00007 00015 class RootNeutronReader : public NeutronReader 00016 { 00017 public: 00018 RootNeutronReader(const std::string & fileName); 00019 00020 virtual void readNextEvent(int chamberType, edm::PSimHitContainer & result); 00021 00022 RootChamberReader & chamberReader(int chamberType); 00023 00024 private: 00025 TFile * theFile; 00026 std::map<int, RootChamberReader> theChamberReaders; 00027 }; 00028 00029 #endif 00030