#include "CorsikaReadAlg.h" #include "DataStoreMgr/EvtDataPtr.h" #include "DataStoreMgr/IDataStoreMgr.h" #include "SniperKernel/SniperLog.h" #include "SniperKernel/AlgFactory.h" #include "SniperKernel/SniperPtr.h" #include "SniperKernel/Incident.h" #include "Event/CorsikaHeader.h" #include "Event/CorsikaEvent.h" #include #include #include #include #include #include #include #include DECLARE_ALGORITHM(CorsikaReadAlg); using namespace LHAASO; CorsikaReadAlg::CorsikaReadAlg(const std::string& name) : AlgBase(name) { } CorsikaReadAlg::~CorsikaReadAlg() { } bool CorsikaReadAlg::initialize() { return true; } bool CorsikaReadAlg::execute() { std::cout << "******this the begin of CorsikaReadAlg execute*******" << std::endl; ++m_iEvt; EvtDataPtr edp(this->getRoot(),"/Event/CorsikaEvent"); CorsikaHeader* header = edp.data(); CorsikaEvent* event = header->event(); std::cout << header->corsikaV() << std::endl; std::cout << "*****this is the end of CorsikaReadAlg execute*******" << std::endl; return true; } bool CorsikaReadAlg::finalize() { return true; }