#include #include #include #include ClassImp(COMET::IPAISecondary); ClassImp(COMET::IPAISecondaryContainer); COMET::IPAISecondary::IPAISecondary() : fChannelID(0), fDeltaRayContributor(0), fGlobalPos(TVector3(0,0,0)), fLocalPos(TVector3(0,0,0)), fTime(0){} COMET::IPAISecondary::IPAISecondary(COMET::IChannelId channelID, COMET::IPAIDeltaRay* contrib, TVector3 globalxyz, TVector3 localxyz, double time) : fChannelID(channelID), fDeltaRayContributor(contrib), fGlobalPos(globalxyz), fLocalPos(localxyz), fTime(time){} COMET::IPAISecondary::~IPAISecondary(){} void COMET::IPAISecondary::ls(Option_t* opt) const { COMET::ls_header(this,opt); int prec = std::cout.precision(); std::cout.precision(3); std::cout << " ChannelID: " << fChannelID.AsUInt() << " Global Position [cm]: (" << fGlobalPos.X() / (unit::cm) << "," << fGlobalPos.Y() / (unit::cm) << "," << fGlobalPos.Z() / (unit::cm) << ")" << " Local Position [cm]: (" << fLocalPos.X() / (unit::cm) << "," << fLocalPos.Y() / (unit::cm) << "," << fLocalPos.Z() / (unit::cm) << ")" << " Time [ns]: " << fTime / (unit::ns) << std::endl; std::string option(opt); std::cout.precision(prec); }