#include <mEmcRecoModuleRealYear4.h>
Inherits emcRecoModule.
Inheritance diagram for mEmcRecoModuleRealYear4:
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 default should be fine, experts may want to play with some parameters, explained hereafter.
The sectors to be treated can be changed according to 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 globally, using recoConsts flag EMCDATASOURCE, or very selectively, using the EMCEXPERTDATASOURCES, e.g.
recoConsts* rc = recoConsts::instance(); rc->set_CharFlag("EMCDATASOURCE","File_ASCII"); // use ASCII file as data source (WARNING: this is really an expert mode of operation!) rc->set_CharFlag("EMCDATASOURCE","DB_Objy"); // use Objy as data source (if that still works...) rc->set_CharFlag("EMCEXPERTDATASOURCES","QAs:None,Pedestals5:File_ASCII"); // disable QA collection and read pedestals from files (really really expert mode)
Usage of gain variation can be disconnected if recoConsts flag EMCCONSTANTGAINS is set to 1 (default 0).
Clustering can be disabled (thus leaving only the calibration stage) by setting RUNEMCCLUSTERING integer flag to 0 (default is 1, i.e. run the clustering).
Definition at line 46 of file mEmcRecoModuleRealYear4.h.
Public Member Functions | |
mEmcRecoModuleRealYear4 (const PHFlag &) | |
virtual | ~mEmcRecoModuleRealYear4 () |
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) :
| |
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 | |
emcModuleHelper * | fModules |
PHTimeStamp * | fTimeStamp |
int | fRunNumber |
std::string | fDstNodeName |
bool | fConstantGains |
std::string | fSectors |
emcDataStorageMap * | fDataStorageMap |
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 |
|
Definition at line 30 of file mEmcRecoModuleRealYear4.C. |
|
Definition at line 137 of file mEmcRecoModuleRealYear4.C. References fDataStorageMap, fModules, and fTimeStamp. |
|
Main method to do the work for each event.
Implements emcRecoModule. Definition at line 146 of file mEmcRecoModuleRealYear4.C. References emcModuleHelper::event(), and fModules. |
|
Definition at line 153 of file mEmcRecoModuleRealYear4.C. References emcNodeHelper::makeCompositeNode(). Referenced by setup(). |
|
When we are done.
Implements emcRecoModule. Definition at line 171 of file mEmcRecoModuleRealYear4.C. |
|
The name of this module.
Implements emcRecoModule. Definition at line 58 of file mEmcRecoModuleRealYear4.h. |
|
|
|
Definition at line 72 of file mEmcRecoModuleRealYear4.h. |
|
Definition at line 70 of file mEmcRecoModuleRealYear4.h. |
|
Defines the nodes we need, together with the list of (PH)modules to be called at each event (in that order) :
Implements emcRecoModule. Definition at line 185 of file mEmcRecoModuleRealYear4.C. References createNodeTree(), fDstNodeName, emcNodeHelper::findCompositeNode(), fModules, fStartupMessage, emcModuleHelper::print(), setup_calibrator(), and setup_clustering(). |
|
Definition at line 228 of file mEmcRecoModuleRealYear4.C. References emcModuleHelper::add(), emcNodeHelper::addObject(), fConstantGains, fDataStorageMap, emcNodeHelper::findCompositeNode(), fModules, fRunNumber, fSectors, and fTimeStamp. Referenced by setup(). |
|
|
Definition at line 85 of file mEmcRecoModuleRealYear4.h. Referenced by setup_calibrator(). |
|
Definition at line 87 of file mEmcRecoModuleRealYear4.h. Referenced by setup_calibrator(), and ~mEmcRecoModuleRealYear4(). |
|
Definition at line 84 of file mEmcRecoModuleRealYear4.h. Referenced by setup(), and setup_clustering(). |
|
Definition at line 92 of file mEmcRecoModuleRealYear4.h. Referenced by setup_clustering(). |
|
Definition at line 91 of file mEmcRecoModuleRealYear4.h. Referenced by setup_clustering(). |
|
Definition at line 90 of file mEmcRecoModuleRealYear4.h. Referenced by setup_clustering(). |
|
Definition at line 89 of file mEmcRecoModuleRealYear4.h. Referenced by setup_clustering(). |
|
Definition at line 81 of file mEmcRecoModuleRealYear4.h. Referenced by ana(), setup(), setup_calibrator(), setup_clustering(), and ~mEmcRecoModuleRealYear4(). |
|
Definition at line 83 of file mEmcRecoModuleRealYear4.h. Referenced by setup_calibrator(). |
|
Definition at line 86 of file mEmcRecoModuleRealYear4.h. Referenced by setup_calibrator(). |
|
Definition at line 88 of file mEmcRecoModuleRealYear4.h. Referenced by setup(). |
|
Definition at line 82 of file mEmcRecoModuleRealYear4.h. Referenced by setup_calibrator(), and ~mEmcRecoModuleRealYear4(). |