16 LogDebug(
"NeutronWriter") <<
"opening " <<
s.str();
18 os.open(
s.str().c_str(), ofstream::app);
19 os <<
hits.size() << endl;
20 for (
size_t i = 0;
i <
hits.size(); ++
i) {
22 os <<
h.entryPoint().x() <<
" " <<
h.entryPoint().y() <<
" " <<
h.entryPoint().z() <<
" " <<
h.exitPoint().x()
23 <<
" " <<
h.exitPoint().y() <<
" " <<
h.exitPoint().z() <<
" " <<
h.pabs() <<
" " 24 <<
" " <<
h.timeOfFlight() <<
" " <<
h.energyLoss() <<
" " <<
h.particleType() <<
" " <<
h.detUnitId() <<
" " 25 <<
h.trackId() <<
" " <<
h.momentumAtEntry().theta() <<
" " <<
h.momentumAtEntry().phi() << endl;
~AsciiNeutronWriter() override
AsciiNeutronWriter(std::string fileNameBase)
void writeCluster(int chamberType, const edm::PSimHitContainer &hits) override
writes out a list of SimHits.
std::string theFileNameBase
std::vector< PSimHit > PSimHitContainer
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.