/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
PhysicsTools/HeppyCore/python/analyzers/Histogrammer.py
16 строк
594 B
Colin
added services. integration not complete yet.
30 янв 2015, 13:21
30 янв 2015, 13:21
be0427a
Код
Авторство
О чём код?
from PhysicsTools.HeppyCore.framework.analyzer import Analyzer from ROOT import TH1F class Histogrammer(Analyzer): def beginLoop(self, setup): super(Histogrammer, self).beginLoop(setup) servname = '_'.join(['PhysicsTools.HeppyCore.framework.services.tfile.TFileService', self.cfg_ana.file_label ]) tfileservice = setup.services[servname] tfileservice.file.cd() self.hist = TH1F("hist", "an histogram", 200, 0, 200) def process(self, event): self.hist.Fill(event.iEv)