37 Commits

Author SHA1 Message Date
Thomas Prokscha
ae27621974 Updated comments in source code 2016-08-12 17:47:37 +02:00
Thomas Prokscha
ba04c8dc77 Added Landau energy loss distribution at carbon foil of LEM apparatus 2016-08-11 23:10:48 +02:00
nemu
3440daafcc Added cos(Theta) angular distribution 2014-10-21 15:41:31 +02:00
nemu
f60f4874d6 musrsim version which compiles/links with Geant4.10 2014-08-15 16:34:18 +02:00
nemu
b5072a3e20 Continued changes for geant4.10, still not yet finished 2014-08-14 17:31:31 +02:00
Thomas
040457f56e Begin to adapt for Geant4.10 2014-08-11 22:42:46 +02:00
6220698f22 9.5.2012 Kamil Sedlak
Several smaller improvements, should not have impact on the simulation.
2012-05-09 12:02:43 +00:00
a8c93b1b8c 28.11.2011 Kamil Sedlak
Added more odet_time_C1 times (not a big change)
2011-11-28 11:11:01 +00:00
455786e3fd 23.11.2011 Kamil Sedlak
Three major changes in the photon simulation:
1) Added timeC1 ... timeC20
2) Added odet_nPhotPrim[odet_n]  (number of primary photons)
3) Added all individual photons:  phot_time[nOptPhotDet]
Documentation has not been updated yet.
2011-11-23 15:35:49 +00:00
f93a3c070b 28.10.2011 Kamil Sedlak
1) musrSimAna significantly rewritten, but still needs to be checked.
2) changed way how some optical photon properties are simulated,
   + added cross-talk effects (if requested).
2011-10-28 14:04:11 +00:00
89c6f27ae1 14.10.2011 Kamil Sedlak
1) change in the way how random time scattering in APD is
   generated for optical photons - now the events should be
   reproducible irrespective of whether the random time is
   or is not requested.
2) indroducing a possibility to simulate optical photons, but
   not to process them - this option, however, does not seem
   to speed up the simulation significantly.
2011-10-14 08:11:54 +00:00
0c995ad9d8 28.9.2011 Kamil Sedlak
1) implemented a new command /gun/turtleMomentumScalingFactor in the musrSim
   (see the manual)
2) some small changes in the musrSimAna
2011-09-28 10:01:31 +00:00
0e5bdb63f9 31.8.2011 Kamil Sedlak
New geometry called "polycone" implemented in musrSim.
This required also an implementation of command
"/musr/command arrayDef arrayName N x1 x2 ... xN"
See the updated documentation musrSim.pdf.
2011-08-31 11:19:09 +00:00
99f7935da9 20.5.2011 Kamil Sedlak
1) Implementation of variables odet_timeSecond and odep_timeThird 
   (optical photons).  Documentatin updated accordingly.
2011-05-20 11:52:22 +00:00
cb18486947 6.5.2011 Kamil Sedlak
1) Adding/improving the simulation of light signals and APD
2) Many small changes and improvements
3) Adding manual to musrSimAna to the svn repository
4) Adding some example files for musrSim
2011-05-06 15:16:49 +00:00
9bc0d53074 29.3.2011 Kamil Sedlak
1) Small change in optical photon simulation
2) Some other small changes, probably not very important
2011-03-29 15:34:13 +00:00
2eb7e764d9 23.2.2010 Kamil Sedlak
1) changed treatment for the odet_timeCFD determination
  2) changed definition of odet_timeC and odet_timeD
  3) corrected bug in execution time calculation for randomOption 3
  4) corrected bug in eventID setting when randomOption=3
2011-02-23 15:22:19 +00:00
1ccd56485e 18.2.2011 Kamil Sedlak
1) Correction in rundom nr generator (option 3)
     - still there is a bug in the printing of time, for which the
       run is running (shown is a large negative number) - should be
       fixed.
  2) Change in physics list which allows to set rise time in the scintillators
2011-02-18 15:54:27 +00:00
c2025fea97 11.2.2011 Kamil Sedlak
1) correction of GNUmakefile - by mistake a musrSimTest was set there
   instead of musrSim
2) replacing odet_timeE variable by odet_timeMean
3) replacing one obsolete method from stepping action
   (Geant 4.9.4 was complaining) by a proper method
4) update of the first part of the documentation
5) implementing a possibility to write out output Root data
   into a different directory
6) perhaps some other minor changes
2011-02-11 16:45:24 +00:00
a5e99ed164 7.2.2011 Kamil Sedlak
1) Constant fraction discriminator added to the analysis of the 
     optical photon signal. 
  2) Bug fixes in the optical photon simulation.
  3) A few other small improvements.
2011-02-07 16:07:38 +00:00
eb3ed03c30 27.1.2011 Kamil Sedlak
A new class "musrStackingAction" added (was forgotten during the last commit)
2011-01-27 14:37:33 +00:00
7a8ea16943 27.1.2011 Kamil Sedlak
1) correction of volume that is assigned to optical photons
   (odet_ID) - now it is the volume from postStepPoint instead of
   preStepPoint
2) new variable added (nOptPhot) - number of optical photons
   generated in the event
2011-01-27 14:36:03 +00:00
4bfcc6aa29 21.1.2011 Kamil Sedlak
This version contains many changes!
1) Optical photon simulation is now possible - some work still may need to be done
   (e.g. the manual is not updated yet), but it should basically work already now.
2) Changes in the musrSimAna - correction of some bugs (mainly in the coincidence
    of coincidence and veto detectors) and some other improvements
2011-01-21 15:20:22 +00:00
651bc448f0 Implementation of initial beam direction command. For now works only for +-z direction. 2011-01-03 13:41:37 +00:00
1fe6cd7a2f 25.3.2010 Kamil Sedlak
musrRootOutput - removed "_t" from most of the variable names
2010-03-25 14:53:11 +00:00
d308d597bd 24.3.2010 Kamil Sedlak
New variable "timeToNextEvent" added in order to simulate time differences between subsequent events.
	1)  /gun/meanarrivaltime meanArrivalTime (defines the mean time difference betweent 
                                                  the subsequent events).
        2)  timeToNextEvent - new variable written out to the root tree.

   This new variable is needed for the pile-up studies
2010-03-24 16:21:08 +00:00
a71842dd81 9.3.2010 Kamil Sedlak
Changes needed by Pavel Bakule for low energy moun beem excited by laser.
  (The user can restrict a box-like region for the generated particles (muons)).
2010-03-09 16:49:53 +00:00
610abf6591 4.3.2010 - Kamil Sedlak
1) UPGRADE TO GEANT 4.9.3
      - Physics list had been modified
      - List of the physics processes in *.mac has to be modified too!
        (otherwise results of 4.9.3 do not reproduce well the results
         of 4.9.2).
        Example *.mac files still use the old implementation of the physics
        processes, i.e. they have to be corrected in future!

   2) POSSIBILITY TO WRITE OUT DERIVATIVES OF THE MAGNETIC FIELD 
      AT A GIVEN POINT (see the documentation,
      "/musr/command globalfield printFieldDerivativeAtPoint".)
2010-03-04 12:52:07 +00:00
701f17857f 23.2.2010 Kamil Sedlak
Several things were added in this version:
  1) varibale save_time() has been added to the root output tree
  2) possibility to read in field maps, in which varibles x,y,z
     increase differently than previously expected
     (see the description of "variableIncreasingOrder" in the
      "3DEOpera" paragraph of the documentation).
  3) Added "3DEOpera" format of the fieldmap
  4) Added file G4EqEMFieldWithSpin.cc_for_Geant4.9.2p02_only  that
     should be used only in the Geant version 4.9.2p02 (there was
     a bug in this file, which is not present for any other version of Geant4) 
  5) Examples 101.mac and 102.mac added, but its description has not
     been completed yet in the musrSim.pdf.
2010-02-23 13:24:53 +00:00
2f8ac8f904 13.1.2010 Kamil Sedlak
1) The filling of the root tree was called from musrScintSD.cc, which was
   problematic, because no variables were written out if there was no
   sensitive volume defined (problem for example when one wants to study
   the beam-line properties using just save volumes).
   Therefore the tree filling is now called from musrEventAction.cc.

2) A possibility to gently stop the run by creating a file with the
   name "RUNNUMBER.stop" in the working directory has been introduced.
   ("Gently" means that root output file is closed properly.)
2010-01-13 16:50:57 +00:00
c84f6a43b3 3.12.2009 Kamil Sedlak
The reading of the field map files in the 3D Opera file format has been extended:
  1) The lenght unit can also be specified in cm instead of in meters only.
  2) Only one octant (in Kartesian coordinate system) of the field map can be
	specified, and the field can be extrapolated to other octants (this
	depends on the symmetry of the field).
  3) First line of the field map does not have to be empty (but it can be).
  4) Documentation has been modified accordingly.
2009-12-03 09:52:09 +00:00
b5594b4513 11.20.2009. - Kamil Sedlak
This svn update includes several smaller corrections and updates accumulated
over last few months:
1) For the Geant4.9.2 it was necessary to remove the privately modified file
   src/G4EqEMFieldWithSpin.cc.  Our corrections in this file (and also in
   the file src/G4DecayWithSpin.cc) were adopted by the Geant developers into
   the official Geant code, and therefore these two files were deleted.
   However, if one uses older version of Geant (i.e. Geant4.9.1 or older),
   one should rename the G4EqEMFieldWithSpin.cc_for_Geant4.9.1_and_older in
   his/her src directory to G4EqEMFieldWithSpin.cc to correct for a Geant
   bug.
2) Implementation of save_polx, save_poly and save_polz variables
3) Implementation of the field map normalisation within the field map
   itself (was already possible for the field-map formats generated by Toni,
   now it is extended also for the field maps generated by OPERA).
4) Possibility to swap and invert x and y axis read out from the TURTLE
   file.
5) Perhaps some other tiny changes
2009-11-20 10:29:02 +00:00
d05e77dbe5 23.6.2009 - Kamil Sedlak
The implementation of "muIniTime" has been finalised (i.e. the time,
   when the initial muons are generated).  This variable is now stored
   in the root tree.  The documentation of the musrSim has been updated 
   accordingly.  Simple test of the upgraded program was done, 
   the implementation seems to be OK.
2009-06-23 12:50:35 +00:00
464ce6f895 2009-06-22 Kamil Sedlak
- introduced modifications done by Pavel Bakule at ISIS:
       a)  the time when the initial muon is generated can be
           set according to a gaussian or flat distribution.
           (all muons were generated at time 0 before this change).
       b)  a new volume "cylpart" has been added.
   The code can be compiled, but no tests of the newly implemented
   features have been done.  In future, the information about the
   time of the muon generation should be added to the root output
   tree.
2009-06-22 16:39:50 +00:00
b70e4ddbc7 Kamil Sedlak 2009-06-05
Added possibility to use mu- (or other particles) as the primary particles
  in the G4ParticleGun  (this option can be switched on by 
  /gun/primaryparticle ).
2009-06-05 13:08:02 +00:00
1e050e6976 2008-05-26 Kamil Sedlak
- a copyright information added to all relevant *.cc and *.hh files
   - the file "COPYING" added to the main directory of the musrSim
2009-05-26 09:49:42 +00:00
fcd5eea567 Kamil Sedlak 2009-05-18
This is the first version of the muSR simulation code (musrSim)
based on the merged codes of Kamil Sedlak and Toni Shiroka.
It should be a running version of the simulation code, however 
it has not been very well tested, therefore it will probably
need some further development.
2009-05-18 09:59:52 +00:00