Changeset 19801


Ignore:
Timestamp:
10/26/19 21:15:52 (5 years ago)
Author:
tbretz
Message:
Added example for adding core position (from MC truth) and fixed exit codes.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/hawc/runranger.sh

    r19800 r19801  
    66TRAINRATIO=0.7
    77
     8# Classical reconstruction parameters
    89TRUEVAR="log10(Energy)"
    910#TRUEVAR="Phi*TMath::RadToDeg()"
     
    1112#TRUEVAR="MeanX*conv"
    1213#TRUEVAR="MeanY*conv"
     14
     15# Impact on ground
     16#TRUEVAR="TMath::Hypot(X,Y)"
     17#TRUEVAR="atan2(X,Y)*TMath::RadToDeg()"
    1318
    1419echo --------------------------------- Creating input files -------------------------
     
    2126auto-alias=MNewImagePar.f/
    2227auto-alias=MMcEvt.MMcEvtBasic.f/
     28auto-alias=MCorsikaEvtHeader.f/
    2329
    2430# Some cuts to remove events with strange contents
     
    6066TimeSpreadWeighted = TimeSpreadWeighted
    6167SlopeSpredWeighted = SlopeSpreadWeighted
     68
     69# Be careful, this is true MC information
     70#GroundR   = TMath::Hypot(X,Y)
     71#GroundPhi = atan2(Y,X)
     72#GroundX   = X
     73#GroundYY  = Y
    6274EOF
    6375
     
    7082
    7183if [ $? != 0 ]; then
    72   exit
     84  exit 1
    7385fi
    7486
     
    97109${NICE} ${CSV2ROOT} ${TEST} ${OUT}.root --force
    98110if [ $? != 0 ]; then
    99   exit
     111  exit 1
    100112fi
    101113
    102114${NICE} ${CSV2ROOT} ${OUT}.prediction ${OUT}.root --update
    103115if [ $? != 0 ]; then
    104   exit
     116  exit 1
    105117fi
     118
Note: See TracChangeset for help on using the changeset viewer.