9 theFileNameBase(fileNameBase) {
22 LogDebug(
"NeutronWriter") <<
"opening " << s.str();
24 os.open(s.str().c_str(), ofstream::app);
25 os << hits.size() << endl;
26 for(
size_t i = 0;
i < hits.size(); ++
i) {
LocalVector momentumAtEntry() const
The momentum of the track that produced the hit, at entry point.
virtual ~AsciiNeutronWriter()
Geom::Phi< T > phi() const
AsciiNeutronWriter(std::string fileNameBase)
Geom::Theta< T > theta() const
Local3DPoint exitPoint() const
Exit point in the local Det frame.
float timeOfFlight() const
virtual void writeCluster(int chamberType, const edm::PSimHitContainer &hits)
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