--- yoda/techmodel/CalibTrdReader.cpp 2004/08/19 15:24:46 1.2 +++ yoda/techmodel/CalibTrdReader.cpp 2004/09/21 20:50:54 2.0 @@ -1,6 +1,6 @@ /** @file * $Source: /home/cvsmanager/yoda/techmodel/CalibTrdReader.cpp,v $ - * $Id: CalibTrdReader.cpp,v 1.1.1.1 2004/07/06 12:20:23 kusanagi Exp $ + * $Id: CalibTrdReader.cpp,v 1.3 2004/09/21 20:24:33 kusanagi Exp $ * $Author: kusanagi $ * * Implementation of the LogReader class. @@ -11,7 +11,7 @@ #define UINT unsigned int #define BYTE unsigned char #include -#include +#include extern "C" { #include #include "CRC.h" @@ -26,16 +26,14 @@ using namespace pamela; using namespace pamela::techmodel; -static log4cpp::Category& cat = log4cpp::Category::getInstance("pamela.techmodel.CalibTrdReader"); +static log4cxx::LoggerPtr logger = log4cxx::Logger::getLogger(_T("pamela.techmodel.CalibTrdReader")); /** * Constructor. */ CalibTrdReader::CalibTrdReader(void): TechmodelAlgorithm(PacketType::CalibTrd, "TechmodelCalibTrdReader") { - cat << log4cpp::Priority::DEBUG - << "Constructor " - << "\n " << log4cpp::CategoryStream::ENDLINE; + logger->debug(_T("Constructor")); calibTrd = new CalibTrdEvent(); } @@ -44,7 +42,7 @@ */ std::string CalibTrdReader::GetVersionInfo(void) const { return - "$Header: /home/cvsmanager/yoda/techmodel/CalibTrdReader.cpp,v 1.1.1.1 2004/07/06 12:20:23 kusanagi Exp $\n"; + "$Header: /home/cvsmanager/yoda/techmodel/CalibTrdReader.cpp,v 1.3 2004/09/21 20:24:33 kusanagi Exp $\n"; } /** @@ -52,6 +50,7 @@ * event reader routines for all packet types. */ void CalibTrdReader::Init(PamelaRun *run) { + logger->debug(_T("Initialize")); SetInputStream(run); run->WriteSubPacket(this, &calibTrd, calibTrd->Class()); }