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>
14 public:
16  ~RootNeutronWriter() override;
17 
20  void initialize(int detType) override;
21 
23 
24  void writeCluster(int chamberType, const edm::PSimHitContainer& hits) override;
25 
26 private:
27  std::map<int, RootChamberWriter> theChamberWriters;
28  TFile* theFile;
29 };
30 
31 #endif
~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