#include #include #include #include #include // ROOT include files. #include #include // COMET Include Files #include #include #include "ICOMETEvent.hxx" #include "ICOMETInput.hxx" #include "ICOMETOutput.hxx" #include "IOADatabase.hxx" #include "IHandleHack.hxx" #include "ICOMETLog.hxx" #include "EoaCore.hxx" #include "IRealDatum.hxx" #include #include "IMidasFile.hxx" #include #include #include #include #include #include "ICOMETRawEvent.hxx" #include "ICalibManager.hxx" using namespace std; /// \brief Converts raw events in midas files to comet events /// \author Christian Hansen, hansen@ific.uv.ca, Thomas Lindner, lindner@phas.ubc.ca /// /// oaRawEventDecoder /// /// An example how to read in midas files and convert the raw events /// and produce an cometevent file (for ReconGlobal) void usage() { std::cerr<<"Usage: oaRawEventDecoder.exe [-c] ... "<IsOpen()) { std::cerr<<"ERROR: Output file, "<WriteGeometry(COMET::IOADatabase::Get().Geometry()); } catch (COMET::ENoGeometry) { std::cout<<"ERROR: Geometry not written to output"<GetHeader().GetSeqNo(); std::auto_ptr cometEvent(new COMET::ICOMETEvent(0,serialNumber)); //cout<<"made a new comet event with serial number "<WriteEvent(*cometEvent); } // Count events eventCounter++; if (eventCounter%20 == 0) std::cout << "Event: " << eventCounter<Close(); } // AWESOMEE!!! DO TOMORROWWW!!!!