Changeset 1252 for trunk/MagicSoft
- Timestamp:
- 03/15/02 15:15:52 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Simulation/Detector/Camera/camera.cxx
r1239 r1252 21 21 // 22 22 // $RCSfile: camera.cxx,v $ 23 // $Revision: 1.3 4$23 // $Revision: 1.35 $ 24 24 // $Author: blanch $ 25 // $Date: 2002-03-1 3 18:13:56$25 // $Date: 2002-03-15 15:15:52 $ 26 26 // 27 27 //////////////////////////////////////////////////////////////////////// … … 248 248 249 249 //@: Trigger conditions for a single trigger mode 250 static float qThreshold[ TRIGGER_PIXELS];250 static float qThreshold[CAMERA_PIXELS]; 251 251 static int Trigger_multiplicity = 4; 252 252 static int Trigger_topology = 2; … … 449 449 Float_t nsb_fadcresp[(Int_t) SLICES_MFADC]; //@< array to write the fadc 450 450 //@< response from the database 451 Byte_t trigger_map[((Int_t)( TRIGGER_PIXELS/8))+1];//@< Pixels on when the451 Byte_t trigger_map[((Int_t)(CAMERA_PIXELS/8))+1]; //@< Pixels on when the 452 452 //@< camera triggers 453 453 Float_t fadc_elecnoise[CAMERA_PIXELS]; //@< Electronic niose for each pixel … … 480 480 UShort_t numPix; //@< number of sets of fadc written counts 481 481 482 float fpixelthres[ TRIGGER_PIXELS]; //@< Threshold values482 float fpixelthres[CAMERA_PIXELS]; //@< Threshold values 483 483 484 484 TArrayC *fadcValues; //@< the analog Fadc signal for pixels … … 780 780 // initialise instance of Trigger and FADC classes 781 781 782 MTrigger Trigger(Trigger_gate_length, Trigger_overlaping_time, 783 Trigger_response_ampl, Trigger_response_fwhm); //@< A instance of the Class MTrigger 782 MTrigger Trigger(Trigger_gate_length, 783 Trigger_overlaping_time, 784 Trigger_response_ampl, 785 Trigger_response_fwhm); //@< A instance of the Class MTrigger 786 787 // Set Right Discriminator threshold, taking into account trigger pixels 788 789 Trigger.CheckThreshold(&qThreshold[0]); 790 784 791 785 792 // Initialise McTrig information class if we want to save trigger informtion … … 955 962 HeaderTrig[iconcount]->SetTopology((Short_t) isorttopo[itopocount+Trigger_loop_ltop]); 956 963 HeaderTrig[iconcount]->SetMultiplicity((Short_t) imulticount+Trigger_loop_lmult); 957 for(int i=0;i< TRIGGER_PIXELS;i++){964 for(int i=0;i<CAMERA_PIXELS;i++){ 958 965 fpixelthres[i]= 959 966 ((Float_t)(fthrescount)>=qThreshold[i])? … … 1430 1437 int iconcount; 1431 1438 for (iconcount=0, ithrescount=0, fthrescount=Trigger_loop_lthres;fthrescount<=Trigger_loop_uthres;ithrescount++, fthrescount+=Trigger_loop_sthres){ 1432 for (i=0;i< TRIGGER_PIXELS;i++)1439 for (i=0;i<CAMERA_PIXELS;i++) 1433 1440 fpixelthres[i]= 1434 1441 ((Float_t)(fthrescount)>=qThreshold[i])? … … 1579 1586 Trigger.SetMultiplicity(Trigger_multiplicity); 1580 1587 Trigger.SetTopology(Trigger_topology); 1581 for (int i=0;i< TRIGGER_PIXELS;i++)1588 for (int i=0;i<CAMERA_PIXELS;i++) 1582 1589 fpixelthres[i]=qThreshold[i]; 1583 1590 Trigger.SetThreshold(fpixelthres); … … 3369 3376 // 3370 3377 // $Log: not supported by cvs2svn $ 3378 // Revision 1.34 2002/03/13 18:13:56 blanch 3379 // Some changes to fill correctly the new format of MMcRunHeader. 3380 // 3371 3381 // Revision 1.33 2002/03/04 17:21:48 blanch 3372 3382 // Small and not important changes. … … 3472 3482 // 3473 3483 // $Log: not supported by cvs2svn $ 3484 // Revision 1.34 2002/03/13 18:13:56 blanch 3485 // Some changes to fill correctly the new format of MMcRunHeader. 3486 // 3474 3487 // Revision 1.33 2002/03/04 17:21:48 blanch 3475 3488 // Small and not important changes.
Note:
See TracChangeset
for help on using the changeset viewer.