CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes
Histogrammer.Histogrammer Class Reference
Inheritance diagram for Histogrammer.Histogrammer:

Public Member Functions

def beginLoop
 
def process
 

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 
7  def beginLoop(self, setup):
8  super(Histogrammer, self).beginLoop(setup)
9  servname = '_'.join(['PhysicsTools.HeppyCore.framework.services.tfile.TFileService',
10  self.cfg_ana.file_label
11  ])
12  tfileservice = setup.services[servname]
13  tfileservice.file.cd()
14  self.hist = TH1F("hist", "an histogram", 200, 0, 200)
static std::string join(char **cmd)
Definition: RemoteFile.cc:18
def Histogrammer.Histogrammer.process (   self,
  event 
)

Definition at line 15 of file Histogrammer.py.

Referenced by ConfigBuilder.ConfigBuilder.addExtraStream(), ConfigBuilder.ConfigBuilder.completeInputCommand(), ConfigBuilder.ConfigBuilder.doNotInlineEventContent(), ConfigBuilder.ConfigBuilder.PrintAllModules.leave(), ConfigBuilder.ConfigBuilder.prepare_HLT(), ConfigBuilder.ConfigBuilder.prepare_LHE(), ConfigBuilder.ConfigBuilder.prepare_PATFILTER(), ConfigBuilder.ConfigBuilder.prepare_VALIDATION(), ConfigBuilder.ConfigBuilder.renameHLTprocessInSequence(), ConfigBuilder.ConfigBuilder.renameInputTagsInSequence(), and ConfigBuilder.ConfigBuilder.scheduleSequence().

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

Member Data Documentation

Histogrammer.Histogrammer.hist

Definition at line 13 of file Histogrammer.py.