CMS 3D CMS Logo

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  ~RootNeutronWriter() override;
19 
22  void initialize(int detType) override;
23 
24  RootChamberWriter & chamberWriter(int chamberType);
25 
26  void writeCluster(int chamberType, const edm::PSimHitContainer & hits) override;
27 
28 private:
29  std::map<int, RootChamberWriter> theChamberWriters;
30  TFile * theFile;
31 };
32 
33 #endif
34 
~RootNeutronWriter() override
std::map< int, RootChamberWriter > theChamberWriters
void writeCluster(int chamberType, const edm::PSimHitContainer &hits) override
writes out a list of SimHits.
void initialize(int detType) override
RootNeutronWriter(const std::string &fileName)
RootChamberWriter & chamberWriter(int chamberType)
std::vector< PSimHit > PSimHitContainer