Changeset 2361


Ignore:
Timestamp:
09/25/03 18:09:20 (21 years ago)
Author:
blanch
Message:
Bug on the number of phe from diffuse NSB fixed.
File:
1 edited

Legend:

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

    r2352 r2361  
    2121//
    2222// $RCSfile: camera.cxx,v $
    23 // $Revision: 1.60 $
     23// $Revision: 1.61 $
    2424// $Author: blanch $
    25 // $Date: 2003-09-23 16:50:55 $
     25// $Date: 2003-09-25 17:09:20 $
    2626//
    2727////////////////////////////////////////////////////////////////////////
     
    12931293      for(UInt_t ui=0;
    12941294          ui<((MGeomCam*)(camgeom.UncheckedAt(ict)))->GetNumPixels(); ui++){
    1295         diffnsb_phepns[ict][ui] = (Int_t(meanNSB*factorNSB_ct*100+0.5))/100.0 *
    1296           (*((MGeomCam*)(camgeom.UncheckedAt(ict))))[ui].GetD()*
     1295        const Float_t size=
    12971296          (*((MGeomCam*)(camgeom.UncheckedAt(ict))))[ui].GetD();
     1297        diffnsb_phepns[ict][ui] = (Int_t(meanNSB*factorNSB_ct*100*size*size+0.5))/(100.0*size*size) * size*size;
    12981298      }
    12991299    }
     
    13071307        zenfactor = pow(10., -0.4 * ext[j] );
    13081308       
    1309         for(UInt_t ui=0; ui<((MGeomCam*)(camgeom.UncheckedAt(0)))->GetNumPixels();ui++){
     1309        for(UInt_t ui=0; ui<((MGeomCam*)(camgeom.UncheckedAt(ict)))->GetNumPixels();ui++){
    13101310          nsb_phepns[ict][ui]+=diffnsb_phepns[ict][ui]/iNUMWAVEBANDS + zenfactor *nsbrate_phepns[ui][j];
    13111311          nsb_phepns_rotated[ict][ui]=nsb_phepns[ict][ui];
     
    16651665          for(int ict=0;ict<ct_Number;ict++){
    16661666           
    1667             for(UInt_t ui=0;ui<((MGeomCam*)(camgeom.UncheckedAt(ict)))->GetNumPixels();ui++)
     1667            for(UInt_t ui=0;ui<((MGeomCam*)(camgeom.UncheckedAt(ict)))->GetNumPixels();ui++){
    16681668              if(nsb_phepns_rotated[ict][ui]>0.0){
    16691669                if((*((MGeomCam*)(camgeom.UncheckedAt(ict))))[ui].GetD()>(*((MGeomCam*)(camgeom.UncheckedAt(ict))))[0].GetD()){
     
    16831683                Fadc_CT[ict]->AddSignal(ui,nsb_fadcresp);
    16841684              }
     1685            }
    16851686          }
    16861687       
     
    18671868                            i<((MGeomCam*)(camgeom.UncheckedAt(0)))
    18681869                              ->GetNumPixels();i++){
     1870                          if(!Fadc_CT[0]->IsPixelUsed(i)) continue;
    18691871                          for (j=0;j<FADC_SLICES;j++){
    18701872                            fadcValues->AddAt(Fadc_CT[0]->GetFadcSignal(i,j),j);
     
    21032105                      i<((MGeomCam*)(camgeom.UncheckedAt(ict)))->GetNumPixels();
    21042106                      i++){
     2107                    if(!Fadc_CT[ict]->IsPixelUsed(i)) continue;
    21052108                    for (j=0;j<FADC_SLICES;j++){
    21062109                      fadcValues->AddAt(Fadc_CT[ict]->GetFadcSignal(i,j),j);
     
    40434046//
    40444047// $Log: not supported by cvs2svn $
     4048// Revision 1.60  2003/09/23 16:50:55  blanch
     4049// WE do not read ct_file anymore since all Telescope information is
     4050// in the reflector or in MGeomCam.
     4051//
    40454052// Revision 1.58  2003/09/15 09:59:53  blanch
    40464053// The concept of the camera prgoram has not changed but this version has
Note: See TracChangeset for help on using the changeset viewer.