CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RootNeutronWriter.h
Go to the documentation of this file.
1 #ifndef SimMuon_Neutron_RootNeutronWriter_h
2 #define SimMuon_Neutron_RootNeutronWriter_h
3 
6 #include <TFile.h>
7 #include <vector>
15 {
16 public:
18  virtual ~RootNeutronWriter();
19 
22  virtual void initialize(int detType);
23 
24  RootChamberWriter & chamberWriter(int chamberType);
25 
26  virtual void writeCluster(int chamberType, const edm::PSimHitContainer & hits);
27 
28 private:
29  std::map<int, RootChamberWriter> theChamberWriters;
30  TFile * theFile;
31 };
32 
33 #endif
34 
virtual void initialize(int detType)
virtual void writeCluster(int chamberType, const edm::PSimHitContainer &hits)
writes out a list of SimHits.
virtual ~RootNeutronWriter()
std::map< int, RootChamberWriter > theChamberWriters
RootNeutronWriter(const std::string &fileName)
RootChamberWriter & chamberWriter(int chamberType)
std::vector< PSimHit > PSimHitContainer