#include #include #include #ifdef DEBUG_CosmicVetoFinder #include #endif #include "COMETGeomId.hxx" #include "COMETGeomIdDef.hxx" #include "ICosmicVetoGeomId.hxx" #include "ICosmicVetoIdFinder.hxx" COMET::ICosmicVetoIdFinder::ICosmicVetoIdFinder() {;} COMET::ICosmicVetoIdFinder::~ICosmicVetoIdFinder() {;} bool COMET::ICosmicVetoIdFinder::Search(const std::vector& names, COMET::IGeometryId& id){ //exact structure and string to search for needs to be checked with ROOT files if(names.back().find("CosmicVeto")==std::string::npos) return false; #ifdef DEBUG_CosmicVetoFinder for (std::vector::const_iterator s = names.begin(); s != names.end(); ++s) std::cout << " " << *s; std::cout << std::endl; #endif id = COMET::GeomId::CosmicVeto::Detector(); return true; }