--- yoda/techmodel/PscuReader.cpp 2004/07/06 12:20:23 1.1.1.1 +++ yoda/techmodel/PscuReader.cpp 2006/02/04 12:37:45 5.1 @@ -1,27 +1,27 @@ /** @file - * $Source: /home/cvspamela/yoda/techmodel/PscuReader.cpp,v $ - * $Id: PscuReader.cpp,v 1.6 2004/03/16 10:18:28 nagni Exp $ - * $Author: nagni $ + * $Source: /home/cvsmanager/yoda/techmodel/PscuReader.cpp,v $ + * $Id: PscuReader.cpp,v 5.0 2005/08/29 09:46:13 Maurizio Nagni Exp $ + * $Author: Maurizio Nagni $ * * Implementation of the OrbitalReader class. */ #include -#include +#include #include "ReaderAlgorithms.h" using namespace pamela; using namespace pamela::techmodel; -static log4cpp::Category& cat = log4cpp::Category::getInstance("pamela.techmodel.PscuReader"); +static log4cxx::LoggerPtr logger = log4cxx::Logger::getLogger(_T("pamela.techmodel.PscuReader")); /** * Constructor. */ PscuReader::PscuReader(void): TechmodelAlgorithm(PacketType::Pscu, "TechmodelPscuReader") { - cat.debug("Constructor"); + logger->debug(_T("Constructor")); Pscu = new PscuEvent(); } @@ -30,7 +30,7 @@ */ std::string PscuReader::GetVersionInfo(void) const { return - "$Header: /home/cvspamela/yoda/techmodel/PscuReader.cpp,v 1.6 2004/03/16 10:18:28 nagni Exp $\n"; + "$Header: /home/cvsmanager/yoda/techmodel/PscuReader.cpp,v 5.0 2005/08/29 09:46:13 Maurizio Nagni Exp $\n"; } /** @@ -40,11 +40,12 @@ void PscuReader::Init(PamelaRun *run) { SetInputStream(run); run->WriteSubPacket(this, &Pscu, Pscu->Class()); + logger->debug(_T("Initialize")); } /** * Unpack the orbital event from an input file. */ -void PscuReader::RunEvent(int EventNumber, long int length) { +void PscuReader::RunEvent(int EventNumber, long int length) throw (WrongCRCException){ // First step: unpack the event into the event class. }