//////////////////////////////////////////////////////////// // $Id: IMCHit.cxx,v 1.14 2010/04/07 19:07:59 mcgrew Exp $ // #include "IMCHit.hxx" #include "HEPUnits.hxx" ClassImp(COMET::IMCHit); ClassImp(COMET::IWritableMCHit); COMET::IMCHit::IMCHit() {} COMET::IMCHit::IMCHit(const COMET::IWritableMCHit& h) : COMET::ISingleHit(h), fContributors(h.fContributors) { } COMET::IMCHit::~IMCHit() { } /// Print the hit information. void COMET::IMCHit::ls(Option_t *opt) const { COMET::ISingleHit::ls(opt); std::string option(opt); if (option.find("dump") != std::string::npos) { TROOT::IncreaseDirLevel(); // Print the contributors. for (ContributorContainer::const_iterator h = fContributors.begin(); h != fContributors.end(); ++h) { if(*h) (*h)->ls(opt); } TROOT::DecreaseDirLevel(); } } COMET::IWritableMCHit::IWritableMCHit() {} COMET::IWritableMCHit::IWritableMCHit(const COMET::IWritableMCHit& h) : COMET::IMCHit(h) {} COMET::IWritableMCHit::~IWritableMCHit() {} ////////////////////////////////////////////////// // Setter methods for COMET::IWritableMCHit ////////////////////////////////////////////////// void COMET::IWritableMCHit::SetGeomID(COMET::IGeometryId id) { fGeomID = id; } void COMET::IWritableMCHit::SetCharge(double q) {fCharge = q;} void COMET::IWritableMCHit::SetTime(double t) {fTime = t;} void COMET::IWritableMCHit::SetChargeValidity(bool valid) { COMET::IHit::SetChargeValidity(valid); } void COMET::IWritableMCHit::SetTimeValidity(bool valid) { COMET::IHit::SetTimeValidity(valid); } void COMET::IWritableMCHit::SetChannelID(COMET::IChannelId id) {fChannelID = id;}