CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
Histogrammer.Histogrammer Class Reference
Inheritance diagram for Histogrammer.Histogrammer:

Public Member Functions

def beginLoop (self, setup)
 
def process (self, event)
 

Public Attributes

 hist
 

Detailed Description

Definition at line 4 of file Histogrammer.py.

Member Function Documentation

◆ beginLoop()

def Histogrammer.Histogrammer.beginLoop (   self,
  setup 
)

Definition at line 6 of file Histogrammer.py.

References analyzer.Analyzer.cfg_ana, and join().

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 
static std::string join(char **cmd)
Definition: RemoteFile.cc:21

◆ process()

def Histogrammer.Histogrammer.process (   self,
  event 
)

Definition at line 15 of file Histogrammer.py.

References HcalObjRepresent.Fill(), core.VertexHistograms.VertexHistograms.hist, Histogrammer.Histogrammer.hist, EnergyCorrector.EnergyCorrector.hist, and ExpressionHisto< T >.hist.

15  def process(self, event):
16  self.hist.Fill(event.iEv)
17 
18 
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)

Member Data Documentation

◆ hist

Histogrammer.Histogrammer.hist

Definition at line 13 of file Histogrammer.py.

Referenced by Histogrammer.Histogrammer.process().