Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-04-09 07:48:46

0001 ##
0002 ## Copyright (c) 2019 Opticks Team. All Rights Reserved.
0003 ##
0004 ## This file is part of Opticks
0005 ## (see https://bitbucket.org/simoncblyth/opticks).
0006 ##
0007 ## Licensed under the Apache License, Version 2.0 (the "License"); 
0008 ## you may not use this file except in compliance with the License.  
0009 ## You may obtain a copy of the License at
0010 ##
0011 ##   http://www.apache.org/licenses/LICENSE-2.0
0012 ##
0013 ## Unless required by applicable law or agreed to in writing, software 
0014 ## distributed under the License is distributed on an "AS IS" BASIS, 
0015 ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  
0016 ## See the License for the specific language governing permissions and 
0017 ## limitations under the License.
0018 ##
0019 
0020 cfh-rel(){      echo ana ; }
0021 cfh-src(){      echo ana/cfh.bash ; }
0022 cfh-source(){   echo ${BASH_SOURCE:-$(opticks-home)/$(cfh-src)} ; }
0023 cfh-vi(){       vi $(cfh-source) ; }
0024 cfh-usage(){ cat << \EOU
0025 
0026 Random access to plot pages of qwn/irec AB comparison histos::
0027 
0028    cfh-;cfh "TO SC BT BT BT BT [SA]"
0029    cfh-;cfh "TO BT BT BT BT DR BT BT BT BT BT BT BT BT [SA]"
0030    cfh-;cfh "TO RE [BT] BT BT BT SA"
0031 
0032 Plotting histograms selected by chi2 and stats::
0033 
0034    cfh-;cfh-chi2sel    
0035 
0036 To change binning adjust evt.py binscale and run::
0037 
0038     tconcentric-;tconcentric-rehist
0039 
0040 Old way::
0041 
0042    cfh concentric/1/TO_BT_BT_BT_BT_SA/0/X
0043    cfh /tmp/blyth/opticks/CFH/concentric/1/TO_BT_BT_BT_BT_SA/0/X
0044 
0045    cfh-;cfh concentric/1/TO_BT_BT_BT_BT_SA/0/XYZT
0046 
0047    cfh-;cfh concentric/1/TO_SC_BT_BT_BT_BT_SA/6/XYZT
0048    cfh-;cfh --rehist concentric/1/TO_SC_BT_BT_BT_BT_SA/6/XYZT
0049 
0050 
0051 EOU
0052 }
0053 
0054 cfh(){ ipython -i $(which cfh.py) -- "$*" ; }
0055 
0056 cfh-chi2sel()
0057 {
0058     #ipython -i $(which cfh.py) -- --chi2sel --chi2selcut 1.2 --statcut 1000
0059     ipython -i $(which cfh.py) -- --chi2sel --chi2selcut 0.7 --statcut 5000
0060 }
0061 cfh-rehist()
0062 {
0063     ipython -i $(which cfh.py) -- --rehist "$*"
0064 }
0065 
0066 cfh-env(){
0067     olocal-
0068     opticks-
0069 }
0070