CMS 3D CMS Logo

Histogrammer.py
Go to the documentation of this file.
1 from PhysicsTools.HeppyCore.framework.analyzer import Analyzer
2 from ROOT import TH1F
3 
5 
6  def beginLoop(self, setup):
7  super(Histogrammer, self).beginLoop(setup)
8  servname = '_'.join(['PhysicsTools.HeppyCore.framework.services.tfile.TFileService',
9  self.cfg_ana.file_label
10  ])
11  tfileservice = setup.services[servname]
12  tfileservice.file.cd()
13  self.hist = TH1F("hist", "an histogram", 200, 0, 200)
14 
15  def process(self, event):
16  self.hist.Fill(event.iEv)
17 
Histogrammer.Histogrammer.beginLoop
def beginLoop(self, setup)
Definition: Histogrammer.py:6
join
static std::string join(char **cmd)
Definition: RemoteFile.cc:17
Histogrammer.Histogrammer.process
def process(self, event)
Definition: Histogrammer.py:15
remoteMonitoring_LED_IterMethod_cfg.Analyzer
Analyzer
Definition: remoteMonitoring_LED_IterMethod_cfg.py:32
HcalObjRepresent::Fill
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
Definition: HcalObjRepresent.h:1053
Histogrammer.Histogrammer
Definition: Histogrammer.py:4
Histogrammer.Histogrammer.hist
hist
Definition: Histogrammer.py:13