Back to home page

sPhenix code displayed by LXR

 
 

    


Warning, /macros/calibrations/calo/tower_slope_macro/README.md is written in an unsupported language. File is not indexed.

0001 Various macros and files for running tower slope modules in various situations:
0002 
0003 macros/correction files for running tower slope method on MDC2 files, 
0004 OR using various decalibration/calibration updates to the sim and reco frameworks in coresoftware, 
0005 including the database accessor wrapper class for accessing calibrations "conditions DB"  files.
0006 
0007 Macro/script for running over MDC2 Hits files (Production 4 only) 
0008 -------------------------------------------
0009 run_calo_fromMDC2Hits_towslope_Fun4All_G4_Calo.C
0010 do_run_calo_fromMd2Hits_towslope.csh
0011 
0012 Notes: does not need filelist input (e.g. from CreateFileList.pl), see comments inside, takes single 
0013 integer input, assuming filenames of Production 4 MDC2 Hits files.  For other production
0014 runs beginning of macro/filename parsing part my need up dated. Note that per usual MDC2 
0015 and presumably all sphenix default production/sim file access, only the filename is specified
0016 and lustre system/dcache finds the file and decides/provides appropriate "full path" access method.
0017 Valid filenames can be obtained from CreateFileLists.pl
0018 This macro does not need any other files found in this folder to run,
0019 but can be run in with others present to modify behavior.
0020 Runs all three slope method modules one for each calorimeter 
0021 system in central barrel (Emc & Hcal's both)
0022 
0023 
0024 Alternative G4_Setup / "common" macros for
0025 Applying Decal/Cal through Simple Calo calibration
0026 Databse File API's : 
0027 -------------------------------------------
0028 G4_CEmc_Spacal.C
0029 G4_HcalIn_ref.C  
0030 G4_HcalOut_ref.C
0031 
0032 Notes: place any or all of these in running directory to override those in 
0033 $OFFLINE_MAIN/root_macros (originally from sphenix "macros" repository, common/
0034 In order to specify calibrations and decalibrations using RawTowerCalibration/RawTowerDigitizer
0035 as described in Calo Calibrations meetings Jan-March 2022
0036 See comments especially many detailed comments in G4_CEmc_Spacal.C
0037 about how to do this.  Files needed in most cases can be found below:
0038 
0039                        
0040 Example Simple Database Files for Decal/Cal : 
0041 -------------------------------------------
0042 HCALIN_GainsCalib1.12_PosEtaOnly_NegEta1.0.txt 
0043 HCALIN_GainsCalib1.22.txt                        
0044 HCALOUT_GainsCalib1.22.txt
0045 HCALOUT_GainsCalib1.12_PosEtaOnly_NegEta1.0.txt
0046 emc_corr_files/*root *.C
0047 
0048 Notes: see inside G4_Setup macros in previous section.
0049 The last emc_corr_files/ subdirectory also contains macros 
0050 (for Emc which uses a root file format as opposed to Hcal 
0051 which uses a text file format) for generating new decal or calibration 
0052 correction patterns for testing
0053 
0054 Macros for doing the actual fitting step 
0055 ----------------------
0056 do_eta_fit.C
0057 do_eta_fit2.C                            
0058 
0059 The fitting step (timeslice1 --> timeslice 2 --see above)
0060 should generally be after merging of tower energy distribution 
0061 histogram files (the output of the tower slope module over the 
0062 mdc2/production data files).  The last function called in the 
0063 macro LiteCaloEval::Fit_RelativeShift outputs the
0064 correction which can be read as input in place of the "Example
0065 Simple Database" files above.  For CEMC, this is output 
0066 into the root file output containing all the other root
0067 output (various graphs, etc.) into a tree with in that file 
0068 with the correct name ("emc_corr_tree").  For the Hcals,
0069 for which the correction files should be simple text file 
0070 formats, the correction text file is outputted to:
0071 [output_root_filename].HCAL[IN|OUT]_CORR_TXTFILE.txt as 
0072 an additional output file besides the usual output_root_file.
0073 
0074 
0075 Older/out of date: (from mdc1 running)
0076 ----------------------
0077 Fun4All_G4_SlopeCal.C                           
0078 run_f4a.csh
0079 
0080 
0081                                 do_run_calo_fromMd2Hits_towslope.csh
0082 
0083                                  
0084