00001 #ifndef MCTRAJECTORY_CC 00002 #define MCTRAJECTORY_CC 00003 00004 #include "mctrajectory.hh" 00005 00006 namespace larlight{ 00007 00008 //*********************************************************************** 00009 mctrajectory::mctrajectory(DATA::DATA_TYPE type) : std::vector<larlight::mcstep>(), 00010 data_base(type) 00011 //*********************************************************************** 00012 { 00013 if(_type!=DATA::MCTrajectory) { 00014 00015 Message::send(MSG::ERROR,__FUNCTION__, 00016 Form("Provided data type (%s) not supported! Reset to default.",DATA::DATA_TREE_NAME[_type].c_str())); 00017 00018 _type=DATA::MCTrajectory; 00019 00020 } 00021 clear_data(); 00022 } 00023 00024 00025 } 00026 00027 #endif