| 40 |
string::size_type spos=temp.find(ToLower(s)); |
string::size_type spos=temp.find(ToLower(s)); |
| 41 |
|
|
| 42 |
switch(spos){ |
switch(spos){ |
| 43 |
case CATPOS: |
// case CATPOS: |
| 44 |
return new pCat(); |
// return new pCat(); |
| 45 |
case CALPOS: |
// case CALPOS: |
| 46 |
return new pCal(); |
// return new pCal(); |
| 47 |
case CALIPOS: |
// case CALIPOS: |
| 48 |
return 0; |
// return 0; |
| 49 |
case TOFPOS: |
// case TOFPOS: |
| 50 |
return new pTof(); |
// return new pTof(); |
| 51 |
case CASPOS: |
// case CASPOS: |
| 52 |
return new pCas(); |
// return new pCas(); |
| 53 |
case CARDPOS: |
// case CARDPOS: |
| 54 |
return 0; |
// return 0; |
| 55 |
case S4POS: |
// case S4POS: |
| 56 |
return 0; |
// return 0; |
| 57 |
case NDPOS: |
// case NDPOS: |
| 58 |
return 0; |
// return 0; |
| 59 |
case TRDPOS: |
// case TRDPOS: |
| 60 |
return 0; |
// return 0; |
| 61 |
case SPEPOS: |
// case SPEPOS: |
| 62 |
return 0; |
// return 0; |
| 63 |
case string::npos: |
case string::npos: |
| 64 |
cout << " pPdetMgr : Detector = " << s << " not found "; |
cout << " pPdetMgr : Detector = " << s << " not found "; |
| 65 |
return 0; |
return 0; |
| 66 |
|
default: |
| 67 |
|
cout << " pPdetMgr : Detector = " << s << " not found "; |
| 68 |
|
return new pDetector(ToLower(s)); |
| 69 |
|
// return 0; |
| 70 |
} |
} |
| 71 |
|
|
| 72 |
} |
} |
| 73 |
|
|
| 74 |
|
|