Skip to content

twongjirad/ratpac-kpipe

 
 

KPIPE RAT Fork

Simulation code for KPIPE.

Checking out

Dependencies

  • ROOT 5
  • Geant4 (checked things worked with geant4.6.p04)
  • scons

building

  • instructions in doc/installation.rst
  • make sure ROOT and geant4 environment variables set
  • ./configure
  • scons

important branches

  • develop: the head of the repo.
  • master: only tagged versions and hot-fixes get checked in here
  • dchooz_running_on_tier2: code to be run on tier 2 is here

Running

  • rat
  • /control/execute mac/kpipe.mac (will bring up and initialize geometry)

Adding a feature

  • git checkout develop
  • git checkout -b [username]_[featurename]
  • do something awesome
  • to put your code onto develop: git checkout develop; git merge [username]_[featurename]
  • delete the branch

Geometry

  • in data/kpipe/kpipe.geo
  • also have COLLADA format file for chroma: data/kpipe/kpipe.dae

alt tag

Optical Detector

  • Needed to add new type of Sensitive Detector class for optical detectors
  • RAT optical detectors too tied to PMTs
  • Created GLG4SimpleOpDetSD. No fancy physics. If opticalphoton hits it, then a hit gets made. (later we can maybe configure this.)
  • To add it, include opdet_lv_name in GEO RAT db table.
  • Also, in GDML give each physvol instance a name with a number. This number will be used to assign the opdet a channel number.
  • example:
[In GEO table]
{
name: "GEO",
valid_begin: [0, 0],
valid_end: [0, 0],
gdml_file: "kpipe.gdml",
opdet_lv_name: "volSiPM",
}

[in GDML file]
...
    <physvol name="OpDet1">
      <volumeref ref="volSiPM"/>
      <position name="posSiPM1" unit="cm" x="0" y="0" z="0"/>
    </physvol>
    <physvol name="OpDet2">
      <volumeref ref="volSiPM"/>
      <position name="posSiPM2" unit="cm" x="0" y="0" z="10"/>
    </physvol>
...

RAT (is an Analysis Tool), Public Edition


RAT is a simulation and analysis package built with GEANT4, ROOT, and C++, originally developed by S. Seibert for the Braidwood Collaboration. Versions of RAT are now being used and developed by several particle physics experiments.

RAT combines simulation and analysis into a single framework, which allows analysis code to trivially access the same detector geometry and physics parameters used in the detailed simulation.

RAT follows the "AMARA" principle: As Microphysical as Reasonably Achievable. Each and every photon is tracked through an arbitrarily detailed detector geometry, using standard GEANT4 or custom physics processes. PMTs are fully modeled, and detected photons may be propagated to a simulation of front-end electronics and DAQ.

This generic version is intended as a starting point for collaborations looking for an easy-to-learn, extensible detector simulation and analysis package that works out of the box. Once acquainted with RAT, it is easy to customize the geometry elements, physics details, data structure, analysis tools, etc., to suit your experiment's needs.

About

RAT-PAC (RAT-Plus Additional Codes), NuDot dev fork

Resources

License

Unknown and 4 other licenses found

Licenses found

Unknown
COPYING
LGPL-2.1
COPYING.cxxtest
Unknown
COPYING.jsoncpp
Unknown
COPYING.scons
BSD-3-Clause
COPYING.stlplus

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 51.2%
  • Python 47.6%
  • GLSL 0.4%
  • Perl 0.3%
  • Shell 0.2%
  • C 0.2%
  • Other 0.1%