Changeset 2361 for trunk/MagicSoft/Simulation/Detector/Camera
- Timestamp:
- 09/25/03 18:09:20 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Simulation/Detector/Camera/camera.cxx
r2352 r2361 21 21 // 22 22 // $RCSfile: camera.cxx,v $ 23 // $Revision: 1.6 0$23 // $Revision: 1.61 $ 24 24 // $Author: blanch $ 25 // $Date: 2003-09-2 3 16:50:55$25 // $Date: 2003-09-25 17:09:20 $ 26 26 // 27 27 //////////////////////////////////////////////////////////////////////// … … 1293 1293 for(UInt_t ui=0; 1294 1294 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= 1297 1296 (*((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; 1298 1298 } 1299 1299 } … … 1307 1307 zenfactor = pow(10., -0.4 * ext[j] ); 1308 1308 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++){ 1310 1310 nsb_phepns[ict][ui]+=diffnsb_phepns[ict][ui]/iNUMWAVEBANDS + zenfactor *nsbrate_phepns[ui][j]; 1311 1311 nsb_phepns_rotated[ict][ui]=nsb_phepns[ict][ui]; … … 1665 1665 for(int ict=0;ict<ct_Number;ict++){ 1666 1666 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++){ 1668 1668 if(nsb_phepns_rotated[ict][ui]>0.0){ 1669 1669 if((*((MGeomCam*)(camgeom.UncheckedAt(ict))))[ui].GetD()>(*((MGeomCam*)(camgeom.UncheckedAt(ict))))[0].GetD()){ … … 1683 1683 Fadc_CT[ict]->AddSignal(ui,nsb_fadcresp); 1684 1684 } 1685 } 1685 1686 } 1686 1687 … … 1867 1868 i<((MGeomCam*)(camgeom.UncheckedAt(0))) 1868 1869 ->GetNumPixels();i++){ 1870 if(!Fadc_CT[0]->IsPixelUsed(i)) continue; 1869 1871 for (j=0;j<FADC_SLICES;j++){ 1870 1872 fadcValues->AddAt(Fadc_CT[0]->GetFadcSignal(i,j),j); … … 2103 2105 i<((MGeomCam*)(camgeom.UncheckedAt(ict)))->GetNumPixels(); 2104 2106 i++){ 2107 if(!Fadc_CT[ict]->IsPixelUsed(i)) continue; 2105 2108 for (j=0;j<FADC_SLICES;j++){ 2106 2109 fadcValues->AddAt(Fadc_CT[ict]->GetFadcSignal(i,j),j); … … 4043 4046 // 4044 4047 // $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 // 4045 4052 // Revision 1.58 2003/09/15 09:59:53 blanch 4046 4053 // The concept of the camera prgoram has not changed but this version has
Note:
See TracChangeset
for help on using the changeset viewer.