00001 #ifndef WIRE_CC 00002 #define WIRE_CC 00003 00004 #include "wire.hh" 00005 00006 namespace larlight { 00007 00008 //*************************************************** 00009 wire::wire(DATA::DATA_TYPE type) : data_base(type), 00010 fSignal() 00011 //*************************************************** 00012 { 00013 if(_type!=DATA::Wire) { 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::Wire; 00019 } 00020 00021 clear_data(); 00022 } 00023 00024 //********************* 00025 void wire::clear_data() 00026 //********************* 00027 { 00028 fSignal.clear(); 00029 fView = GEO::kUnknown; 00030 fSignalType = GEO::kMysteryType; 00031 fChannel = 0xffffffff; 00032 } 00033 00034 //*************************************************************************** 00035 event_wire::event_wire(DATA::DATA_TYPE type) : std::vector<larlight::wire>(), 00036 event_base(type) 00037 //*************************************************************************** 00038 { 00039 if(_type!=DATA::Wire) { 00040 00041 Message::send(MSG::ERROR,__FUNCTION__, 00042 Form("Provided data type (%s) not supported! Reset to default.",DATA::DATA_TREE_NAME[_type].c_str())); 00043 00044 _type=DATA::Wire; 00045 } 00046 00047 clear_data(); 00048 } 00049 00050 } 00051 #endif