// MAUS WARNING: THIS IS LEGACY CODE. // MiceEventManager.cc // // M.Ellis 25/8/2005 #include "Interface/MiceEventManager.hh" #include "Interface/KLHit.hh" #include "Interface/VirtualHit.hh" #include "Interface/MCParticle.hh" #include "Interface/CkovHit.hh" #include "Interface/RFData.hh" #include "Interface/KillHit.hh" #include "Utils/Squeak.hh" template std::vector deepCopyVector(std::vector& target) { std::vector myV(target.size()); for(unsigned int i=0; i void deleteVector(std::vector& target) { for(unsigned int i=0; i (event.ckovHits); deleteVector (event.klHits); deleteVector (event.virtualHits); deleteVector (event.mcParticles); deleteVector (event.rfData); deleteVector (event.killHits); deleteVector (event.pgHits); } MICEEvent* deepCopyEvent(MICEEvent& event) { //come cut and paste with me... MICEEvent* ev_out = new MICEEvent(); ev_out->ckovHits = deepCopyVector (event.ckovHits); ev_out->klHits = deepCopyVector (event.klHits); ev_out->virtualHits = deepCopyVector (event.virtualHits); ev_out->mcParticles = deepCopyVector (event.mcParticles); ev_out->rfData = deepCopyVector (event.rfData); ev_out->killHits = deepCopyVector (event.killHits); ev_out->pgHits = deepCopyVector (event.pgHits); return ev_out; }