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) {
LocalVector momentumAtEntry() const
The momentum of the track that produced the hit, at entry point.
Geom::Phi< T > phi() const
~AsciiNeutronWriter() override
AsciiNeutronWriter(std::string fileNameBase)
Geom::Theta< T > theta() const
Local3DPoint exitPoint() const
Exit point in the local Det frame.
float timeOfFlight() const
void writeCluster(int chamberType, const edm::PSimHitContainer &hits) override
writes out a list of SimHits.
float pabs() const
fast and more accurate access to momentumAtEntry().mag()
std::string theFileNameBase
float energyLoss() const
The energy deposit in the PSimHit, in ???.
unsigned int trackId() const
std::vector< PSimHit > PSimHitContainer
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Local3DPoint entryPoint() const
Entry point in the local Det frame.
unsigned int detUnitId() const