Analysis Software
Documentation for sPHENIX simulation software
|
#include <analysis/blob/master/EMCal-commissioning/emcalHotTowerFinder/src/towerid.h>
Public Member Functions | |
towerid (const std::string &name="towerid.root", const std::string &cdbtreename="test.root", float adccut_sg=250, float adccut_k=500, float sigmas_lo=1, float sigmas_hi=4.5, float SG_f=0.55, float Kur_f=0.55, float region_f=0.55) | |
~towerid () override | |
int | Init (PHCompositeNode *topNode) override |
int | InitRun (PHCompositeNode *topNode) override |
int | process_event (PHCompositeNode *topNode) override |
int | ResetEvent (PHCompositeNode *topNode) override |
Clean up internals after each event. | |
int | EndRun (const int runnumber) override |
Called at the end of each run. | |
int | End (PHCompositeNode *topNode) override |
Called at the end of all processing. | |
int | Reset (PHCompositeNode *) override |
Reset. | |
void | Print (const std::string &what="ALL") const override |
void | FillHistograms (const int runnumber, const int segment) |
void | CalculateCutOffs (const int runnumber) |
void | WriteCDBTree (const int runnumber) |
Public Member Functions inherited from SubsysReco | |
~SubsysReco () override | |
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 Attributes | |
TTree * | T |
TFile * | out |
TFile * | fchannels |
TTree * | channels |
int | fiber_type = 0 |
std::string | Outfile = "commissioning.root" |
TH1F * | hEventCounter = NULL |
TH2F * | Fspec = NULL |
TH2F * | Fspec_SG = NULL |
TH2F * | Fspec_K = NULL |
TH2F * | Fspec_sector = NULL |
TH2F * | Fspec_IB = NULL |
TH2F * | Fspeci = NULL |
TH2F * | Fspeci_SG = NULL |
TH2F * | Fspeci_K = NULL |
TH2F * | Fspeci_sector = NULL |
TH2F * | Fspeci_IB = NULL |
TH2F * | Espec = NULL |
TH2F * | Espec_SG = NULL |
TH2F * | Espec_K = NULL |
TH2F * | Espec_sector = NULL |
TH2F * | Espec_IB = NULL |
const std::string | cdbtreename |
float | adccut_sg |
float | adccut_k |
float | sigmas_lo |
float | sigmas_hi |
float | SG_f |
float | Kur_f |
float | region_f |
int | m_hot_channels |
float | towerF [nTowers] = {0} |
float | sectorF [nSectors] = {0} |
float | ibF [nIB] = {0} |
float | towerE [nTowers] = {0} |
float | sectorE [nSectors] = {0} |
float | ibE [nIB] = {0} |
int | hottowers [nTowers] = {0} |
int | hotIB [nIB] = {0} |
int | hotsectors [nSectors] = {0} |
int | deadtowers [nTowers] = {0} |
int | coldtowers [nTowers] = {0} |
int | coldIB [nIB] = {0} |
int | coldsectors [nSectors] = {0} |
int | hot_regions = 0 |
int | cold_regions = 0 |
int | goodevents = 0 |
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") | |
Definition at line 28 of file towerid.h.
View newest version in sPHENIX GitHub at line 28 of file towerid.h
towerid::towerid | ( | const std::string & | name = "towerid.root" , |
const std::string & | cdbtreename = "test.root" , |
||
float | adccut_sg = 250 , |
||
float | adccut_k = 500 , |
||
float | sigmas_lo = 1 , |
||
float | sigmas_hi = 4.5 , |
||
float | SG_f = 0.55 , |
||
float | Kur_f = 0.55 , |
||
float | region_f = 0.55 |
||
) |
Definition at line 31 of file towerid.cc.
View newest version in sPHENIX GitHub at line 31 of file towerid.cc
|
override |
Definition at line 47 of file towerid.cc.
View newest version in sPHENIX GitHub at line 47 of file towerid.cc
void towerid::CalculateCutOffs | ( | const int | runnumber | ) |
Definition at line 242 of file towerid.cc.
View newest version in sPHENIX GitHub at line 242 of file towerid.cc
References channels, cold_regions, coldtowers, deadtowers, fiber_type, Fspec, Fspec_IB, Fspec_K, Fspec_SG, Fspeci, Fspeci_IB, Fspeci_K, Fspeci_sector, Fspeci_SG, hot_regions, hotIB, hottowers, i, ibF, j, nIB, nTowers, nTowersIB, ProjectionY, SetBinContent(), SetOptStat(), SetTitle(), sigmas_hi, sigmas_lo, and towerF.
|
overridevirtual |
Called at the end of all processing.
Reimplemented from SubsysReco.
Definition at line 698 of file towerid.cc.
View newest version in sPHENIX GitHub at line 698 of file towerid.cc
References Fun4AllReturnCodes::EVENT_OK.
|
overridevirtual |
Called at the end of each run.
Reimplemented from SubsysReco.
Definition at line 704 of file towerid.cc.
View newest version in sPHENIX GitHub at line 704 of file towerid.cc
References Fun4AllReturnCodes::EVENT_OK.
void towerid::FillHistograms | ( | const int | runnumber, |
const int | segment | ||
) |
Definition at line 120 of file towerid.cc.
View newest version in sPHENIX GitHub at line 120 of file towerid.cc
References cd(), channels, Close(), Espec, Espec_IB, Espec_K, Espec_sector, Espec_SG, fiber_type, Fspec, Fspec_IB, Fspec_K, Fspec_sector, Fspec_SG, Fspeci, Fspeci_IB, Fspeci_K, Fspeci_sector, Fspeci_SG, goodevents, i, ibE, ibF, j, k, Kur_f, nIB, nSectors, nTowers, nTowersIB, nTowersSec, out, Outfile, region_f, sectorE, sectorF, SG_f, towerE, and towerF.
|
overridevirtual |
Called during initialization. Typically this is where you can book histograms, and e.g. register them to Fun4AllServer (so they can be output to file using Fun4AllServer::dumpHistos() method).
Reimplemented from SubsysReco.
Definition at line 52 of file towerid.cc.
View newest version in sPHENIX GitHub at line 52 of file towerid.cc
References channels, Fun4AllReturnCodes::EVENT_OK, fchannels, and fiber_type.
|
overridevirtual |
Called for first event when run number is known. Typically this is where you may want to fetch data from database, because you know the run number. A place to book histograms which have to know the run number.
Reimplemented from SubsysReco.
Definition at line 66 of file towerid.cc.
View newest version in sPHENIX GitHub at line 66 of file towerid.cc
References Fun4AllReturnCodes::EVENT_OK.
|
overridevirtual |
Print out some info about this module.
what | can be used to specify what to print exactly. |
Reimplemented from Fun4AllBase.
Definition at line 693 of file towerid.cc.
View newest version in sPHENIX GitHub at line 693 of file towerid.cc
|
overridevirtual |
Called for each event. This is where you do the real work.
Reimplemented from SubsysReco.
Definition at line 72 of file towerid.cc.
View newest version in sPHENIX GitHub at line 72 of file towerid.cc
References Fun4AllReturnCodes::ABORTEVENT, adccut_k, adccut_sg, channels, energy, Fun4AllReturnCodes::EVENT_OK, fiber_type, goodevents, ibE, ibF, j, nSectors, nTowersIB, nTowersSec, PHWHERE, sectorE, sectorF, TowerInfoContainer::size(), towerE, and towerF.
|
overridevirtual |
Reset.
Reimplemented from SubsysReco.
Definition at line 687 of file towerid.cc.
View newest version in sPHENIX GitHub at line 687 of file towerid.cc
References Fun4AllReturnCodes::EVENT_OK.
|
overridevirtual |
Clean up internals after each event.
Reimplemented from SubsysReco.
Definition at line 115 of file towerid.cc.
View newest version in sPHENIX GitHub at line 115 of file towerid.cc
References Fun4AllReturnCodes::EVENT_OK.
void towerid::WriteCDBTree | ( | const int | runnumber | ) |
Definition at line 635 of file towerid.cc.
View newest version in sPHENIX GitHub at line 635 of file towerid.cc
References Branch(), cdbtreename, coldtowers, CDBTTree::Commit(), deadtowers, TowerInfoDefs::encode_emcal(), fchannels, hottowers, i, m_hot_channels, nTowers, CDBTTree::SetIntValue(), T, Write(), and CDBTTree::WriteCDBTTree().
|
private |
Definition at line 114 of file towerid.h.
View newest version in sPHENIX GitHub at line 114 of file towerid.h
Referenced by process_event().
|
private |
Definition at line 113 of file towerid.h.
View newest version in sPHENIX GitHub at line 113 of file towerid.h
Referenced by process_event().
|
private |
Definition at line 111 of file towerid.h.
View newest version in sPHENIX GitHub at line 111 of file towerid.h
Referenced by WriteCDBTree().
|
private |
Definition at line 84 of file towerid.h.
View newest version in sPHENIX GitHub at line 84 of file towerid.h
Referenced by CalculateCutOffs(), FillHistograms(), Init(), and process_event().
|
private |
Definition at line 140 of file towerid.h.
View newest version in sPHENIX GitHub at line 140 of file towerid.h
Referenced by CalculateCutOffs().
|
private |
|
private |
|
private |
Definition at line 136 of file towerid.h.
View newest version in sPHENIX GitHub at line 136 of file towerid.h
Referenced by CalculateCutOffs(), and WriteCDBTree().
|
private |
Definition at line 133 of file towerid.h.
View newest version in sPHENIX GitHub at line 133 of file towerid.h
Referenced by CalculateCutOffs(), and WriteCDBTree().
|
private |
Definition at line 105 of file towerid.h.
View newest version in sPHENIX GitHub at line 105 of file towerid.h
Referenced by FillHistograms().
|
private |
Definition at line 109 of file towerid.h.
View newest version in sPHENIX GitHub at line 109 of file towerid.h
Referenced by FillHistograms().
|
private |
Definition at line 107 of file towerid.h.
View newest version in sPHENIX GitHub at line 107 of file towerid.h
Referenced by FillHistograms().
|
private |
Definition at line 108 of file towerid.h.
View newest version in sPHENIX GitHub at line 108 of file towerid.h
Referenced by FillHistograms().
|
private |
Definition at line 106 of file towerid.h.
View newest version in sPHENIX GitHub at line 106 of file towerid.h
Referenced by FillHistograms().
|
private |
|
private |
Definition at line 86 of file towerid.h.
View newest version in sPHENIX GitHub at line 86 of file towerid.h
Referenced by CalculateCutOffs(), FillHistograms(), Init(), and process_event().
|
private |
Definition at line 93 of file towerid.h.
View newest version in sPHENIX GitHub at line 93 of file towerid.h
Referenced by CalculateCutOffs(), and FillHistograms().
|
private |
Definition at line 97 of file towerid.h.
View newest version in sPHENIX GitHub at line 97 of file towerid.h
Referenced by CalculateCutOffs(), and FillHistograms().
|
private |
Definition at line 95 of file towerid.h.
View newest version in sPHENIX GitHub at line 95 of file towerid.h
Referenced by CalculateCutOffs(), and FillHistograms().
|
private |
Definition at line 96 of file towerid.h.
View newest version in sPHENIX GitHub at line 96 of file towerid.h
Referenced by FillHistograms().
|
private |
Definition at line 94 of file towerid.h.
View newest version in sPHENIX GitHub at line 94 of file towerid.h
Referenced by CalculateCutOffs(), and FillHistograms().
|
private |
Definition at line 99 of file towerid.h.
View newest version in sPHENIX GitHub at line 99 of file towerid.h
Referenced by CalculateCutOffs(), and FillHistograms().
|
private |
Definition at line 103 of file towerid.h.
View newest version in sPHENIX GitHub at line 103 of file towerid.h
Referenced by CalculateCutOffs(), and FillHistograms().
|
private |
Definition at line 101 of file towerid.h.
View newest version in sPHENIX GitHub at line 101 of file towerid.h
Referenced by CalculateCutOffs(), and FillHistograms().
|
private |
Definition at line 102 of file towerid.h.
View newest version in sPHENIX GitHub at line 102 of file towerid.h
Referenced by CalculateCutOffs(), and FillHistograms().
|
private |
Definition at line 100 of file towerid.h.
View newest version in sPHENIX GitHub at line 100 of file towerid.h
Referenced by CalculateCutOffs(), and FillHistograms().
|
private |
Definition at line 143 of file towerid.h.
View newest version in sPHENIX GitHub at line 143 of file towerid.h
Referenced by FillHistograms(), and process_event().
|
private |
|
private |
Definition at line 139 of file towerid.h.
View newest version in sPHENIX GitHub at line 139 of file towerid.h
Referenced by CalculateCutOffs().
|
private |
Definition at line 131 of file towerid.h.
View newest version in sPHENIX GitHub at line 131 of file towerid.h
Referenced by CalculateCutOffs().
|
private |
|
private |
Definition at line 130 of file towerid.h.
View newest version in sPHENIX GitHub at line 130 of file towerid.h
Referenced by CalculateCutOffs(), and WriteCDBTree().
|
private |
Definition at line 128 of file towerid.h.
View newest version in sPHENIX GitHub at line 128 of file towerid.h
Referenced by FillHistograms(), and process_event().
|
private |
Definition at line 124 of file towerid.h.
View newest version in sPHENIX GitHub at line 124 of file towerid.h
Referenced by CalculateCutOffs(), FillHistograms(), and process_event().
|
private |
Definition at line 118 of file towerid.h.
View newest version in sPHENIX GitHub at line 118 of file towerid.h
Referenced by FillHistograms().
|
private |
Definition at line 121 of file towerid.h.
View newest version in sPHENIX GitHub at line 121 of file towerid.h
Referenced by WriteCDBTree().
|
private |
Definition at line 79 of file towerid.h.
View newest version in sPHENIX GitHub at line 79 of file towerid.h
Referenced by FillHistograms().
|
private |
Definition at line 89 of file towerid.h.
View newest version in sPHENIX GitHub at line 89 of file towerid.h
Referenced by FillHistograms().
|
private |
Definition at line 119 of file towerid.h.
View newest version in sPHENIX GitHub at line 119 of file towerid.h
Referenced by FillHistograms().
|
private |
Definition at line 127 of file towerid.h.
View newest version in sPHENIX GitHub at line 127 of file towerid.h
Referenced by FillHistograms(), and process_event().
|
private |
Definition at line 123 of file towerid.h.
View newest version in sPHENIX GitHub at line 123 of file towerid.h
Referenced by FillHistograms(), and process_event().
|
private |
Definition at line 117 of file towerid.h.
View newest version in sPHENIX GitHub at line 117 of file towerid.h
Referenced by FillHistograms().
|
private |
Definition at line 116 of file towerid.h.
View newest version in sPHENIX GitHub at line 116 of file towerid.h
Referenced by CalculateCutOffs().
|
private |
Definition at line 115 of file towerid.h.
View newest version in sPHENIX GitHub at line 115 of file towerid.h
Referenced by CalculateCutOffs().
|
private |
Definition at line 78 of file towerid.h.
View newest version in sPHENIX GitHub at line 78 of file towerid.h
Referenced by WriteCDBTree().
|
private |
Definition at line 126 of file towerid.h.
View newest version in sPHENIX GitHub at line 126 of file towerid.h
Referenced by FillHistograms(), and process_event().
|
private |
Definition at line 122 of file towerid.h.
View newest version in sPHENIX GitHub at line 122 of file towerid.h
Referenced by CalculateCutOffs(), FillHistograms(), and process_event().