--- gp2root/pPdetMgr.cpp 2006/04/19 23:35:58 1.1 +++ gp2root/pPdetMgr.cpp 2006/10/22 08:27:00 1.2 @@ -40,29 +40,35 @@ string::size_type spos=temp.find(ToLower(s)); switch(spos){ - case CATPOS: - return new pCat(); - case CALPOS: - return new pCal(); - case CALIPOS: - return 0; - case TOFPOS: - return new pTof(); - case CASPOS: - return new pCas(); - case CARDPOS: - return 0; - case S4POS: - return 0; - case NDPOS: - return 0; - case TRDPOS: - return 0; - case SPEPOS: - return 0; +// case CATPOS: +// return new pCat(); +// case CALPOS: +// return new pCal(); +// case CALIPOS: +// return 0; +// case TOFPOS: +// return new pTof(); +// case CASPOS: +// return new pCas(); +// case CARDPOS: +// return 0; +// case S4POS: +// return 0; +// case NDPOS: +// return 0; +// case TRDPOS: +// return 0; +// case SPEPOS: +// return 0; case string::npos: cout << " pPdetMgr : Detector = " << s << " not found "; return 0; - + default: + cout << " pPdetMgr : Detector = " << s << " not found "; + return new pDetector(ToLower(s)); +// return 0; } + } + +