// MAUS WARNING: THIS IS LEGACY CODE. // MiceEventManager.hh // // M.Ellis 25/8/2005 #ifndef PERSIST_MICEEVENTMANAGER_H #define PERSIST_MICEEVENTMANAGER_H #include "Interface/MICEEvent.hh" void clearEvent( MICEEvent& ); //Make a copy of MICEEvent* and all members MICEEvent* deepCopyEvent(MICEEvent& ev_in); //Return a deepcopy of std::vector where T is some class //If members are NULL, copy a NULL //e.g. std::vector usage dc_vlpc_hits = DeepCopyVector( vlpcHits ); template std::vector deepCopyVector(std::vector& target); //Delete all members in std::vector where T is some class //Ignore members that are already NULL //e.g. std::vector usage dc_vlpc_hits = DeepCopyVector( vlpcHits ); template void deleteVector (std::vector& target); #endif