mEmcRecoModuleRealYear3v1 Class Reference

#include <mEmcRecoModuleRealYear3v1.h>

Inherits emcRecoModule.

Inheritance diagram for mEmcRecoModuleRealYear3v1:

Inheritance graph
[legend]
List of all members.

Detailed Description

emcRecoModule for real data, Run3.

By default, all emcal sectors are treated, the various data obtained from database come from Postgres, and the full variability of tower gains is used. While the default should be fine, experts may want to play with some parameters, explained hereafter.

The sectors to be treated can be changed according recoConsts flag EMCSECTORS, e.g.

recoConsts* rc = recoConsts::instance();
rc->set_CharFlag("EMCSECTORS","pbsc"); // use only PbSc
rc->set_CharFlag("EMCSECTORS","pbgl"); // use only PbGl
rc->set_CharFlag("EMCSECTORS","W0E3"); // use only W0 and E3 sectors

Calibration data source can be changed using recoConsts flag EMCDATASOURCE, e.g.

recoConsts* rc = recoConsts::instance();
rc->set_CharFlag("EMCDATASOURCE","File_ASCII"); // use ASCII file as data source (WARNING: this is really an export mode of operation!)
rc->set_CharFlag("EMCDATASOURCE","DB_Objy"); // use Objy as data source (if that still works...)

Usage of gain variation can be disconnected if recoConsts flag EMCCONSTANTGAINS is set to 1.

See also:
setup() to see the list of internal modules used.
Author:
Laurent Aphecetche

Definition at line 42 of file mEmcRecoModuleRealYear3v1.h.

Public Member Functions

 mEmcRecoModuleRealYear3v1 (const PHFlag &)
virtual ~mEmcRecoModuleRealYear3v1 ()
int ana (PHCompositeNode *topNode)
 Main method to do the work for each event.
int end (PHCompositeNode *topNode)
 When we are done.
const char * getName () const
 The name of this module.
int setup (PHCompositeNode *topNode)
 Defines the nodes we need, together with the list of (PH)modules to be called at each event (in that order) : 1.
virtual void identify (std::ostream &os=std::cout) const
virtual void Reset ()
virtual int isValid () const

Private Member Functions

void createNodeTree (PHCompositeNode *topNode)
void setup_calibrator (PHCompositeNode *topNode)
void setup_clustering (PHCompositeNode *topNode)

Private Attributes

emcModuleHelperfModules
PHTimeStamp * fTimeStamp
int fRunNumber
std::string fDstNodeName
bool fConstantGains
std::string fSectors
emcManageable::EStorage fDataSource
std::ostringstream fStartupMessage

Static Private Attributes

static const float fgTowerThresholdPbSc = 0.010
static const float fgTowerThresholdPbGl = 0.014
static const float fgMinClusterEnergyPbSc = 0.015
static const float fgMinClusterEnergyPbGl = 0.060


Constructor & Destructor Documentation

mEmcRecoModuleRealYear3v1::mEmcRecoModuleRealYear3v1 const PHFlag &   ) 
 

Definition at line 30 of file mEmcRecoModuleRealYear3v1.C.

mEmcRecoModuleRealYear3v1::~mEmcRecoModuleRealYear3v1  )  [virtual]
 

Definition at line 104 of file mEmcRecoModuleRealYear3v1.C.

References fModules, and fTimeStamp.


Member Function Documentation

int mEmcRecoModuleRealYear3v1::ana PHCompositeNode *  topNode  )  [virtual]
 

Main method to do the work for each event.

Implements emcRecoModule.

Definition at line 112 of file mEmcRecoModuleRealYear3v1.C.

References emcModuleHelper::event(), and fModules.

void mEmcRecoModuleRealYear3v1::createNodeTree PHCompositeNode *  topNode  )  [private]
 

Definition at line 119 of file mEmcRecoModuleRealYear3v1.C.

References emcNodeHelper::makeCompositeNode().

Referenced by setup().

int mEmcRecoModuleRealYear3v1::end PHCompositeNode *  topNode  )  [virtual]
 

When we are done.

Implements emcRecoModule.

Definition at line 137 of file mEmcRecoModuleRealYear3v1.C.

const char* mEmcRecoModuleRealYear3v1::getName  )  const [inline, virtual]
 

The name of this module.

Implements emcRecoModule.

Definition at line 54 of file mEmcRecoModuleRealYear3v1.h.

virtual void mEmcRecoModuleRealYear3v1::identify std::ostream &  os = std::cout  )  const [virtual]
 

virtual int mEmcRecoModuleRealYear3v1::isValid void   )  const [inline, virtual]
 

Definition at line 68 of file mEmcRecoModuleRealYear3v1.h.

virtual void mEmcRecoModuleRealYear3v1::Reset void   )  [inline, virtual]
 

Definition at line 66 of file mEmcRecoModuleRealYear3v1.h.

int mEmcRecoModuleRealYear3v1::setup PHCompositeNode *  topNode  )  [virtual]
 

Defines the nodes we need, together with the list of (PH)modules to be called at each event (in that order) : 1.

mEmcCalibratorModulev1 2. mEmcTOFCorr5Module 3. mEmcClusterizerv0

Implements emcRecoModule.

Definition at line 151 of file mEmcRecoModuleRealYear3v1.C.

References emcModuleHelper::add(), createNodeTree(), fDstNodeName, emcNodeHelper::findCompositeNode(), fModules, fRunNumber, fStartupMessage, mEmcTOFCorr5Module::instance(), mEmcTOFCorr5, emcModuleHelper::print(), mEmcTOFCorr5Module::readDataFromDB(), setup_calibrator(), and setup_clustering().

void mEmcRecoModuleRealYear3v1::setup_calibrator PHCompositeNode *  topNode  )  [private]
 

Definition at line 199 of file mEmcRecoModuleRealYear3v1.C.

References emcModuleHelper::add(), emcNodeHelper::addObject(), fConstantGains, fDataSource, emcNodeHelper::findCompositeNode(), fModules, fRunNumber, fSectors, and fTimeStamp.

Referenced by setup().

void mEmcRecoModuleRealYear3v1::setup_clustering PHCompositeNode *  topNode  )  [private]
 

Definition at line 221 of file mEmcRecoModuleRealYear3v1.C.

References emcModuleHelper::add(), emcNodeHelper::addObject(), fDstNodeName, fgMinClusterEnergyPbGl, fgMinClusterEnergyPbSc, fgTowerThresholdPbGl, fgTowerThresholdPbSc, emcNodeHelper::findCompositeNode(), fModules, mEmcGeometryModule::kReal, mEmcClusterizerv0::SetMinClusterEnergyPbGl(), mEmcClusterizerv0::SetMinClusterEnergyPbSc(), mEmcClusterizerv0::SetTowerThresholdPbGl(), and mEmcClusterizerv0::SetTowerThresholdPbSc().

Referenced by setup().


Member Data Documentation

bool mEmcRecoModuleRealYear3v1::fConstantGains [private]
 

Definition at line 82 of file mEmcRecoModuleRealYear3v1.h.

Referenced by setup_calibrator().

emcManageable::EStorage mEmcRecoModuleRealYear3v1::fDataSource [private]
 

Definition at line 85 of file mEmcRecoModuleRealYear3v1.h.

Referenced by setup_calibrator().

std::string mEmcRecoModuleRealYear3v1::fDstNodeName [private]
 

Definition at line 81 of file mEmcRecoModuleRealYear3v1.h.

Referenced by setup(), and setup_clustering().

const float mEmcRecoModuleRealYear3v1::fgMinClusterEnergyPbGl = 0.060 [static, private]
 

Definition at line 91 of file mEmcRecoModuleRealYear3v1.h.

Referenced by setup_clustering().

const float mEmcRecoModuleRealYear3v1::fgMinClusterEnergyPbSc = 0.015 [static, private]
 

Definition at line 90 of file mEmcRecoModuleRealYear3v1.h.

Referenced by setup_clustering().

const float mEmcRecoModuleRealYear3v1::fgTowerThresholdPbGl = 0.014 [static, private]
 

Definition at line 89 of file mEmcRecoModuleRealYear3v1.h.

Referenced by setup_clustering().

const float mEmcRecoModuleRealYear3v1::fgTowerThresholdPbSc = 0.010 [static, private]
 

Definition at line 88 of file mEmcRecoModuleRealYear3v1.h.

Referenced by setup_clustering().

emcModuleHelper* mEmcRecoModuleRealYear3v1::fModules [private]
 

Definition at line 78 of file mEmcRecoModuleRealYear3v1.h.

Referenced by ana(), setup(), setup_calibrator(), setup_clustering(), and ~mEmcRecoModuleRealYear3v1().

int mEmcRecoModuleRealYear3v1::fRunNumber [private]
 

Definition at line 80 of file mEmcRecoModuleRealYear3v1.h.

Referenced by setup(), and setup_calibrator().

std::string mEmcRecoModuleRealYear3v1::fSectors [private]
 

Definition at line 84 of file mEmcRecoModuleRealYear3v1.h.

Referenced by setup_calibrator().

std::ostringstream mEmcRecoModuleRealYear3v1::fStartupMessage [private]
 

Definition at line 86 of file mEmcRecoModuleRealYear3v1.h.

Referenced by setup().

PHTimeStamp* mEmcRecoModuleRealYear3v1::fTimeStamp [private]
 

Definition at line 79 of file mEmcRecoModuleRealYear3v1.h.

Referenced by setup_calibrator(), and ~mEmcRecoModuleRealYear3v1().


The documentation for this class was generated from the following files: