Main Page   Namespace List   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

RunProcessor Class Reference

#include <RunProcessor.h>

List of all members.

Public Types

typedef std::vector< float > inputType
typedef cmEstimator< float > cmTool

Public Methods

 RunProcessor (const char *rootFileName, const std::vector< float > &pedestals, const float outlierCut, const unsigned int iter)
bool execute (run &dataRun)
bool finalize ()
virtual ~RunProcessor ()

Private Methods

void commonModeCorrection (Event &aEvt)
void correctForPedestal (const Event &aEvt, RunProcessor::inputType &corData)
void fillEvent (RunProcessor::inputType &corData, const unsigned int iOff, Event &aEvt)
void fillEventTree (const Event &aEvt)

Private Attributes

TFile * m_rootFile
TTree * m_eTree
Data m_data
inputType m_pedestals
cmToolm_cmEst
int m_reject


Member Typedef Documentation

typedef cmEstimator<float> RunProcessor::cmTool
 

typedef std::vector<float> RunProcessor::inputType
 


Constructor & Destructor Documentation

RunProcessor::RunProcessor const char *    rootFileName,
const std::vector< float > &    pedestals,
const float    outlierCut,
const unsigned int    iter
 

constructer.

Parameters:
rootFileName  output file name.
pedestals  pedestal values.
outlierCut  outlier cut.

RunProcessor::~RunProcessor   [virtual]
 

destructer


Member Function Documentation

void RunProcessor::commonModeCorrection Event   aEvt [private]
 

Apply common mode correction

void RunProcessor::correctForPedestal const Event   aEvt,
RunProcessor::inputType   corData
[private]
 

Apply pedestal correction

bool RunProcessor::execute run   dataRun
 

execute

Parameters:
dataRun  run structure.

void RunProcessor::fillEvent RunProcessor::inputType   corData,
const unsigned int    iOff,
Event   aEvt
[private]
 

fill event structure with corrected adc

void RunProcessor::fillEventTree const Event   aEvt [private]
 

fill the root tree after each event

bool RunProcessor::finalize  
 

finalize method


Member Data Documentation

cmTool* RunProcessor::m_cmEst [private]
 

Data RunProcessor::m_data [private]
 

TTree* RunProcessor::m_eTree [private]
 

inputType RunProcessor::m_pedestals [private]
 

int RunProcessor::m_reject [private]
 

TFile* RunProcessor::m_rootFile [private]
 


The documentation for this class was generated from the following files:
Generated on Tue Jul 13 11:41:26 2004 for Laser by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002