CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_3/src/SimMuon/Neutron/src/RootChamberWriter.h

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