Changeset 377 for trunk/MagicSoft/Simulation/Detector/TimeCam/timecam.cxx
- Timestamp:
- 03/20/00 13:33:59 (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Simulation/Detector/TimeCam/timecam.cxx
r376 r377 21 21 // 22 22 // $RCSfile: timecam.cxx,v $ 23 // $Revision: 1. 4$23 // $Revision: 1.5 $ 24 24 // $Author: harald $ 25 // $Date: 2000-03-20 08:25:17$25 // $Date: 2000-03-20 13:33:59 $ 26 26 // 27 27 //////////////////////////////////////////////////////////////////////// … … 57 57 58 58 #include "MTrigger.hxx" 59 #include "MFadc.hxx" 59 60 60 61 #include "MRawEvt.h" … … 131 132 #define __ROOT__ 132 133 133 // flag for INTERAKTIV (default: OFF ) 134 #define __INTERAKTIV__ 135 #undef __INTERAKTIV__ 134 // flag for MTRIGGER_SCAN (default: OFF ) 135 #undef __MTRIGGER_SCAN__ 136 #define __MTRIGGER_SCAN__ 137 138 // flag for MTRIGGER_SCAN (default: OFF ) 139 #define __MFADC_SCAN__ 140 #undef __MFADC_SCAN__ 141 136 142 //!@} 137 143 … … 676 682 MMcTrig *McTrig = new MMcTrig() ; 677 683 678 679 // MFadc fadc ; 684 MFadc fadc ; 680 685 681 686 #endif // __DETAIL_TRIGGER__ … … 730 735 #endif // __NSB__ 731 736 732 #ifdef __ INTERAKTIV__737 #ifdef __MTRIGGER_SCAN__ 733 738 TApplication theApp("App", &argc, argv); 734 739 … … 737 742 // return 1; 738 743 } 739 #endif // __INTERAKTIV__ 744 #endif // __MTRIGGER_SCAN__ 745 746 #ifdef __MFADC_SCAN__ 747 TApplication theApp("App", &argc, argv); 748 749 if (gROOT->IsBatch()) { 750 fprintf(stderr, "%s: cannot run in batch mode\n", argv[0]); 751 // return 1; 752 } 753 #endif // __MFADC_SCAN__ 740 754 741 755 … … 843 857 fnpixclean = new float [ ct_NPixels ]; 844 858 845 #ifdef __ROOT__846 847 // construct MFADC848 849 #endif // __ROOT__850 851 852 859 // moments_ptr = moments( anaPixels, NULL, NULL, 0.0, 1 ); 853 860 … … 1034 1041 } 1035 1042 1036 #ifdef __ROOT__1037 // clear the MFADC1038 1039 #endif // __ROOT__1040 1041 1043 ntcph_in +=ncph_in; 1042 1044 ncph_in = 0; … … 1050 1052 // clear Trigger 1051 1053 // 1052 1053 Trigger.Reset() ; 1054 Trigger.Reset() ; 1055 1054 1056 #endif // __DETAIL_TRIGGER__ 1055 1057 1056 //fadc.Reset() ;1058 fadc.Reset() ; 1057 1059 1058 1060 // … … 1186 1188 // cout << "@#1 " << nshow << ' ' << cx << ' ' << cy << endl; 1187 1189 1188 nPMT = -1; 1189 1190 for(i=0; i<ct_NPixels; i++){ 1191 if( bpoint_is_in_pix( cx, cy, i, &cam) ){ 1192 nPMT = i; 1193 break; 1190 if ( (nPMT < 0) || (nPMT >= ct_NCentralPixels) ) { 1191 1192 // check the outer pixels 1193 nPMT = -1; 1194 1195 1196 for(i=ct_NCentralPixels; i<ct_NPixels; i++){ 1197 if( bpoint_is_in_pix( cx, cy, i, &cam) ){ 1198 nPMT = i; 1199 break; 1200 } 1194 1201 } 1195 1202 } … … 1260 1267 // 1261 1268 // 1269 1262 1270 Trigger.FillShow( nPMT, ( t - t_first ) ) ; 1263 1271 1264 // fadc.Fill( nPMT, ( t - t_first ), Trigger.Fill( nPMT, ( t - t_first ) ) ) ;1272 fadc.Fill( nPMT, ( t - t_first ), Trigger.FillShow( nPMT, ( t - t_first ) ) ) ; 1265 1273 1266 1274 #endif // __DETAIL_TRIGGER__ … … 1402 1410 // 1403 1411 Trigger.ElecNoise() ; 1412 fadc.ElecNoise() ; 1404 1413 1405 1414 … … 1416 1425 1417 1426 McTrig->SetZeroLevel( Lev0 = (Short_t) Trigger.ZeroLevel() ) ; 1418 1419 1420 1427 1421 1428 Lev1 = Lev2 = 0 ; 1422 1429 … … 1426 1433 1427 1434 if ( Lev0 > 0 ) { 1428 1429 1435 McTrig->SetFirstLevel ( Lev1 = Trigger.FirstLevel() ) ; 1430 1436 } … … 1470 1476 // 2. start the gui tool 1471 1477 1472 if ( Lev1 > 0 ) { 1473 1474 // fadc.Scan( Trigger.GetFirstLevelTime(0) ) ; 1475 1476 #ifdef __INTERAKTIV__ 1478 #ifdef __MFADC_SCAN__ 1479 if ( Lev0 > 0 ) { 1480 cout << " huschel " << endl ; 1481 // fadc.Scan() ; 1482 1483 fadc.ShowSignal( McEvt, (Float_t) 60. ) ; 1484 } 1485 #endif 1486 1487 #ifdef __MTRIGGER_SCAN__ 1488 1489 if ( Lev0 > 0 ) { 1477 1490 Trigger.ShowSignal(McEvt) ; 1491 } 1478 1492 #endif 1479 } 1480 1493 1481 1494 1482 1495 … … 2602 2615 // 2603 2616 // $Log: not supported by cvs2svn $ 2617 // Revision 1.4 2000/03/20 08:25:17 harald 2618 // Some changes in the timecam.cxx to run with the updated functions of the 2619 // class MTrigger. 2620 // 2604 2621 // Revision 1.3 2000/02/16 12:50:12 harald 2605 2622 // At the meeting in Barcelona Dirk preseted an error in the pixelization
Note:
See TracChangeset
for help on using the changeset viewer.