Analysis Software
Documentation for sPHENIX simulation software
|
you get started More...
#include <analysis/blob/master/Prototype4/HCal/TowerCalib/Proto4TowerCalib.h>
Classes | |
class | HCAL_Tower |
Public Member Functions | |
Proto4TowerCalib (const std::string &filename="Proto4TowerCalib.root") | |
constructor | |
virtual | ~Proto4TowerCalib () |
destructor | |
int | Init (PHCompositeNode *topNode) |
Standard function called at initialization. | |
int | InitRun (PHCompositeNode *topNode) |
Standard function called when a new run is processed. | |
int | process_event (PHCompositeNode *topNode) |
Standard function called at each event. | |
int | End (PHCompositeNode *topNode) |
Standard function called at the end of processing. Save your stuff here. | |
void | is_sim (bool b) |
Is processing simulation files? | |
int | InitAna () |
int | MakeAna () |
int | FinishAna () |
void | set_det (std::string detector) |
void | set_colID (int colID) |
Public Member Functions inherited from SubsysReco | |
~SubsysReco () override | |
virtual int | EndRun (const int) |
Called at the end of each run. | |
virtual int | Reset (PHCompositeNode *) |
Reset. | |
virtual int | ResetEvent (PHCompositeNode *) |
Clean up after each event. | |
void | Print (const std::string &="ALL") const override |
Public Member Functions inherited from Fun4AllBase | |
virtual | ~Fun4AllBase () |
virtual const std::string | Name () const |
Returns the name of this module. | |
virtual void | Name (const std::string &name) |
Sets the name of this module. | |
virtual void | Verbosity (const int ival) |
Sets the verbosity of this module (0 by default=quiet). | |
virtual void | Verbosity (enu_Verbosity ival) |
Sets the verbosity of this module (0 by default=quiet). | |
virtual int | Verbosity () const |
Gets the verbosity of this module. | |
Private Types | |
enum | { n_size = 8 } |
Private Member Functions | |
Fun4AllHistoManager * | get_HistoManager () |
get manager of histograms | |
std::pair< int, int > | find_max (RawTowerContainer *towers, int cluster_size) |
int | getChannelNumber (int column, int row) |
bool | is_sig (int colID) |
int | fill_sig (int colID) |
int | reset_pedestal () |
Private Attributes | |
bool | _is_sim |
is processing simulation files? | |
std::string | _filename |
output root file name | |
unsigned long | _ievent |
simple event counter | |
HCAL_Tower | _tower |
hcal infromation. To be copied to output TTree T | |
TFile * | mFile_OutPut |
TChain * | mChainInPut |
unsigned long | _mStartEvent |
unsigned long | _mStopEvent |
int | _mInPut_flag |
std::string | _mList |
std::string | _mDet |
int | _mCol |
float | _mPedestal |
HCAL_Tower * | _mTower |
TH1F * | h_mHCAL [16] |
float | hcal_twr [16] |
bool | _is_sig [16] |
Additional Inherited Members | |
Public Types inherited from Fun4AllBase | |
enum | enu_Verbosity { VERBOSITY_QUIET = 0, VERBOSITY_SOME = 1, VERBOSITY_MORE = 2, VERBOSITY_EVEN_MORE = 3, VERBOSITY_A_LOT = 4, VERBOSITY_MAX = std::numeric_limits<int>::max() - 10 } |
Protected Member Functions inherited from SubsysReco | |
SubsysReco (const std::string &name="NONAME") | |
you get started
Definition at line 24 of file Proto4TowerCalib.h.
View newest version in sPHENIX GitHub at line 24 of file Proto4TowerCalib.h
|
private |
Definition at line 165 of file Proto4TowerCalib.h.
View newest version in sPHENIX GitHub at line 165 of file Proto4TowerCalib.h
Proto4TowerCalib::Proto4TowerCalib | ( | const std::string & | filename = "Proto4TowerCalib.root" | ) |
constructor
Definition at line 48 of file Proto4TowerCalib.C.
View newest version in sPHENIX GitHub at line 48 of file Proto4TowerCalib.C
References _mCol, _mDet, _mInPut_flag, _mPedestal, _mStartEvent, _mStopEvent, _tower, Proto4TowerCalib::HCAL_Tower::reset(), reset_pedestal(), and Fun4AllBase::Verbosity().
|
virtual |
destructor
Definition at line 67 of file Proto4TowerCalib.C.
View newest version in sPHENIX GitHub at line 67 of file Proto4TowerCalib.C
|
virtual |
Standard function called at the end of processing. Save your stuff here.
Reimplemented from SubsysReco.
Definition at line 111 of file Proto4TowerCalib.C.
View newest version in sPHENIX GitHub at line 111 of file Proto4TowerCalib.C
References _filename, assert, PHTFileServer::cd(), Fun4AllReturnCodes::EVENT_OK, PHTFileServer::get(), get_HistoManager(), Fun4AllHistoManager::getHisto(), i, and Fun4AllHistoManager::nHistos().
|
private |
Definition at line 791 of file Proto4TowerCalib.C.
View newest version in sPHENIX GitHub at line 791 of file Proto4TowerCalib.C
References getChannelNumber(), h_mHCAL, and hcal_twr.
Referenced by MakeAna().
|
private |
Definition at line 574 of file Proto4TowerCalib.C.
View newest version in sPHENIX GitHub at line 574 of file Proto4TowerCalib.C
References assert, col, energy, RawTower::get_energy(), RawTowerContainer::getTower(), n_size, and t.
int Proto4TowerCalib::FinishAna | ( | ) |
Definition at line 762 of file Proto4TowerCalib.C.
View newest version in sPHENIX GitHub at line 762 of file Proto4TowerCalib.C
References _filename, h_mHCAL, and mFile_OutPut.
|
private |
get manager of histograms
Definition at line 72 of file Proto4TowerCalib.C.
View newest version in sPHENIX GitHub at line 72 of file Proto4TowerCalib.C
References assert, Fun4AllServer::getHistoManager(), Fun4AllServer::instance(), and Fun4AllServer::registerHistoManager().
Referenced by End(), Init(), and process_event().
|
private |
Definition at line 610 of file Proto4TowerCalib.C.
View newest version in sPHENIX GitHub at line 610 of file Proto4TowerCalib.C
References _is_sim.
Referenced by fill_sig(), is_sig(), and process_event().
|
virtual |
Standard function called at initialization.
Envent nomalization
Reimplemented from SubsysReco.
Definition at line 127 of file Proto4TowerCalib.C.
View newest version in sPHENIX GitHub at line 127 of file Proto4TowerCalib.C
References _filename, _ievent, _is_sim, _tower, assert, Fun4AllReturnCodes::EVENT_OK, PHTFileServer::get(), get_HistoManager(), hNormalization, PHTFileServer::open(), Fun4AllHistoManager::registerHisto(), and Acts::UnitConstants::T.
int Proto4TowerCalib::InitAna | ( | ) |
Definition at line 635 of file Proto4TowerCalib.C.
View newest version in sPHENIX GitHub at line 635 of file Proto4TowerCalib.C
References _is_sim, _mCol, _mDet, _mInPut_flag, _mList, _mStartEvent, _mStopEvent, _mTower, h_mHCAL, in, mChainInPut, and str.
|
virtual |
Standard function called when a new run is processed.
Reimplemented from SubsysReco.
Definition at line 91 of file Proto4TowerCalib.C.
View newest version in sPHENIX GitHub at line 91 of file Proto4TowerCalib.C
References _ievent, Fun4AllReturnCodes::EVENT_OK, PHNodeIterator::findFirst(), PHWHERE, and Fun4AllBase::Verbosity().
|
private |
Definition at line 776 of file Proto4TowerCalib.C.
View newest version in sPHENIX GitHub at line 776 of file Proto4TowerCalib.C
References _is_sig, and getChannelNumber().
Referenced by MakeAna().
|
inline |
Is processing simulation files?
Definition at line 46 of file Proto4TowerCalib.h.
View newest version in sPHENIX GitHub at line 46 of file Proto4TowerCalib.h
References _is_sim, and KFPMath::b.
Referenced by Fun4All_TestBeam_HCAL_TowerCalib(), and TestBeam_HCAL_TowerCalibAna().
int Proto4TowerCalib::MakeAna | ( | ) |
Definition at line 704 of file Proto4TowerCalib.C.
View newest version in sPHENIX GitHub at line 704 of file Proto4TowerCalib.C
References _is_sig, _is_sim, _mCol, _mDet, _mPedestal, _mStartEvent, _mStopEvent, _mTower, fill_sig(), h_mHCAL, hcal_twr, Proto4TowerCalib::HCAL_Tower::hcalin_lg_twr_raw, Proto4TowerCalib::HCAL_Tower::hcalin_twr_sim, Proto4TowerCalib::HCAL_Tower::hcalout_hg_twr_raw, Proto4TowerCalib::HCAL_Tower::hcalout_twr_sim, is_sig(), mChainInPut, and reset_pedestal().
|
virtual |
Standard function called at each event.
Reimplemented from SubsysReco.
Definition at line 215 of file Proto4TowerCalib.C.
View newest version in sPHENIX GitHub at line 215 of file Proto4TowerCalib.C
References _is_sim, _tower, assert, col, Fun4AllReturnCodes::EVENT_OK, RawTower::get_bineta(), RawTower::get_binphi(), RawTower::get_energy(), get_HistoManager(), PHG4Particle::get_vtx_id(), getChannelNumber(), findNode::getClass(), Fun4AllHistoManager::getHisto(), PHG4TruthInfoContainer::GetPrimaryParticleRange(), RawTowerContainer::getTowers(), PHG4TruthInfoContainer::GetVtx(), Proto4TowerCalib::HCAL_Tower::hcal_asym_calib, Proto4TowerCalib::HCAL_Tower::hcal_asym_raw, Proto4TowerCalib::HCAL_Tower::hcal_asym_sim, Proto4TowerCalib::HCAL_Tower::hcal_total_calib, Proto4TowerCalib::HCAL_Tower::hcal_total_raw, Proto4TowerCalib::HCAL_Tower::hcal_total_sim, Proto4TowerCalib::HCAL_Tower::hcalin_e_sim, Proto4TowerCalib::HCAL_Tower::hcalin_lg_e_calib, Proto4TowerCalib::HCAL_Tower::hcalin_lg_e_raw, Proto4TowerCalib::HCAL_Tower::hcalin_lg_twr_calib, Proto4TowerCalib::HCAL_Tower::hcalin_lg_twr_raw, Proto4TowerCalib::HCAL_Tower::hcalin_twr_sim, Proto4TowerCalib::HCAL_Tower::hcalout_e_sim, Proto4TowerCalib::HCAL_Tower::hcalout_hg_e_calib, Proto4TowerCalib::HCAL_Tower::hcalout_hg_e_raw, Proto4TowerCalib::HCAL_Tower::hcalout_hg_twr_calib, Proto4TowerCalib::HCAL_Tower::hcalout_hg_twr_raw, Proto4TowerCalib::HCAL_Tower::hcalout_lg_e_calib, Proto4TowerCalib::HCAL_Tower::hcalout_lg_e_raw, Proto4TowerCalib::HCAL_Tower::hcalout_lg_twr_calib, Proto4TowerCalib::HCAL_Tower::hcalout_lg_twr_raw, Proto4TowerCalib::HCAL_Tower::hcalout_twr_sim, hNormalization, it, merge_hashes::p, Proto4TowerCalib::HCAL_Tower::reset(), Acts::UnitConstants::T, testSigmaEff::v, and Fun4AllBase::Verbosity().
|
private |
Definition at line 803 of file Proto4TowerCalib.C.
View newest version in sPHENIX GitHub at line 803 of file Proto4TowerCalib.C
References _is_sig, and hcal_twr.
Referenced by MakeAna(), and Proto4TowerCalib().
|
inline |
Definition at line 63 of file Proto4TowerCalib.h.
View newest version in sPHENIX GitHub at line 63 of file Proto4TowerCalib.h
References _mCol.
|
inline |
Definition at line 58 of file Proto4TowerCalib.h.
View newest version in sPHENIX GitHub at line 58 of file Proto4TowerCalib.h
References _mDet.
|
private |
output root file name
Definition at line 183 of file Proto4TowerCalib.h.
View newest version in sPHENIX GitHub at line 183 of file Proto4TowerCalib.h
Referenced by End(), FinishAna(), and Init().
|
private |
simple event counter
Definition at line 186 of file Proto4TowerCalib.h.
View newest version in sPHENIX GitHub at line 186 of file Proto4TowerCalib.h
|
private |
Definition at line 206 of file Proto4TowerCalib.h.
View newest version in sPHENIX GitHub at line 206 of file Proto4TowerCalib.h
Referenced by is_sig(), MakeAna(), and reset_pedestal().
|
private |
is processing simulation files?
Definition at line 171 of file Proto4TowerCalib.h.
View newest version in sPHENIX GitHub at line 171 of file Proto4TowerCalib.h
Referenced by getChannelNumber(), Init(), InitAna(), is_sim(), MakeAna(), and process_event().
|
private |
Definition at line 199 of file Proto4TowerCalib.h.
View newest version in sPHENIX GitHub at line 199 of file Proto4TowerCalib.h
Referenced by InitAna(), MakeAna(), Proto4TowerCalib(), and set_colID().
|
private |
Definition at line 198 of file Proto4TowerCalib.h.
View newest version in sPHENIX GitHub at line 198 of file Proto4TowerCalib.h
Referenced by InitAna(), MakeAna(), Proto4TowerCalib(), and set_det().
|
private |
Definition at line 196 of file Proto4TowerCalib.h.
View newest version in sPHENIX GitHub at line 196 of file Proto4TowerCalib.h
Referenced by InitAna(), and Proto4TowerCalib().
|
private |
Definition at line 197 of file Proto4TowerCalib.h.
View newest version in sPHENIX GitHub at line 197 of file Proto4TowerCalib.h
Referenced by InitAna().
|
private |
Definition at line 200 of file Proto4TowerCalib.h.
View newest version in sPHENIX GitHub at line 200 of file Proto4TowerCalib.h
Referenced by MakeAna(), and Proto4TowerCalib().
|
private |
Definition at line 194 of file Proto4TowerCalib.h.
View newest version in sPHENIX GitHub at line 194 of file Proto4TowerCalib.h
Referenced by InitAna(), MakeAna(), and Proto4TowerCalib().
|
private |
Definition at line 195 of file Proto4TowerCalib.h.
View newest version in sPHENIX GitHub at line 195 of file Proto4TowerCalib.h
Referenced by InitAna(), MakeAna(), and Proto4TowerCalib().
|
private |
Definition at line 202 of file Proto4TowerCalib.h.
View newest version in sPHENIX GitHub at line 202 of file Proto4TowerCalib.h
|
private |
hcal infromation. To be copied to output TTree T
Definition at line 189 of file Proto4TowerCalib.h.
View newest version in sPHENIX GitHub at line 189 of file Proto4TowerCalib.h
Referenced by Init(), process_event(), and Proto4TowerCalib().
|
private |
Definition at line 204 of file Proto4TowerCalib.h.
View newest version in sPHENIX GitHub at line 204 of file Proto4TowerCalib.h
Referenced by fill_sig(), FinishAna(), InitAna(), and MakeAna().
|
private |
Definition at line 205 of file Proto4TowerCalib.h.
View newest version in sPHENIX GitHub at line 205 of file Proto4TowerCalib.h
Referenced by fill_sig(), MakeAna(), and reset_pedestal().
|
private |
Definition at line 193 of file Proto4TowerCalib.h.
View newest version in sPHENIX GitHub at line 193 of file Proto4TowerCalib.h
|
private |
Definition at line 192 of file Proto4TowerCalib.h.
View newest version in sPHENIX GitHub at line 192 of file Proto4TowerCalib.h
Referenced by FinishAna().