Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
120 commits
Select commit Hold shift + click to select a range
d04ff87
reduce LogError noise when using (E)EoR3 CPE conditions
ferencek Jun 6, 2025
a52259d
Add cluster position histograms for 2S modules
ljuckett Nov 25, 2025
b99c525
Code format
ljuckett Nov 25, 2025
81f0b98
Add Delta Phi summary histos for OT Clusters
ljuckett Dec 3, 2025
b6ccd89
RelVal: Add OT RecHit delta phi summary histograms
ljuckett Dec 4, 2025
92f046d
Add relval IT cluster delta phi summary histograms
ljuckett Dec 8, 2025
86fa5c5
Add IT Rechit delta phi histograms
ljuckett Dec 9, 2025
7c1112d
GNN Track-Tracksters Linking
Moanwar Dec 16, 2025
e2f24e0
auto detect first vertex with Higgs in children list
yihui-lai Dec 11, 2025
d9b6b73
code format
Moanwar Dec 17, 2025
20e27a6
Add workflow .7521 for HLT checks in the ph2_hlt matrix
Moanwar Dec 18, 2025
99236ee
Use TICLGraph for GNN linking
Moanwar Dec 18, 2025
6ddbf85
adding wf .7521 to the ph2_hlt matrix
Moanwar Dec 18, 2025
e93f1ab
Remove hardcoded values and add iterator to calculate total module/la…
ljuckett Dec 18, 2025
777302a
fix the indentation
Moanwar Dec 18, 2025
735e8c8
Improve readability of module-counter
ljuckett Dec 19, 2025
6c7a0d0
Update HF FG thresholds for 2025 PbPb
Dec 19, 2025
d99a3f5
Remove obsolete CUDA-using modules from DQM/SiPixelHeterogeneous
makortel Dec 22, 2025
facae86
added track path length resolution plots in tracksvalidation
Tizianop6 Dec 24, 2025
73e9bfe
fix uninitialized member data identified by valgrind
Dec 24, 2025
83609ad
Merge branch 'cms-sw:master' into valgrind-uninit-xmas
dan131riley Dec 25, 2025
2fa97e9
btvNano: add abort condition for genParticle mother search
mseidel42 Dec 27, 2025
57e5b49
Avoid adding TF2 and TF3 to global list of functions
makortel Dec 29, 2025
6026db4
List PortableTestHost{Collection,Object} nested type aliases before t…
makortel Aug 29, 2025
f9a023d
Additional info when tests fail in DQMOffline/Configuration
Dr15Jones Dec 29, 2025
69ddd79
Add class version and checksum for TestStruct
makortel Dec 30, 2025
7e8047f
Include the necessity of dictionaries for the nested type alias in RE…
makortel Dec 29, 2025
5bebe3b
Define dictionaries of nested type aliases of Portable* before their …
makortel Dec 29, 2025
d001897
Mark LST collections transient
makortel Dec 30, 2025
c8746be
add time info to Run3ScoutingHBHERecHit and update HLTScoutingRecHitP…
patinkaew Jan 3, 2026
afa4db5
Removed use of deprecated std::aligned_storage
Dr15Jones Dec 30, 2025
127cf63
Use std::byte for storage type in edm::SoATuple
Dr15Jones Jan 5, 2026
9c23299
Use std::assume_aligned instead of compiler specific function
Dr15Jones Jan 5, 2026
40423ca
btvNano: move mother check into while condition
mseidel42 Jan 5, 2026
7bd5d3a
Must call explicit alignment form of delete
Dr15Jones Jan 5, 2026
4cfde9a
Modernized SoATupleHelper
Dr15Jones Jan 5, 2026
27c48aa
Extend the tests for finding errors in iD->position and viceversa for…
Jan 6, 2026
161b906
Code check
Jan 6, 2026
bd2a1e4
Miscellaneous fixes to SiStripApproximateCluster_v1
mmusich Jan 6, 2026
cdb1817
deprecate old geometries in Configuration/Geometry
kpedro88 Jan 6, 2026
cea9176
remove workflows for deprecated geometries
kpedro88 Jan 6, 2026
b3a46fd
fix an old default
kpedro88 Jan 6, 2026
705c472
refactor: conditionally apply `CMS_UNROLL_LOOP` based on `ALPAKA_ACC_…
akritkbehera Jan 6, 2026
bfb6d29
Implement comments in 49436 and add HLT customisation function.
chrishanw Jan 6, 2026
9f2c67c
update the modifier name
Moanwar Jan 6, 2026
4eb084f
switched to explicit operator new
Dr15Jones Jan 6, 2026
93eb546
Dataformats for heterogeneous strip clusterizer
pietroGru Jul 24, 2025
5f47610
rename dxy(z)Error to dxy(z)Sig as their are significances and not ab…
silviodonato Jan 7, 2026
6c913f7
update comments on TDC window parameters for clarity
martinamalberti Jan 7, 2026
9475099
lambda function for pl res computation and constexpr def
Tizianop6 Jan 7, 2026
1560b0a
update default version of Run3ScoutingHBHERecHit to 4
patinkaew Jan 7, 2026
ff0efa6
Align histogram names
ljuckett Jan 7, 2026
0177a49
Improve x ranges
ljuckett Jan 7, 2026
ad706af
Remove unused flag from standalone LST
VourMa Jan 7, 2026
3c6b611
Merge pull request #49710 from Dr15Jones/failInfoDQMTests
cmsbuild Jan 7, 2026
0b91485
Merge pull request #49730 from chrishanw/comments-from-PR49436
cmsbuild Jan 7, 2026
3785d43
Merge pull request #49708 from makortel/tf23NoAddToList
cmsbuild Jan 7, 2026
5cf58d3
Merge pull request #49712 from Dr15Jones/deprecate_aligned_storage
cmsbuild Jan 7, 2026
2476b25
Merge pull request #49482 from ljuckett/DQM_cluster_plots
cmsbuild Jan 7, 2026
d82850b
Merge pull request #49697 from makortel/cudaDQMRemove
cmsbuild Jan 7, 2026
6139e4d
Merge pull request #49722 from mmusich/mm_fix_SiStripApproximateClust…
cmsbuild Jan 7, 2026
36c0b58
Merge pull request #49735 from silviodonato/VarNamingHLTScoutingPFPro…
cmsbuild Jan 7, 2026
9eb4c9a
Merge pull request #49715 from patinkaew/scouting_hbhe_rechit_withtim…
cmsbuild Jan 7, 2026
af6c6ea
update run to be used for the scouting_dqm_sourceclient unit test
mmusich Jan 8, 2026
05250ba
Use the alpaka Acc concept
fwyzard Jan 8, 2026
cd75478
set relval2025 autoHLT key to Fake2
mmusich Jan 5, 2026
e12f4df
make provisionally the 2025 re-HLT workflows run GRun instead of @rel…
mmusich Jan 8, 2026
8ba1d27
Merge pull request #48263 from CMSTrackerDPG/SiPixelTemplate_reduce_L…
cmsbuild Jan 9, 2026
0ae8c9c
Merge pull request #49677 from stahlleiton/FG_CMSSW_16_0_X
cmsbuild Jan 9, 2026
4b12a81
Merge pull request #49719 from bsunanda/Phase2-hgx364W
cmsbuild Jan 9, 2026
4af1283
Merge pull request #49736 from martinamalberti/mm_ETLDigi_updatedComment
cmsbuild Jan 9, 2026
fa5ade3
Merge pull request #49737 from ljuckett/relval_summary_hists
cmsbuild Jan 9, 2026
ea1b2ed
L1-uGT emulator: fix to AXOL1TL's "Pt" inputs
missirol Jan 6, 2026
d6e474b
Merge pull request #49748 from fwyzard/use_alpaka_Acc_concept
cmsbuild Jan 9, 2026
2e087f9
Merge pull request #49747 from mmusich/mm_relval2025asFake
cmsbuild Jan 9, 2026
abc9bf9
Merge pull request #49706 from mseidel42/btvNanoMotherFix
cmsbuild Jan 9, 2026
46041a5
Merge pull request #49725 from kpedro88/Phase2-WF84
cmsbuild Jan 9, 2026
71b6d4f
Merge pull request #49750 from Dr15Jones/fillDescriptionsToyModules
cmsbuild Jan 9, 2026
7ec69ae
Move AtomicPtrCache dictionary to proper packages
Dr15Jones Jan 7, 2026
2cf5fc2
Moved DefaultRecord to FWCore/Utilities
Dr15Jones Jan 6, 2026
5d4a065
Handle DefaultRecord in DependentRecordImplementation
Dr15Jones Jan 6, 2026
46a952f
Use more requires in EventSetup
Dr15Jones Jan 6, 2026
24b796c
Add the tools with some more diagnostic help to debug the issue of wr…
Jan 11, 2026
f31de82
Code check
Jan 11, 2026
196e067
modify some of the scripts to update calibration constants of HCAL
Jan 11, 2026
af3d25c
Code check
Jan 11, 2026
ea1d933
Added fillDescriptions to more classes in FWCore
Dr15Jones Jan 11, 2026
8696089
Taken suggestion of Andreas
Jan 12, 2026
fc98c65
Merge pull request #49652 from Moanwar/from-CMSSW_16_0_X_2025-12-15-1100
cmsbuild Jan 12, 2026
c5cf5f8
Merge pull request #49746 from mmusich/mm_update_DQMOnlineScouting_un…
cmsbuild Jan 12, 2026
283f511
Merge pull request #49764 from bsunanda/Run3-alca264
cmsbuild Jan 12, 2026
b0aabe0
add monitoring of Run3ScoutingHBHERecHit time in ScoutingCollectionMo…
mmusich Jan 9, 2026
8867205
add monitoring of calo rechits time in ScoutingRecHitAnalyzer
mmusich Jan 12, 2026
34bba29
used named constants instead of hardcoded magic numbers
mmusich Jan 12, 2026
aa55bc4
bug-fix: use hltOnlineBeamSpot in hltWithPixelTracks and hltPixelLess…
mmusich Jan 12, 2026
40584ea
update unit test Miscellanea post integration of #49725
mmusich Jan 12, 2026
f96e389
Merge pull request #49705 from dan131riley/valgrind-uninit-xmas
cmsbuild Jan 12, 2026
07a26ed
Merge pull request #49744 from Tizianop6/PLresolutionPlots
cmsbuild Jan 12, 2026
e069dff
Merge pull request #49733 from Dr15Jones/requiresEventSetup
cmsbuild Jan 12, 2026
2cb07a0
Merge pull request #49763 from bsunanda/Phase2-hgx364X
cmsbuild Jan 12, 2026
462254b
Merge pull request #49778 from mmusich/mm_update_aliOfflineValid_geom…
cmsbuild Jan 12, 2026
c828765
Merge pull request #49757 from Dr15Jones/dictToProperPackage
cmsbuild Jan 12, 2026
3d28b37
Merge pull request #49753 from missirol/fix_l1tGTAXOL1TLEtInputs2
cmsbuild Jan 13, 2026
78d55dc
fix unit test createTestDBObjects after integration of #49725
mmusich Jan 13, 2026
2a46398
run track selectors hltPixelLessTracks and hltWithPixelTracks only in…
mmusich Jan 13, 2026
1893a31
Heterogeneous strip clusterizer and converter to legacy
pietroGru Jul 24, 2025
eb84412
Merge pull request #47629 from pietroGru/siStripClusterizer_1510pre1
cmsbuild Jan 13, 2026
1724617
Merge pull request #49789 from mmusich/mm_fix_condtools_sipixel_unit_…
cmsbuild Jan 13, 2026
9507479
Merge pull request #49777 from mmusich/mm_fix_hltPixellessTracksMonit…
cmsbuild Jan 13, 2026
aec9b2a
Merge pull request #48824 from makortel/portableCollectionDictionary
cmsbuild Jan 13, 2026
e2b11df
Merge pull request #49727 from akritkbehera/Alpaka_unenroll_loop
cmsbuild Jan 13, 2026
1d519e2
Merge pull request #49751 from SegmentLinking/CMSSW_16_0_0_pre3_remov…
cmsbuild Jan 13, 2026
5d7dbb9
Merge pull request #49769 from mmusich/mm_dev_scoutingMonitoringHBHER…
cmsbuild Jan 13, 2026
745fa9b
Merge pull request #49644 from yihui-lai/HTXS_fix_16_0
cmsbuild Jan 13, 2026
88e7010
Prevent exception if trackId larger than offset threshold (at present…
fabiocos Jan 13, 2026
b50a2ad
Merge pull request #49765 from Dr15Jones/moreFillDescriptions
cmsbuild Jan 13, 2026
a810d12
Merge pull request #49801 from fabiocos/fc-fixsimtrackm-20260113
cmsbuild Jan 13, 2026
b10522a
Remove alpaka procModfier from workflows in which it is no longer useful
VourMa Jan 7, 2026
c9a3686
Add missed README workflow entry for ticlv5TrackLinkingGNN
VourMa Jan 14, 2026
aeecc26
Adjust the ph2_hlt workflow list according to the updates
VourMa Jan 15, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
'/store/relval/CMSSW_12_5_3/RelValMinBias_14TeV/ALCARECO/TkAlMinBias-125X_mcRun4_realistic_v5_2026D88PU-v1/2590000/27b7ab93-1d2b-4f4a-a98e-68386c314b5e.root',
)

filesDefaultMC_DoubleMuonPUPhase_string = '/store/mc/Phase2Fall22DRMiniAOD/DYJetsToMuMu_M-50_TuneCP5_14TeV-madgraphMLM-pythia8/ALCARECO/TkAlZMuMu-PU200ALCA_TkAlPU200_125X_mcRun4_realistic_v5-v1/60000/9382696c-70fd-4b37-8a0f-24bd02aeda5f.root'
filesDefaultMC_DoubleMuonPUPhase_string = '/store/mc/Phase2Spring24DIGIRECOMiniAOD/DYJetsToMuMu_M-50_TuneCP5_14TeV-madgraphMLM-pythia8/ALCARECO/TkAlZMuMu-noPUALCA_TkAlnoPU_140X_mcRun4_realistic_v6_ext1-v2/110000/1022ba4a-65f7-4409-9069-f35247a7a8e3.root'

filesDefaultMC_MinBiasPUPhase2RECO = cms.untracked.vstring(
'/store/relval/CMSSW_14_1_0_pre6/RelValMinBias_14TeV/GEN-SIM-RECO/PU_141X_mcRun4_realistic_v1_STD_2026D110_PU-v3/2560000/c22f1cbd-50e3-458e-aba9-b0a327e4c971.root'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ echo "TESTING inspect ALCARECO data ..."
cmsRun ${CMSSW_BASE}/src/Alignment/OfflineValidation/test/inspectData_cfg.py unitTest=True isCosmics=True trackCollection=ALCARECOTkAlCosmicsCTF0T || die "Failure running inspectData_cfg.py" $?

echo "TESTING inspect Phase2 ALCARECO data ..."
cmsRun ${CMSSW_BASE}/src/Alignment/OfflineValidation/test/inspectData_cfg.py unitTest=True isCosmics=False globalTag='' trackCollection=ALCARECOTkAlZMuMu isDiMuonData=True Detector='Run4D98' || die "Failure running inspectData_cfg.py on Phase-2 input" $?
cmsRun ${CMSSW_BASE}/src/Alignment/OfflineValidation/test/inspectData_cfg.py unitTest=True isCosmics=False globalTag='' trackCollection=ALCARECOTkAlZMuMu isDiMuonData=True Detector='Run4D110' || die "Failure running inspectData_cfg.py on Phase-2 input" $?

echo "TESTING G4e refitter ..."
cmsRun ${CMSSW_BASE}/src/Alignment/OfflineValidation/test/testG4Refitter_cfg.py maxEvents=10 || die "Failure running testG4Refitter_cfg.py" $?
Expand Down
99 changes: 48 additions & 51 deletions Calibration/HcalCalibAlgos/macros/CalibFitPlots.C
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@
// text0 is the text for general title added within ()
// type=0 plots response distributions and MPV of response vs ieta
// =1 plots MPV of response vs RBX #
// *drawStatBox* is of type *int* here specifying the index for
// calling SetOptStat and SetOptFit
//
// For plotting stored histograms from CalibTree
// PlotFiveHists(infile, text0, prefix0, type, iname, drawStatBox, normalize,
Expand All @@ -61,8 +59,6 @@
// text0 is the text for general title added within ()
// prefix0 is the tag attached to the canvas name
// type has the same meaning as in PlotTwoHists
// *drawStatBox* is of type *int* here specifying the index for
// calling SetOptStat and SetOptFit
//
// PlotHistCorrResults(infile, text, prefixF, save);
// Defaults: save=0
Expand Down Expand Up @@ -177,6 +173,7 @@
// For plotting ratio of correction factors as defined in a file
// give by infileX for 2 depths (depth1, depth2) as a function of
// ieta obaned from 2 sources of data (defined by text1 and text2)
//
// PlotHistCorrRatio(infile1, text1, infile2, text2, depth1, depth2, prefix,
// text0, etaMin, etaMax, doFit, isRealData, year, iformat,
// range, save)
Expand Down Expand Up @@ -676,7 +673,7 @@ results fitDoubleSidedCrystalball(TH1D* hist, bool /* fitTwice */, bool debug) {
return results(value, error, width, werror);
}

void readCorrFactors(char* infile,
void readCorrFactors(std::string infile,
double scale,
std::map<int, cfactors>& cfacs,
int& etamin,
Expand All @@ -685,7 +682,7 @@ void readCorrFactors(char* infile,
int iformat = 0,
bool debug = false) {
cfacs.clear();
std::ifstream fInput(infile);
std::ifstream fInput(infile.c_str());
if (!fInput.good()) {
std::cout << "Cannot open file " << infile << std::endl;
} else {
Expand Down Expand Up @@ -2313,7 +2310,7 @@ void PlotHistCorrResults(std::string infile, std::string text, std::string prefi
}
}

void PlotHistCorrFactor(char* infile,
void PlotHistCorrFactor(std::string infile,
std::string text,
std::string prefixF,
double scale = 1.0,
Expand Down Expand Up @@ -2457,7 +2454,7 @@ void PlotHistCorrFactor(char* infile,
}
}

void PlotHistCorrFactor(char* infile,
void PlotHistCorrFactor(std::string infile,
std::string text,
int depth,
std::string prefixF,
Expand Down Expand Up @@ -2600,7 +2597,7 @@ void PlotHistCorrFactor(char* infile,
}

void PlotHistCorrAsymmetry(
char* infile, std::string text, std::string prefixF = "", int depth = -1, int iformat = 0, int save = 0) {
std::string infile, std::string text, std::string prefixF = "", int depth = -1, int iformat = 0, int save = 0) {
std::map<int, cfactors> cfacs;
int etamin(100), etamax(-100), maxdepth(0);
double scale(1.0);
Expand Down Expand Up @@ -2702,29 +2699,29 @@ void PlotHistCorrAsymmetry(
}
}

void PlotHistCorrFactors(char* infile1,
void PlotHistCorrFactors(std::string infile1,
std::string text1,
char* infile2,
std::string infile2,
std::string text2,
char* infile3,
std::string infile3,
std::string text3,
char* infile4,
std::string infile4,
std::string text4,
char* infile5,
std::string infile5,
std::string text5,
std::string prefixF,
bool ratio = false,
bool drawStatBox = true,
bool ratio = true,
bool drawStatBox = false,
int nmin = 100,
bool isRealData = false,
bool isRealData = true,
const char* year = "2025",
int iformat = 0,
int range = 1,
int range = 0,
int save = 0) {
std::map<int, cfactors> cfacs[5];
std::vector<std::string> texts;
int nfile(0), etamin(100), etamax(-100), maxdepth(0);
const char* blank("");
std::string blank("");
if (infile1 != blank) {
readCorrFactors(infile1, 1.0, cfacs[nfile], etamin, etamax, maxdepth, iformat);
if (cfacs[nfile].size() > 0) {
Expand Down Expand Up @@ -2814,7 +2811,7 @@ void PlotHistCorrFactors(char* infile1,
if (dep == j + 1) {
int ieta = (itr->second).ieta;
int bin = ieta - etamin + 1;
float val = (itr->second).corrf / (ktr->second).corrf;
float val = (ktr->second).corrf / (itr->second).corrf;
float dvl =
val *
sqrt((((itr->second).dcorr * (itr->second).dcorr) / ((itr->second).corrf * (itr->second).corrf)) +
Expand All @@ -2836,9 +2833,9 @@ void PlotHistCorrFactors(char* infile1,
h->SetMarkerSize(0.9);
h->GetXaxis()->SetTitle("i#eta");
if (nfile > 2)
sprintf(name, "CF_{%s}/CF_{Set}", texts[0].c_str());
sprintf(name, "CF_{Set}/CF_{%s}", texts[0].c_str());
else
sprintf(name, "CF_{%s}/CF_{%s}", texts[0].c_str(), texts[ih].c_str());
sprintf(name, "CF_{%s}/CF_{%s}", texts[ih].c_str(), texts[0].c_str());
h->GetYaxis()->SetTitle(name);
h->GetYaxis()->SetLabelOffset(0.005);
h->GetYaxis()->SetTitleSize(0.036);
Expand Down Expand Up @@ -2940,7 +2937,7 @@ void PlotHistCorrFactors(char* infile1,
}
sprintf(name, "Depth %d (%s)", depths[k], texts[k1].c_str());
} else {
sprintf(name, "Depth %d (Mean[CF_{%s}/CF_{%s}] = %5.3f)", depths[k], text1.c_str(), texts[k1].c_str(), fitr[k]);
sprintf(name, "Depth %d (Mean[CF_{%s}/CF_{%s}] = %5.3f)", depths[k], texts[k1].c_str(), text1.c_str(), fitr[k]);
}
if ((depths[k] == 1) || (k1 <= 1) || (maxdepth <= 4))
legend->AddEntry(hists[k], name, "lp");
Expand Down Expand Up @@ -2977,9 +2974,9 @@ void PlotHistCorrFactors(char* infile1,
}
}

void PlotHistCorr2Factors(char* infile1,
void PlotHistCorr2Factors(std::string infile1,
std::string text1,
char* infile2,
std::string infile2,
std::string text2,
int depth,
std::string prefixF,
Expand All @@ -2994,7 +2991,7 @@ void PlotHistCorr2Factors(char* infile1,
std::map<int, cfactors> cfacs[5];
std::vector<std::string> texts;
int nfile(0), etamin(100), etamax(-100), maxdepth(0);
const char* blank("");
std::string blank("");
if (infile1 != blank) {
readCorrFactors(infile1, 1.0, cfacs[nfile], etamin, etamax, maxdepth, iformat);
if (cfacs[nfile].size() > 0) {
Expand Down Expand Up @@ -3208,15 +3205,15 @@ void PlotHistCorr2Factors(char* infile1,
}
}

void PlotHistCorrDFactors(char* infile1,
void PlotHistCorrDFactors(std::string infile1,
std::string text1,
char* infile2,
std::string infile2,
std::string text2,
char* infile3,
std::string infile3,
std::string text3,
char* infile4,
std::string infile4,
std::string text4,
char* infile5,
std::string infile5,
std::string text5,
int depth,
std::string prefixF,
Expand All @@ -3231,7 +3228,7 @@ void PlotHistCorrDFactors(char* infile1,
std::map<int, cfactors> cfacs[5];
std::vector<std::string> texts;
int nfile(0), etamin(100), etamax(-100), maxdepth(0);
const char* blank("");
std::string blank("");
if (infile1 != blank) {
readCorrFactors(infile1, 1.0, cfacs[nfile], etamin, etamax, maxdepth, iformat);
if (cfacs[nfile].size() > 0) {
Expand Down Expand Up @@ -3320,7 +3317,7 @@ void PlotHistCorrDFactors(char* infile1,
if (dep == depth) {
int ieta = (itr->second).ieta;
int bin = ieta - etamin + 1;
float val = (itr->second).corrf / (ktr->second).corrf;
float val = (ktr->second).corrf / (itr->second).corrf;
float dvl =
val * sqrt((((itr->second).dcorr * (itr->second).dcorr) / ((itr->second).corrf * (itr->second).corrf)) +
(((ktr->second).dcorr * (ktr->second).dcorr) / ((ktr->second).corrf * (ktr->second).corrf)));
Expand All @@ -3341,9 +3338,9 @@ void PlotHistCorrDFactors(char* infile1,
h->SetMarkerSize(0.9);
h->GetXaxis()->SetTitle("i#eta");
if (nfile > 2)
sprintf(name, "CF_{%s}/CF_{Set}", texts[0].c_str());
sprintf(name, "CF_{Set}/CF_{%s}", texts[0].c_str());
else
sprintf(name, "CF_{%s}/CF_{%s}", texts[0].c_str(), texts[ih].c_str());
sprintf(name, "CF_{%s}/CF_{%s}", texts[ih].c_str(), texts[0].c_str());
h->GetYaxis()->SetTitle(name);
h->GetYaxis()->SetLabelOffset(0.005);
h->GetYaxis()->SetTitleSize(0.036);
Expand Down Expand Up @@ -3434,7 +3431,7 @@ void PlotHistCorrDFactors(char* infile1,
}
sprintf(name, "Depth %d (%s)", depth, texts[k1].c_str());
} else {
sprintf(name, "Depth %d (Mean[CF_{%s}/CF_{%s}] = %5.3f)", depth, text1.c_str(), texts[k1].c_str(), fitr[k]);
sprintf(name, "Depth %d (Mean[CF_{%s}/CF_{%s}] = %5.3f)", depth, texts[k1].c_str(), text1.c_str(), fitr[k]);
}
legend->AddEntry(hists[k], name, "lp");
}
Expand Down Expand Up @@ -3676,8 +3673,8 @@ void PlotHistCorrLumis(std::string infilec, int conds, double lumi, int save = 0
}
}

void PlotHistCorrRel(char* infile1,
char* infile2,
void PlotHistCorrRel(std::string infile1,
std::string infile2,
std::string text1,
std::string text2,
int iformat1 = 0,
Expand Down Expand Up @@ -3804,8 +3801,8 @@ void PlotHistCorrRel(char* infile1,
}
}

void PlotHistCorrDepth(char* infile1,
char* infile2,
void PlotHistCorrDepth(std::string infile1,
std::string infile2,
std::string text1,
std::string text2,
int depth,
Expand Down Expand Up @@ -4185,7 +4182,7 @@ void PlotPUCorrHists(std::string infile = "corrfac.root",
}
}

void PlotHistCorr(const char* infile,
void PlotHistCorr(std::string infile,
std::string prefix,
std::string text0,
int eta = 0,
Expand All @@ -4206,7 +4203,7 @@ void PlotHistCorr(const char* infile,
std::string text[3] = {"Uncorrected no PU", "Uncorrected PU", "Corrected PU"};
int colors[3] = {1, 4, 2};
int styles[3] = {1, 3, 2};
TFile* file = new TFile(infile);
TFile* file = new TFile(infile.c_str());
if (mode < 0 || mode > 2)
mode = 1;
int etamin = (eta == 0) ? -27 : eta;
Expand Down Expand Up @@ -4283,7 +4280,7 @@ void PlotHistCorr(const char* infile,
}
}

void PlotPropertyHist(const char* infile,
void PlotPropertyHist(std::string infile,
std::string prefix,
std::string text,
int etaMax = 25,
Expand Down Expand Up @@ -4320,7 +4317,7 @@ void PlotPropertyHist(const char* infile,
gStyle->SetOptStat(0);
gStyle->SetOptFit(0);

TFile* file = new TFile(infile);
TFile* file = new TFile(infile.c_str());
char name[100], namep[100];
for (int k = 1; k <= etaMax; ++k) {
for (int j = 0; j < 3; ++j) {
Expand Down Expand Up @@ -4619,15 +4616,15 @@ void PlotMeanError(const std::string infilest, int reg = 3, bool resol = false,
}
}

void PlotDepthCorrFactor(char* infile,
void PlotDepthCorrFactor(std::string infile,
std::string text,
std::string prefix = "",
bool isRealData = true,
bool drawStatBox = true,
int save = 0) {
std::map<int, cfactors> cfacs;
int etamin(100), etamax(-100), maxdepth(0);
std::ifstream ifile(infile);
std::ifstream ifile(infile.c_str());
if (!ifile.is_open()) {
std::cout << "Cannot open duplicate file " << infile << std::endl;
} else {
Expand Down Expand Up @@ -4836,7 +4833,7 @@ void DrawHistPhiSymmetry(TH1D* hist0, bool isRealData, bool drawStatBox, bool sa
}

void PlotPhiSymmetryResults(
char* infile, bool isRealData = true, bool drawStatBox = true, bool debug = false, bool save = false) {
std::string infile, bool isRealData = true, bool drawStatBox = true, bool debug = false, bool save = false) {
const int maxDepthHB(4), maxDepthHE(7);
const double cfacMin(0.70), cfacMax(1.5);
const int nbin = (100.0 * (cfacMax - cfacMin));
Expand Down Expand Up @@ -4866,7 +4863,7 @@ void PlotPhiSymmetryResults(
std::cout << "Book " << h->GetName() << " Title " << h->GetTitle() << " range " << nbin << ":" << cfacMin << ":"
<< cfacMax << std::endl;
}
std::ifstream fInput(infile);
std::ifstream fInput(infile.c_str());
if (!fInput.good()) {
std::cout << "Cannot open file " << infile << std::endl;
} else {
Expand Down Expand Up @@ -4946,9 +4943,9 @@ void PlotPhiSymmetryResults(
}
}

void PlotHistCorrRatio(char* infile1,
void PlotHistCorrRatio(std::string infile1,
std::string text1,
char* infile2,
std::string infile2,
std::string text2,
int depth1,
int depth2,
Expand All @@ -4965,7 +4962,7 @@ void PlotHistCorrRatio(char* infile1,
std::map<int, cfactors> cfacs[2];
std::vector<std::string> texts;
int nfile(0), etamin(100), etamax(-100), maxdepth(0);
const char* blank("");
std::string blank("");
if (infile1 != blank) {
readCorrFactors(infile1, 1.0, cfacs[nfile], etamin, etamax, maxdepth, iformat);
if (cfacs[nfile].size() > 0) {
Expand Down
7 changes: 4 additions & 3 deletions Calibration/HcalCalibAlgos/macros/CalibFitPlotsRootFit.C
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
//////////////////////////////////////////////////////////////////////////////
// Usage:
// .L CalibFitPlotsRooFit.C+g
//
// For extended set of histograms from CalibMonitor using RooFit
// FitHistExtended_RootFit(infile, outfile, prefix, numb, type, append,
// fiteta, iname, debug);
Expand All @@ -10,7 +11,7 @@
// For plotting stird histograms from FitHistExtended_RootFit
// PlotHist_RooFit(infile, prefix, text, modePlot, kopt, lumi, ener,
// isRealData, drawStatBox, save, debug);
// Defaults: modePlot=4, kopt=100, lumi=0, ener=13.6, isRealData=false,
// Defaults: modePlot=4, kopt=100, lumi=0, ener="13.6", isRealData=false,
// drawStatBox=true, save=0, debug=false
//
//
Expand All @@ -20,7 +21,7 @@
// prefix (std::string) = Prefix for the histogram names
// mode (int) = Flag to check which set of histograms to be
// done. It has the format lthdo where each of
// l, t,h,d,o can have a value 0 or 1 to select
// l,t,h,d,o can have a value 0 or 1 to select
// or deselect. l,t,h,d,o for momentum range
// 60-100, 30-40, all, 20-30, 40-60 Gev (11111)
// type (int) = defines eta binning type (see CalibMonitor)
Expand Down Expand Up @@ -1023,7 +1024,7 @@ void PlotHist_RooFit(const char* infile,
if (mode < 0 || mode > 5)
mode = 0;
if (drawStatBox) {
int iopt = (mode != 0 ? 10 : 1110);
int iopt = (mode != 0) ? 10 : 1110;
gStyle->SetOptStat(iopt);
gStyle->SetOptFit(1);
} else {
Expand Down
Loading