Ignore:
Timestamp:
02/18/00 17:45:43 (25 years ago)
Author:
petry
Message:
This version belongs to camera.cxx 1.5.
It has been put in the repository in order to be
able to share the further development with others.

If you need something working, wait or take an earlier one.
See file README
File:
1 edited

Legend:

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

    r308 r367  
    1919//=
    2020//= $RCSfile: creadparam.cxx,v $
    21 //= $Revision: 1.1.1.1 $
    22 //= $Author: harald $
    23 //= $Date: 1999-11-05 11:59:34 $
     21//= $Revision: 1.2 $
     22//= $Author: petry $
     23//= $Date: 2000-02-18 17:45:43 $
    2424//=
    2525//=//////////////////////////////////////////////////////////////////////
     
    6969
    7070static char Input_filename[PATH_MAX_LENGTH];  //@< input filename
    71 static char Output_filename[PATH_MAX_LENGTH]; //@< output filename
     71static char Starfield_filename[PATH_MAX_LENGTH]; //@< starfield input filename
    7272static char Data_filename[PATH_MAX_LENGTH];   //@< data filename
    7373static char DIAG_filename[PATH_MAX_LENGTH];  //@< data filename
     
    180180      break;
    181181
    182     case output_file:         //@< name of the output file
     182    case starfield_file:         //@< name of the output file
    183183         
    184184      // get the name of the output_file from the line
    185       sscanf(line, "%s %s", token, Output_filename);
     185      sscanf(line, "%s %s", token, Starfield_filename);
    186186
    187187      break;
     
    398398
    399399//!-----------------------------------------------------------
    400 // @name get_output_filename
    401 //                                               
    402 // @desc get name of the output file
    403 //
    404 // @return   Name of the Output file
    405 //
    406 // @date Mon Sep 14 13:27:56 MET DST 1998
     400// @name get_starfield_filename
     401//                                               
     402// @desc get name of the starfield input file
     403//
     404// @return   Name of the starfield file
     405//
     406// @date Tue Feb 15 16:02:18 CET 2000
    407407//------------------------------------------------------------
    408408// @function
     
    410410//!@{
    411411char *
    412 get_output_filename(void)
    413 {
    414   return (Output_filename);
     412get_starfield_filename(void)
     413{
     414  return (Starfield_filename);
    415415}
    416416//!@}
     
    837837//
    838838// $Log: not supported by cvs2svn $
     839// Revision 1.1.1.1  1999/11/05 11:59:34  harald
     840// This the starting point for CVS controlled further developments of the
     841// camera program. The program was originally written by Jose Carlos.
     842// But here you can find a "rootified" version to the program. This means
     843// that there is no hbook stuff in it now. Also the output of the
     844// program changed to the MagicRawDataFormat.
     845//
     846// The "rootification" was done by Dirk Petry and Harald Kornmayer.
     847//
     848// In the following you can see the README file of that version:
     849//
     850// ==================================================
     851//
     852// Fri Oct 22  1999   D.P.
     853//
     854// The MAGIC Monte Carlo System
     855//
     856// Camera Simulation Programme
     857// ---------------------------
     858//
     859// 1) Description
     860//
     861// This version is the result of the fusion of H.K.'s
     862// root_camera which is described below (section 2)
     863// and another version by D.P. which had a few additional
     864// useful features.
     865//
     866// The version compiles under Linux with ROOT 2.22 installed
     867// (variable ROOTSYS has to be set).
     868//
     869// Compile as before simply using "make" in the root_camera
     870// directory.
     871//
     872// All features of H.K.'s root_camera were retained.
     873//
     874// Additional features of this version are:
     875//
     876//   a) HBOOK is no longer used and all references are removed.
     877//
     878//   b) Instead of HBOOK, the user is given now the possibility of
     879//      having Diagnostic data in ROOT format as a complement
     880//      to the ROOT Raw data.
     881//
     882//      This data is written to the file which is determined by
     883//      the new input parameter "diag_file" in the camera parameter
     884//      file.
     885//
     886//      All source code file belonging to this part have filenames
     887//      starting with "MDiag".
     888//
     889//      The user can read the output file using the following commands
     890//      in an interactive ROOT session:
     891//
     892//              root [0] .L MDiag.so
     893//      root [1] new TFile("diag.root");
     894//      root [2] new TTreeViewer("T");
     895//     
     896//      This brings up a viewer from which all variables of the
     897//      TTree can be accessed and histogrammed. This example
     898//      assumes that you have named the file "diag.root", that
     899//      you are using ROOT version 2.22 or later and that you have
     900//      the shared object library "MDiag.so" which is produced
     901//      by the Makefile along with the executable "camera".
     902//       
     903//  !   The contents of the so-called diag file is not yet fixed.
     904//  !   At the moment it is what J.C.G. used to put into the HBOOK
     905//  !   ntuple. In future versions the moments calculation can be
     906//  !   removed and the parameter list be modified correspondingly.
     907//
     908//   c) Now concatenated reflector files can be read. This is useful
     909//      if you have run the reflector with different parameters but
     910//      you want to continue the analysis with all reflector data
     911//      going into ONE ROOT outputfile.
     912//
     913//      The previous camera version contained a bug which made reading
     914//      of two or more concatenated reflector files impossible.
     915//
     916//   d) The reflector output format was changed. It is now version
     917//      0.4 .
     918//      The change solely consists in a shortening of the flag
     919//      definition in the file
     920//
     921//            include-MC/MCCphoton.hxx 
     922//
     923//  !   IF YOU WANT TO READ REFLECTOR FORMAT 0.3, you can easily
     924//  !   do so by recompiling camera with the previous version of
     925//  !   include-MC/MCCphoton.hxx.
     926//
     927//      The change was necessary for saving space and better
     928//      debugging. From now on, this format can be frozen.
     929//
     930//  !   For producing reflector output in the new format, you
     931//  !   of course have to recompile your reflector with the
     932//  !   new include-MC/MCCphoton.hxx .
     933//
     934//   e) A first version of the pixelization with the larger
     935//      outer pixels is implemented. THIS IS NOT YET FULLY
     936//      TESTED, but first rough tests show that it works
     937//      at least to a good approximation.
     938//
     939//      The present version implements the camera outline
     940//      with 18 "gap-pixels" and 595 pixels in total as
     941//      shown in
     942//
     943//         http://sarastro.ifae.es/internal/home/hardware/camera/numbering.ps
     944//
     945//      This change involved
     946//
     947//      (i) The file pixels.dat is no longer needed. Instead
     948//           the coordinates are generated by the program itself
     949//           (takes maybe 1 second). In the file
     950//
     951//              pixel-coords.txt
     952//
     953//        in the same directory as this README, you find a list
     954//           of the coordinates generated by this new routine. It
     955//           has the format
     956//
     957//               number   i   j   x  y  size-factor
     958//
     959//           where i and j are J.C.G.'s so called biaxis hexagonal
     960//           coordinates (for internal use) and x and y are the
     961//           coordinates of the pixel centers in the standard camera
     962//           coordinate system in units of centimeters. The value
     963//           of "size-factor" determines the linear size of the pixel
     964//           relative to the central pixels.
     965//
     966//         (ii) The magic.def file has two additional parameters
     967//           which give the number of central pixels and the
     968//           number of gap pixels
     969//
     970//         (iii) In camera.h and camera.cxx several changes were
     971//           necessary, among them the introduction of several
     972//           new functions
     973//
     974//      The newly suggested outline with asymmetric Winston cones
     975//      will be implemented in a later version.
     976//
     977//   f) phe files can no longer be read since this contradicts
     978//      our philosophy that the analysis should be done with other
     979//      programs like e.g. EVITA and not with "camera" itself.
     980//      This possibility was removed.
     981//
     982//   g) ROOT is no longer invoked with an interactive interface.
     983//      In this way, camera can better be run as a batch program and
     984//      it uses less memory.
     985//
     986//   h) small changes concerning the variable "t_chan" were necessary in
     987//      order to avoid segmentation faults: The variable is used as an
     988//      index and it went sometimes outside the limits when camera
     989//      was reading proton data. This is because the reflector files
     990//      don't contain the photons in a chronological order and also
     991//      the timespread can be considerably longer that the foreseen
     992//      digitisation timespan. Please see the source code of camera.cxx
     993//      round about line 1090.
     994//
     995//   j) several unused variables were removed, a few warning messages
     996//      occur when you compile camera.cxx but these can be ignored at
     997//      the moment.
     998//
     999// In general the program is of course not finished. It still needs
     1000// debugging, proper trigger simulation, simulation of the asymmetric
     1001// version of the outer pixels, proper NSB simulation, adaption of
     1002// the diag "ntuple" contents to our need and others small improvements.
     1003//
     1004// In the directory rfl-files there is now a file in reflector format 0.4
     1005// containing a single event produced by the starfiled adder. It has
     1006// a duration of 30 ns and represents the region around the Crab Nebula.
     1007// Using the enclosed input parameter file, camera should process this
     1008// file without problems.
     1009//
     1010// 2) The README for the previous version of root_camera
     1011//
     1012// README for a preliminary version of the
     1013// root_camera program.
     1014//
     1015// root_camera is based on the program "camera"of Jose Carlos
     1016// Gonzalez. It was changed in the way that only the pixelisation
     1017// and the distibution of the phe to the FADCs works in a
     1018// first version.
     1019//
     1020// Using the #undef command most possibilities of the orignal
     1021// program are switched of.
     1022//
     1023// The new parts are signed by
     1024//
     1025// - ROOT or __ROOT__
     1026//   nearly all  important codelines for ROOT output are enclosed
     1027//   in structures like
     1028//   #ifdef __ROOT__
     1029//   
     1030//     code
     1031//
     1032//   #endif __ROOT__
     1033//
     1034//   In same case the new lines are signed by a comment with the word
     1035//   ROOT in it.
     1036//
     1037//   For timing of the pulse some variable names are changed.
     1038//   (t0, t1, t  -->  t_ini, t_fin, t_1st, t_chan,...)
     1039//   Look also for this changes.
     1040//
     1041//   For the new root-file is also a change in readparm-files
     1042//
     1043//
     1044// - __DETAIL_TRIGGER__
     1045//
     1046//   This is for the implementation of the current work on trigger
     1047//   studies. Because the class MTrigger is not well documented it
     1048//   isn´t a part of this tar file. Only a dummy File exists.
     1049//
     1050//
     1051//
     1052// With all files in the archive, the root_camera program should run.
     1053//
     1054// A reflector file is in the directory rfl-files
     1055//
     1056// ==================================================
     1057//
     1058// From now on, use CVS for development!!!!
     1059//
     1060//
     1061//
    8391062// Revision 1.2  1999/10/22 15:01:28  petry
    8401063// version sent to H.K. and N.M. on Fri Oct 22 1999
Note: See TracChangeset for help on using the changeset viewer.