macro to make temp graph from root files produced by CaloTemp.#1286
macro to make temp graph from root files produced by CaloTemp.#1286asasikum wants to merge 1 commit intosPHENIX-Collaboration:masterfrom
Conversation
📝 WalkthroughWalkthroughA new ROOT macro computes per-run average HCAL temperatures from 2D temperature profiles. It processes a run list, filters bins within a specified temperature range, generates CSV output with run numbers and average temperatures, and produces ROOT histograms and TGraphs for visualization. Changes
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
For repository maintainers, please start the CI check manually (feedback)This is an automatic message to assist manually starting CI check for this pull request, commit d2414f1a8d18106f5f602c5de65633c8cfeb6fcc. sPHENIX software maintainers: please make your input here and start the Build: Note:
Automatically generated by sPHENIX Jenkins continuous integration |


This code creates a 1D distribution of temperature vs runnumber/runid by averaging the temperatures of the towers in the root file made by Calotemp macro.
how to run: root -l makeAvgTempVsRun.C
You have to edit the input file directory, file names of the input an output accordingly. This macro by default analyzes the case of inner hcal.
Pull Request Summary: Temperature vs Run Number Analysis Macro
Motivation & Context
This macro enables systematic analysis of HCAL temperatures across multiple runs by processing the 2D temperature profiles (TProfile2D) produced by the CaloTemp macro. It aggregates per-tower temperature data into per-run averages, facilitating detector performance monitoring and characterization of thermal conditions during data-taking periods.
Key Changes
makeAvgTempVsRun.C(116 lines)Potential Risk Areas
HCALIN_temp_<run>.root. Any changes to the CaloTemp macro's output naming will break this workflow.RECREATEmode, silently overwriting existing results without confirmation.Possible Future Improvements
Note: AI-generated code review summaries can contain errors. Please verify critical implementation details against the actual code and project requirements before merging.