コード例 #1
0
                                      "embedded_CMS_htt_emb_ttbarUp")
    EmbeddedHistogram_Up.Add(TTContaminationHistogram, 0.1)
    EmbeddedHistogram_Down = EmbeddedHistogram.Clone()
    EmbeddedHistogram_Down.SetNameTitle("embedded_CMS_htt_emb_ttbarDown",
                                        "embedded_CMS_htt_emb_ttbarDown")
    EmbeddedHistogram_Down.Add(TTContaminationHistogram, -0.1)
    theOutputHistograms[analysisCategory.name][
        "embedded_CMS_htt_emb_ttbarUp"] = EmbeddedHistogram_Up
    theOutputHistograms[analysisCategory.name][
        "embedded_CMS_htt_emb_ttbarDown"] = EmbeddedHistogram_Down


EmbeddedSample = Sample()
EmbeddedSample.name = 'embedded'
EmbeddedSample.path = '/data/aloeliger/SMHTT_Selected_2018_Deep/'
EmbeddedSample.files = ['Embedded.root']
EmbeddedSample.definition = ''
EmbeddedSample.uncertainties = [
    EmbeddedTESUncertainty(),
    TTbarContaminationUncertainty(),
    EmbeddedTrigger1718Uncertainty(),
    EmbeddedMuonESUncertainty(),
    EmbeddedTauIDUncertainty(),
    EmbeddedTrackingUncertainty(),
]
EmbeddedSample.eventDictionaryInstance = MuTauEventDictionary
EmbeddedSample.CreateEventWeight = EmbeddedSample.CreateEventWeight_Standard
EmbeddedSample.EndAction = PerformTTbarContaminationSubtraction
EmbeddedSample.startEntry = 1440000
EmbeddedSample.endEntry = 2160000