TestCycle Class Reference

This class demonstrates an example SFrame cycle using the manTree root trees. More...

#include <TestCycle.h>

Inheritance diagram for TestCycle:

Inheritance graph
[legend]
Collaboration diagram for TestCycle:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TestCycle ()
 Default constructor.
 ~TestCycle ()
 Default destructor.
virtual void BeginCycle () throw ( SError )
 Function called at the beginning of the cycle.
virtual void EndCycle () throw ( SError )
 Function called at the end of the cycle.
virtual void BeginInputData (const SInputData &) throw ( SError )
 Function called at the beginning of a new input data.
virtual void EndInputData (const SInputData &) throw ( SError )
 Function called after finishing to process an input data.
virtual void ExecuteEvent (const SInputData &, Double_t) throw ( SError )
 Function called for every event.

Detailed Description

This class demonstrates an example SFrame cycle using the manTree root trees.

The class deminstrates how to loop over the objects in manTree root trees & make a histogram. To see all the available objects, please see manTreeSCycleBase.h

Author:
Mark Owen <markowen@cern.ch>
Version:
Revision
1.3


Constructor & Destructor Documentation

TestCycle::TestCycle (  ) 

Default constructor.

Constructor, initialize everything.

initialize things to sensible defaults


Member Function Documentation

void TestCycle::BeginCycle (  )  throw ( SError ) [virtual]

Function called at the beginning of the cycle.

Function called when the cycle starts.

void TestCycle::BeginInputData ( const SInputData &   )  throw ( SError ) [virtual]

Function called at the beginning of a new input data.

Function called at the start of each set of input data. Here we need to book histograms, prepare output ntuple etc.

This line creates a 1D histogram for this input data. Will be automatically saved into the output rootfile

This line 'connects' the variable m_o_Zmass to the output root tree - will be saved for every event.

void TestCycle::EndCycle (  )  throw ( SError ) [virtual]

Function called at the end of the cycle.

Function called when the cycle ends.

void TestCycle::EndInputData ( const SInputData &   )  throw ( SError ) [virtual]

Function called after finishing to process an input data.

Function called at the end of each set of input data. Here we might want to print out event counts etc.

void TestCycle::ExecuteEvent ( const SInputData &  ,
Double_t  weight 
) throw ( SError ) [virtual]

Function called for every event.

This function is called for every event and is where we do anything useful! The weight parameter is calculated by sframe as the ratio of the Target luminosity specified in the config file to the luminosity of this input data sample.

Example of looping over muons & making a 'Z' particle out of the leading two muons that pass some cuts. Here we use iterators to loop over the vector of muons.

Example of looping over jets. This time we use a simple integer to do the loop control. We fill the jet pT histogram once per jet.


The documentation for this class was generated from the following files:
Generated on Thu Jun 30 11:40:13 2011 for manTreeSFrame by  doxygen 1.4.7