Skip to content

Commit 61aa0b6

Browse files
Aliya Nigamovaanigamova
authored andcommitted
cmshistsum with channel masks
1 parent cc00f11 commit 61aa0b6

File tree

3 files changed

+30
-0
lines changed

3 files changed

+30
-0
lines changed

.github/workflows/cvmfs-ci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,13 @@ jobs:
243243
text2workspace.py data/ci/template-analysis_shapeNInterp.txt -o ws_template-analysis.root --mass 200 --for-fits --no-wrappers --use-histsum
244244
combine -M MultiDimFit ws_template-analysis.root --algo singles --setParameterRanges r=-5,5 --X-rtd FAST_VERTICAL_MORPH
245245
246+
- uses: ./.github/actions/run-in-cvmfs
247+
name: CMSHistSum with channel masks
248+
with:
249+
script: |
250+
text2workspace.py data/ci/htt_multiple_regions.txt -o ws_template-analysis_masks.root --mass 125 --channel-masks --for-fits --no-wrappers --use-histsum
251+
combine -M MultiDimFit ws_template-analysis_masks.root --algo singles --setParameterRanges r=-5,5 --setParameters mask_htt_tt_2_8TeV=1 --X-rtd FAST_VERTICAL_MORPH
252+
246253
- uses: ./.github/actions/run-in-cvmfs
247254
name: RooMultiPdf
248255
if: ${{ !matrix.CMSSW_VERSION || startsWith(matrix.CMSSW_VERSION, 'CMSSW_14') }}

test/CMakeLists.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,16 @@ ADD_COMBINE_TEST(cmshistsum_shapeN
228228
"combine -M MultiDimFit template-analysis_shapeNInterp.root --algo singles --setParameterRanges r=-5,5 --X-rtd FAST_VERTICAL_MORPH"
229229
)
230230

231+
# Template analysis CMSHistFunc with channel masks
232+
ADD_COMBINE_TEST(cmshistsum_channel_masks
233+
COPY_TO_BUILDDIR ${REPO}/data/ci/htt_multiple_regions.txt
234+
${REPO}/data/ci/htt_multiple_regions.input.root
235+
T2W_COMMAND
236+
text2workspace.py htt_multiple_regions.txt -o ws_template-analysis-channel_masks.root --mass 125 --channel-masks -for-fits --no-wrappers --use-histsum
237+
COMBINE_COMMANDS
238+
"combine -M MultiDimFit ws_template-analysis-channel_masks.root --algo singles --setParameterRanges r=-5,5 --setParameters mask_htt_tt_2_8TeV=1 --X-rtd FAST_VERTICAL_MORPH"
239+
)
240+
231241
# Template-analysis datacard -> text2workspace
232242
COMBINE_ADD_TEST(template_analysis-text2workspace
233243
COMMAND text2workspace.py template-analysis_shape_autoMCStats.txt -o template-analysis_shape_autoMCStats.root
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<<< Combine >>>
2+
<<< v10.3.3 >>>
3+
>>> Random number generator seed is 123456
4+
>>> Method used is MultiDimFit
5+
Set Range of Parameter r To : (-5,5)
6+
Set Default Value of Parameter mask_htt_tt_2_8TeV To : 1
7+
>>> 1 out of 3 channels masked
8+
9+
Doing initial fit:
10+
11+
--- MultiDimFit ---
12+
best fit parameter values and profile-likelihood uncertainties:
13+
r : +0.943 -0.790/+0.917 (68%)

0 commit comments

Comments
 (0)