Changeset 1311 for trunk/MagicSoft


Ignore:
Timestamp:
04/27/02 11:48:39 (23 years ago)
Author:
blanch
Message:
Some unused varibles have been removed.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Simulation/Detector/Camera/camera.cxx

    r1260 r1311  
    2121//
    2222// $RCSfile: camera.cxx,v $
    23 // $Revision: 1.38 $
     23// $Revision: 1.39 $
    2424// $Author: blanch $
    25 // $Date: 2002-03-18 18:44:29 $
     25// $Date: 2002-04-27 10:48:39 $
    2626//
    2727////////////////////////////////////////////////////////////////////////
     
    170170static float ct_PixelWidth_corner_2_corner;
    171171
    172 //@: ct_PixelWidth_corner_2_corner / 2
    173 static float ct_PixelWidth_corner_2_corner_half;
    174 
    175172//@: Number of mirrors
    176173static int ct_NMirrors = 0;   
     
    184181//@: Number of pixels
    185182static int ct_NGapPixels;       
    186 
    187 //@: ct_Apot = ct_PixelWidth / 2
    188 static float ct_Apot;         
    189 
    190 //@: ct_2Apot = 2 * ct_Apot = ct_PixelWidth
    191 static float ct_2Apot;         
    192183
    193184//@: name of the CT definition file to use
     
    421412  float thetaCT, phiCT;       //@< parameters of a given shower
    422413  float thetashw, phishw;     //@< parameters of a given shower
    423   float coreD, coreX, coreY;         //@< core position
     414  float coreX, coreY;         //@< core position
    424415  float impactD;              //@< impact parameter
    425416  float l1, m1, n1;           //@< auxiliary variables
     
    464455
    465456  float qTailCut;             //@< Tail Cut value
    466   int nIslandsCut;            //@< Islands Cut value
    467   int countIslands=FALSE;           //@< Will we count the islands?
    468457  int anaPixels;
    469458   
     
    478467  int isorttopo[3];           //@< sorting the topologies
    479468  int icontrigger;            //@< number of trigger conditions to be analised
    480   UShort_t numPix;            //@< number of sets of fadc written counts
    481469
    482470  float fpixelthres[CAMERA_PIXELS];         //@< Threshold values
     
    484472  TArrayC *fadcValues;  //@< the analog Fadc signal for pixels
    485473
    486   float plateScale_cm2deg;    //@< plate scale (deg/cm)
    487474  float degTriggerZone;       //@< trigger area in the camera (radius, in deg.)
    488475
     
    631618  addElecNoise = add_elec_noise(&FADC_noise, &Trigger_noise);
    632619  simulateNSB = get_nsb( &meanNSB, &nphe2NSB ); 
    633   countIslands = get_islands_cut( &nIslandsCut );
    634620
    635621  // get selections on the parameters
     
    765751  read_pixels(&cam);
    766752
    767   Int_t Lev0, Lev1, Lev2 ;
     753  Int_t Lev0, Lev1;
    768754 
    769755  fadcValues =  new TArrayC(FADC_SLICES);
     
    10901076  }
    10911077 
    1092   // set plate scale (deg/cm) and trigger area (deg)
    1093 
    1094   plateScale_cm2deg = ( ct_Type == 0 ) ? (0.244/2.1) : 0.030952381;
     1078  // set trigger area (deg)
    10951079
    10961080  if ( ! get_trigger_radius( &degTriggerZone ) )
     
    12341218        fread( (char*)&mcevth, mcevth.mysize(), 1, inputfile );
    12351219
    1236         // calculate core distance and impact parameter
    1237        
    1238         coreD = mcevth.get_core(&coreX, &coreY);
    1239                
    12401220        // calculate impact parameter (shortest distance betwee the original
    12411221        // trajectory of the primary (assumed shower-axis) and the
     
    12861266          // therefore, we calculate the impact parameter as the distance
    12871267          // between the CT axis and the core position
    1288          
     1268
     1269          mcevth.get_core(&coreX, &coreY);
     1270               
    12891271          impactD = dist_r_P( 0., 0., 0., l1, m1, n1, coreX, coreY, 0. );
    12901272         
     
    14561438           
    14571439            //  Set trigger flags to zero
    1458             Lev1=Lev2=0;
     1440            Lev1=0;
    14591441
    14601442            //  loop over multiplicity of trigger configuration
     
    14681450                //  loop over topologies
    14691451                for(itopocount=Trigger_loop_ltop;itopocount<=Trigger_loop_utop;itopocount++){
    1470                   Lev1=Lev2=0;
     1452                  Lev1=0;
    14711453               
    14721454                  if(itopocount==0 && imulticount>7) continue;
     
    15001482                    Lev0=0;
    15011483                  }
    1502                   numPix=0;
     1484
    15031485                  for (Int_t ii=0;ii<Lev1;ii++){
    15041486                      if (Write_McTrig){
     
    16051587          Lev0 = (Short_t) Trigger.ZeroLevel() ;
    16061588         
    1607           Lev1 = Lev2 = 0 ;
     1589          Lev1 = 0 ;
    16081590         
    16091591          //
     
    16231605          }
    16241606
    1625           numPix=0;
    16261607          for(Int_t ii=0;ii<Lev1;ii++){
    16271608            //  Loop over different level one triggers
     
    22192200
    22202201      ct_PixelWidth_corner_2_corner = ct_PixelWidth / cos(RAD(30.0));
    2221       ct_PixelWidth_corner_2_corner_half =
    2222         ct_PixelWidth_corner_2_corner * 0.50;
    2223       ct_Apot = ct_PixelWidth / 2;
    2224       ct_2Apot = ct_Apot * 2.0;
    22252202
    22262203      log( "read_ct_file", "Pixel width: %f cm\n", ct_PixelWidth );
     
    25162493  double dxfirst_pix;
    25172494  double dyfirst_pix;
    2518   double ddxseg1, ddxseg2, ddxseg3, ddxseg4, ddxseg5, ddxseg6;
    2519   double ddyseg1, ddyseg2, ddyseg3, ddyseg4, ddyseg5, ddyseg6;
     2495  double ddxseg1, ddxseg2, ddxseg3, ddxseg4, ddxseg5;
     2496  double ddyseg1, ddyseg2, ddyseg3, ddyseg4, ddyseg5;
    25202497 
    25212498
     
    25972574    ddxseg5 = -ddxseg2;
    25982575    ddyseg5 = 0.;
    2599     ddxseg6 = -ddxseg1;
    2600     ddyseg6 = ddyseg1;
    26012576   
    26022577    /* to find the position of pixel ipixno take the position of the first pixel in the ring and move */
     
    33783353//
    33793354// $Log: not supported by cvs2svn $
     3355// Revision 1.38  2002/03/18 18:44:29  blanch
     3356// Small modificatin to set the electronic Noise in the MMcTrigHeader class.
     3357//
    33803358// Revision 1.37  2002/03/18 16:42:20  blanch
    33813359// The data member fProductionSite of the MMcRunHeader has been set to 0,
     
    34913469//
    34923470// $Log: not supported by cvs2svn $
     3471// Revision 1.38  2002/03/18 18:44:29  blanch
     3472// Small modificatin to set the electronic Noise in the MMcTrigHeader class.
     3473//
    34933474// Revision 1.37  2002/03/18 16:42:20  blanch
    34943475// The data member fProductionSite of the MMcRunHeader has been set to 0,
Note: See TracChangeset for help on using the changeset viewer.