/[PAMELA software]/gp2root/pPdetMgr.cpp
ViewVC logotype

Diff of /gp2root/pPdetMgr.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by pamela, Wed Apr 19 23:35:58 2006 UTC revision 1.2 by cafagna, Sun Oct 22 08:27:00 2006 UTC
# Line 40  pDetector* pPdetMgr::GetpDet(const strin Line 40  pDetector* pPdetMgr::GetpDet(const strin
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    

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.23