Changeset 2362


Ignore:
Timestamp:
09/26/03 12:25:07 (21 years ago)
Author:
blanch
Message:
Modification to be able to read MGeomCam branch for any Geometry.
File:
1 edited

Legend:

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

    r2361 r2362  
    2121//
    2222// $RCSfile: camera.cxx,v $
    23 // $Revision: 1.61 $
     23// $Revision: 1.62 $
    2424// $Author: blanch $
    25 // $Date: 2003-09-25 17:09:20 $
     25// $Date: 2003-09-26 11:25:07 $
    2626//
    2727////////////////////////////////////////////////////////////////////////
     
    329329  char flag[SIZE_OF_FLAGS + 1];  //@< flags in the .rfl file
    330330  char flag_new[SIZE_OF_FLAGS + 1];              //@< New flag for the run header in the .rfl file
     331  char GeometryName[100][50];            //@< Name of MGeomCam for each CT
    331332  int GeometryCamera[100];           //@< Identification of MGeomCam for each CT
    332333  int TriggerPixels[100];           //@< Numeber of pixels in the trigger region for each CT
     
    539540    switch(GeometryCamera[i]){
    540541    case 1: camgeom[i]=new MGeomCamMagic;
     542      strcpy(GeometryName[i],"MGeomCamMagic");
    541543      TriggerPixels[i]=TRIGGER_PIXELS_1;
    542544      break;
    543545    case 2: camgeom[i]=new MGeomCamMagic919;
     546      strcpy(GeometryName[i],"MGeomCamMagic919");
    544547      TriggerPixels[i]=TRIGGER_PIXELS_2;
    545548      break;
    546549    case 3: camgeom[i]=new MGeomCamMagicHG;
     550      strcpy(GeometryName[i],"MGeomCamMagicHG");
    547551      TriggerPixels[i]=TRIGGER_PIXELS_3;
    548552      break;
    549553    case 5: camgeom[i]=new MGeomCamECO1000;
     554      strcpy(GeometryName[i],"MGeomCamECO1000");
    550555      TriggerPixels[i]=TRIGGER_PIXELS_5;
    551556      break;
    552557    case 6: camgeom[i]=new MGeomCamECO1000HG;
     558      strcpy(GeometryName[i],"MGeomCamECO1000HG");
    553559      TriggerPixels[i]=TRIGGER_PIXELS_6;
    554560      break;
    555561    case 8: camgeom[i]=new MGeomCamCT1;
     562      strcpy(GeometryName[i],"MGeomCamCT1");
    556563      TriggerPixels[i]=TRIGGER_PIXELS_8;
    557564      break;
    558565    case 9: camgeom[i]=new MGeomCamCT1Daniel;
     566      strcpy(GeometryName[i],"MGeomCamCT1Daniel");
    559567      TriggerPixels[i]=TRIGGER_PIXELS_9;
    560568      break;
     
    664672  for(Int_t ict=0;ict<ct_Number;ict++){
    665673
    666     log(SIGNATURE,"\t%s : %i\n\t%20s:\t%i\n",
     674    log(SIGNATURE,"\t%s : %i\n\t%20s:\t%s\n",
    667675        "------- TELESCOPE ",ict+1,
    668         "Geometry ", GeometryCamera[ict]);
     676        "Geometry ", GeometryName[ict]);
    669677    strcpy( qe_filename, get_qe_filename(ict));
    670678
     
    990998  }
    991999  if (ct_Number==1)
    992     HeaderTree.Branch("MGeomCam","MGeomCam",
     1000    HeaderTree.Branch("MGeomCam",GeometryName[0],
    9931001                      &camdummy[0]);
    9941002  else{
     
    9991007      strcat (branchname, & help[0]);
    10001008      strcat (branchname, ".");
    1001       HeaderTree.Branch(branchname,"MGeomCam",
     1009      HeaderTree.Branch(branchname,GeometryName[ict],
    10021010                        &camdummy[ict]);
    10031011    }
     
    40464054//
    40474055// $Log: not supported by cvs2svn $
     4056// Revision 1.61  2003/09/25 17:09:20  blanch
     4057// Bug on the number of phe from diffuse NSB fixed.
     4058//
    40484059// Revision 1.60  2003/09/23 16:50:55  blanch
    40494060// WE do not read ct_file anymore since all Telescope information is
Note: See TracChangeset for help on using the changeset viewer.