"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
from Samples.SampleDefinition import Sample # from Samples.Uncertainties.UserUncertainties.TTbarContamination import TTbarContaminationUncertainty from Samples.EventDefinition.UserEventDictionaries.MuTauEventDictionary import MuTauEventDictionary TTContamination = Sample() TTContamination.name = 'TTContamination' TTContamination.path = '/data/aloeliger/SMHTT_Selected_2017_TTContamination/' TTContamination.files = [ 'TTTo2L2Nu.root', 'TTToHadronic.root', 'TTToSemiLeptonic.root' ] TTContamination.definition = '' TTContamination.uncertainties = [TTbarContaminationUncertainty()] TTContamination.eventDictionaryInstance = MuTauEventDictionary TTContamination.CreateEventWeight = TTContamination.CreateEventWeight_Standard