Commit 269a2687 authored by Jihad Saidi's avatar Jihad Saidi
Browse files

The PixelHit object now prints the local X Y coordinates, the Local Time, the...

The PixelHit object now prints the local X Y coordinates, the Local Time, the Global time and global coordinates in the simulated geometry and finally the collected charge (signal) of the PixelHit.
I had to update print function to allow more flexibility in my project.
parent b8304763
Loading
Loading
Loading
Loading
+9 −2
Original line number Diff line number Diff line
@@ -101,8 +101,15 @@ std::vector<const MCParticle*> PixelHit::getPrimaryMCParticles() const {
}

void PixelHit::print(std::ostream& out) const {
    out << "PixelHit " << this->getIndex().X() << ", " << this->getIndex().Y() << ", " << this->getSignal() << ", "
        << this->getLocalTime() << ", " << this->getGlobalTime();
    out << "PixelHit " 
        << this->getIndex().X() << ", " 
        << this->getIndex().Y() << ", " 
        << this->getLocalTime() << ", " 
        << this->getGlobalTime() << ", "
        << this->getPixel().getGlobalCenter().X() << ", " 
        << this->getPixel().getGlobalCenter().Y() << ", " 
        << this->getPixel().getGlobalCenter().Z() << ", " 
        << this->getSignal();
}

void PixelHit::loadHistory() {