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

def Histogrammer.Histogrammer.beginLoop (   self,
  setup 
)

Definition at line 6 of file Histogrammer.py.

References 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 
def beginLoop(self, setup)
Definition: Histogrammer.py:6
static std::string join(char **cmd)
Definition: RemoteFile.cc:18
def Histogrammer.Histogrammer.process (   self,
  event 
)

Definition at line 15 of file Histogrammer.py.

15  def process(self, event):
16  self.hist.Fill(event.iEv)
17 
18 
def process(self, event)
Definition: Histogrammer.py:15

Member Data Documentation

Histogrammer.Histogrammer.hist

Definition at line 13 of file Histogrammer.py.