Changeset 316 for trunk/MagicSoft


Ignore:
Timestamp:
11/10/99 07:42:41 (25 years ago)
Author:
harald
Message:
Small change to read the right data files in.
File:
1 edited

Legend:

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

    r308 r316  
    1919//=
    2020//= $RCSfile: camera.h,v $
    21 //= $Revision: 1.1.1.1 $
     21//= $Revision: 1.2 $
    2222//= $Author: harald $
    23 //= $Date: 1999-11-05 11:59:31 $
     23//= $Date: 1999-11-10 07:42:41 $
    2424//=
    2525//=//////////////////////////////////////////////////////////////////////
     
    236236//!@{
    237237
    238 #define QE_FILE     "qe.dat"
     238#define QE_FILE     "../Data/qe.dat"
    239239
    240240//!@}
     
    278278/*
    279279 *$Log: not supported by cvs2svn $
     280 *Revision 1.1.1.1  1999/11/05 11:59:31  harald
     281 *This the starting point for CVS controlled further developments of the
     282 *camera program. The program was originally written by Jose Carlos.
     283 *But here you can find a "rootified" version to the program. This means
     284 *that there is no hbook stuff in it now. Also the output of the
     285 *program changed to the MagicRawDataFormat.
     286 *
     287 *The "rootification" was done by Dirk Petry and Harald Kornmayer.
     288 *
     289 *In the following you can see the README file of that version:
     290 *
     291 *==================================================
     292 *
     293 *Fri Oct 22  1999   D.P.
     294 *
     295 *The MAGIC Monte Carlo System
     296 *
     297 *Camera Simulation Programme
     298 *---------------------------
     299 *
     300 *1) Description
     301 *
     302 *This version is the result of the fusion of H.K.'s
     303 *root_camera which is described below (section 2)
     304 *and another version by D.P. which had a few additional
     305 *useful features.
     306 *
     307 *The version compiles under Linux with ROOT 2.22 installed
     308 *(variable ROOTSYS has to be set).
     309 *
     310 *Compile as before simply using "make" in the root_camera
     311 *directory.
     312 *
     313 *All features of H.K.'s root_camera were retained.
     314 *
     315 *Additional features of this version are:
     316 *
     317 *  a) HBOOK is no longer used and all references are removed.
     318 *
     319 *  b) Instead of HBOOK, the user is given now the possibility of
     320 *     having Diagnostic data in ROOT format as a complement
     321 *     to the ROOT Raw data.
     322 *
     323 *     This data is written to the file which is determined by
     324 *     the new input parameter "diag_file" in the camera parameter
     325 *     file.
     326 *
     327 *     All source code file belonging to this part have filenames
     328 *     starting with "MDiag".
     329 *
     330 *     The user can read the output file using the following commands
     331 *     in an interactive ROOT session:
     332 *
     333 *              root [0] .L MDiag.so
     334 *      root [1] new TFile("diag.root");
     335 *      root [2] new TTreeViewer("T");
     336 *     
     337 *     This brings up a viewer from which all variables of the
     338 *     TTree can be accessed and histogrammed. This example
     339 *     assumes that you have named the file "diag.root", that
     340 *     you are using ROOT version 2.22 or later and that you have
     341 *     the shared object library "MDiag.so" which is produced
     342 *     by the Makefile along with the executable "camera".
     343 *       
     344 * !   The contents of the so-called diag file is not yet fixed.
     345 * !   At the moment it is what J.C.G. used to put into the HBOOK
     346 * !   ntuple. In future versions the moments calculation can be
     347 * !   removed and the parameter list be modified correspondingly.
     348 *
     349 *  c) Now concatenated reflector files can be read. This is useful
     350 *     if you have run the reflector with different parameters but
     351 *     you want to continue the analysis with all reflector data
     352 *     going into ONE ROOT outputfile.
     353 *
     354 *     The previous camera version contained a bug which made reading
     355 *     of two or more concatenated reflector files impossible.
     356 *
     357 *  d) The reflector output format was changed. It is now version
     358 *     0.4 .
     359 *     The change solely consists in a shortening of the flag
     360 *     definition in the file
     361 *
     362 *           include-MC/MCCphoton.hxx 
     363 *
     364 * !   IF YOU WANT TO READ REFLECTOR FORMAT 0.3, you can easily
     365 * !   do so by recompiling camera with the previous version of
     366 * !   include-MC/MCCphoton.hxx.
     367 *
     368 *     The change was necessary for saving space and better
     369 *     debugging. From now on, this format can be frozen.
     370 *
     371 * !   For producing reflector output in the new format, you
     372 * !   of course have to recompile your reflector with the
     373 * !   new include-MC/MCCphoton.hxx .
     374 *
     375 *  e) A first version of the pixelization with the larger
     376 *     outer pixels is implemented. THIS IS NOT YET FULLY
     377 *     TESTED, but first rough tests show that it works
     378 *     at least to a good approximation.
     379 *
     380 *     The present version implements the camera outline
     381 *     with 18 "gap-pixels" and 595 pixels in total as
     382 *     shown in
     383 *
     384 *        http://sarastro.ifae.es/internal/home/hardware/camera/numbering.ps
     385 *
     386 *     This change involved
     387 *
     388 *      (i) The file pixels.dat is no longer needed. Instead
     389 *          the coordinates are generated by the program itself
     390 *          (takes maybe 1 second). In the file
     391 *
     392 *              pixel-coords.txt
     393 *
     394 *        in the same directory as this README, you find a list
     395 *          of the coordinates generated by this new routine. It
     396 *          has the format
     397 *
     398 *              number   i   j   x  y  size-factor
     399 *
     400 *          where i and j are J.C.G.'s so called biaxis hexagonal
     401 *          coordinates (for internal use) and x and y are the
     402 *          coordinates of the pixel centers in the standard camera
     403 *          coordinate system in units of centimeters. The value
     404 *          of "size-factor" determines the linear size of the pixel
     405 *          relative to the central pixels.
     406 *
     407 *        (ii) The magic.def file has two additional parameters
     408 *          which give the number of central pixels and the
     409 *          number of gap pixels
     410 *
     411 *        (iii) In camera.h and camera.cxx several changes were
     412 *          necessary, among them the introduction of several
     413 *          new functions
     414 *
     415 *     The newly suggested outline with asymmetric Winston cones
     416 *     will be implemented in a later version.
     417 *
     418 *  f) phe files can no longer be read since this contradicts
     419 *     our philosophy that the analysis should be done with other
     420 *     programs like e.g. EVITA and not with "camera" itself.
     421 *     This possibility was removed.
     422 *
     423 *  g) ROOT is no longer invoked with an interactive interface.
     424 *     In this way, camera can better be run as a batch program and
     425 *     it uses less memory.
     426 *
     427 *  h) small changes concerning the variable "t_chan" were necessary in
     428 *     order to avoid segmentation faults: The variable is used as an
     429 *     index and it went sometimes outside the limits when camera
     430 *     was reading proton data. This is because the reflector files
     431 *     don't contain the photons in a chronological order and also
     432 *     the timespread can be considerably longer that the foreseen
     433 *     digitisation timespan. Please see the source code of camera.cxx
     434 *     round about line 1090.
     435 *
     436 *  j) several unused variables were removed, a few warning messages
     437 *     occur when you compile camera.cxx but these can be ignored at
     438 *     the moment.
     439 *
     440 *In general the program is of course not finished. It still needs
     441 *debugging, proper trigger simulation, simulation of the asymmetric
     442 *version of the outer pixels, proper NSB simulation, adaption of
     443 *the diag "ntuple" contents to our need and others small improvements.
     444 *
     445 *In the directory rfl-files there is now a file in reflector format 0.4
     446 *containing a single event produced by the starfiled adder. It has
     447 *a duration of 30 ns and represents the region around the Crab Nebula.
     448 *Using the enclosed input parameter file, camera should process this
     449 *file without problems.
     450 *
     451 *2) The README for the previous version of root_camera
     452 *
     453 *README for a preliminary version of the
     454 *root_camera program.
     455 *
     456 *root_camera is based on the program "camera"of Jose Carlos
     457 *Gonzalez. It was changed in the way that only the pixelisation
     458 *and the distibution of the phe to the FADCs works in a
     459 *first version.
     460 *
     461 *Using the #undef command most possibilities of the orignal
     462 *program are switched of.
     463 *
     464 *The new parts are signed by
     465 *
     466 *- ROOT or __ROOT__
     467 *  nearly all  important codelines for ROOT output are enclosed
     468 *  in structures like
     469 *  #ifdef __ROOT__
     470 * 
     471 *    code
     472 *
     473 *  #endif __ROOT__
     474 *
     475 *  In same case the new lines are signed by a comment with the word
     476 *  ROOT in it.
     477 *
     478 *  For timing of the pulse some variable names are changed.
     479 *  (t0, t1, t  -->  t_ini, t_fin, t_1st, t_chan,...)
     480 *  Look also for this changes.
     481 *
     482 *  For the new root-file is also a change in readparm-files
     483 *
     484 *
     485 *- __DETAIL_TRIGGER__
     486 *
     487 *  This is for the implementation of the current work on trigger
     488 *  studies. Because the class MTrigger is not well documented it
     489 *  isn´t a part of this tar file. Only a dummy File exists.
     490 *
     491 *
     492 *
     493 *With all files in the archive, the root_camera program should run.
     494 *
     495 *A reflector file is in the directory rfl-files
     496 *
     497 *==================================================
     498 *
     499 *From now on, use CVS for development!!!!
     500 *
     501 *
     502 *
    280503 *Revision 1.3  1999/10/22 15:32:56  petry
    281504 *tidied-up version, really sent to H.K. and N.M., 22-10-99
Note: See TracChangeset for help on using the changeset viewer.