Analysis Software
Documentation for sPHENIX simulation software
|
#include <analysis/blob/master/HCalHotTowerFinder/src/hcal_towerid.h>
Public Member Functions | |
hcal_towerid (const std::string &name="towerid.root", const std::string &cdbtreename_i="test.root", const std::string &cdbtreename_o="test2.root", float adccut_i=250, float adccut_o=250, float sigmas_lo=1, float sigmas_hi=4.5, float inner_f=0.03, float outer_f=0.03) | |
~hcal_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 |
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 |
TTree * | T2 |
TFile * | out |
std::string | Outfile = "commissioning.root" |
TH1F * | Fspeci_i = new TH1F("Fspeci_i","Fspeci_i",0,1,1) |
TH1F * | Fspeci_o = new TH1F("Fspeci_o","Fspeci_o",0,1,1) |
TH1F * | Fspec_i = new TH1F("Espec_i","Espec_i",0,1,1) |
TH1F * | Fspec_o = new TH1F("Fspec_i","Fspec_i",0,1,1) |
TH1F * | Espec_i = new TH1F("Espec_i","Espec_i",0,1,1) |
TH1F * | Espec_o = new TH1F("Espec_o","Espec_o",0,1,1) |
const std::string | cdbtreename_i |
const std::string | cdbtreename_o |
float | adccut_i |
float | adccut_o |
float | sigmas_lo |
float | sigmas_hi |
float | inner_f |
float | outer_f |
int | m_hot_channels_i |
int | m_hot_channels_o |
int | itowerF [1536] = {0} |
int | otowerF [1536] = {0} |
float | itowerE [1536] = {0} |
float | otowerE [1536] = {0} |
int | ihottowers [1536] = {0} |
int | ohottowers [1536] = {0} |
int | ideadtowers [1536] = {0} |
int | odeadtowers [1536] = {0} |
int | icoldtowers [1536] = {0} |
int | ocoldtowers [1536] = {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 22 of file hcal_towerid.h.
View newest version in sPHENIX GitHub at line 22 of file hcal_towerid.h
hcal_towerid::hcal_towerid | ( | const std::string & | name = "towerid.root" , |
const std::string & | cdbtreename_i = "test.root" , |
||
const std::string & | cdbtreename_o = "test2.root" , |
||
float | adccut_i = 250 , |
||
float | adccut_o = 250 , |
||
float | sigmas_lo = 1 , |
||
float | sigmas_hi = 4.5 , |
||
float | inner_f = 0.03 , |
||
float | outer_f = 0.03 |
||
) |
Definition at line 28 of file hcal_towerid.cc.
View newest version in sPHENIX GitHub at line 28 of file hcal_towerid.cc
|
override |
Definition at line 44 of file hcal_towerid.cc.
View newest version in sPHENIX GitHub at line 44 of file hcal_towerid.cc
|
overridevirtual |
Called at the end of all processing.
Reimplemented from SubsysReco.
Definition at line 198 of file hcal_towerid.cc.
View newest version in sPHENIX GitHub at line 198 of file hcal_towerid.cc
References cd(), cdbtreename_i, cdbtreename_o, Close(), CDBTTree::Commit(), Espec_i, Espec_o, Fun4AllReturnCodes::EVENT_OK, Fspec_i, Fspec_o, Fspeci_i, Fspeci_o, i, icoldtowers, ideadtowers, ihottowers, j, m_hot_channels_i, m_hot_channels_o, ocoldtowers, odeadtowers, ohottowers, out, CDBTTree::SetIntValue(), T, T2, Write(), and CDBTTree::WriteCDBTTree().
|
overridevirtual |
Called at the end of each run.
Reimplemented from SubsysReco.
Definition at line 123 of file hcal_towerid.cc.
View newest version in sPHENIX GitHub at line 123 of file hcal_towerid.cc
References Espec_i, Espec_o, Fun4AllReturnCodes::EVENT_OK, Fspec_i, Fspec_o, Fspeci_i, Fspeci_o, goodevents, i, icoldtowers, ideadtowers, ihottowers, inner_f, itowerE, itowerF, ocoldtowers, odeadtowers, ohottowers, otowerE, otowerF, outer_f, sigmas_hi, and sigmas_lo.
|
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 49 of file hcal_towerid.cc.
View newest version in sPHENIX GitHub at line 49 of file hcal_towerid.cc
References Branch(), Fun4AllReturnCodes::EVENT_OK, m_hot_channels_i, m_hot_channels_o, out, Outfile, T, and T2.
|
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 63 of file hcal_towerid.cc.
View newest version in sPHENIX GitHub at line 63 of file hcal_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 284 of file hcal_towerid.cc.
View newest version in sPHENIX GitHub at line 284 of file hcal_towerid.cc
|
overridevirtual |
Called for each event. This is where you do the real work.
Reimplemented from SubsysReco.
Definition at line 69 of file hcal_towerid.cc.
View newest version in sPHENIX GitHub at line 69 of file hcal_towerid.cc
References Fun4AllReturnCodes::ABORTEVENT, adccut_i, adccut_o, energy, Fun4AllReturnCodes::EVENT_OK, goodevents, itowerE, itowerF, j, otowerE, otowerF, PHWHERE, and TowerInfoContainer::size().
|
overridevirtual |
Reset.
Reimplemented from SubsysReco.
Definition at line 278 of file hcal_towerid.cc.
View newest version in sPHENIX GitHub at line 278 of file hcal_towerid.cc
References Fun4AllReturnCodes::EVENT_OK.
|
overridevirtual |
Clean up internals after each event.
Reimplemented from SubsysReco.
Definition at line 116 of file hcal_towerid.cc.
View newest version in sPHENIX GitHub at line 116 of file hcal_towerid.cc
References Fun4AllReturnCodes::EVENT_OK.
|
private |
Definition at line 86 of file hcal_towerid.h.
View newest version in sPHENIX GitHub at line 86 of file hcal_towerid.h
Referenced by process_event().
|
private |
Definition at line 87 of file hcal_towerid.h.
View newest version in sPHENIX GitHub at line 87 of file hcal_towerid.h
Referenced by process_event().
|
private |
Definition at line 84 of file hcal_towerid.h.
View newest version in sPHENIX GitHub at line 84 of file hcal_towerid.h
Referenced by End().
|
private |
Definition at line 85 of file hcal_towerid.h.
View newest version in sPHENIX GitHub at line 85 of file hcal_towerid.h
Referenced by End().
|
private |
Definition at line 81 of file hcal_towerid.h.
View newest version in sPHENIX GitHub at line 81 of file hcal_towerid.h
|
private |
Definition at line 82 of file hcal_towerid.h.
View newest version in sPHENIX GitHub at line 82 of file hcal_towerid.h
|
private |
Definition at line 78 of file hcal_towerid.h.
View newest version in sPHENIX GitHub at line 78 of file hcal_towerid.h
|
private |
Definition at line 79 of file hcal_towerid.h.
View newest version in sPHENIX GitHub at line 79 of file hcal_towerid.h
|
private |
Definition at line 75 of file hcal_towerid.h.
View newest version in sPHENIX GitHub at line 75 of file hcal_towerid.h
|
private |
Definition at line 76 of file hcal_towerid.h.
View newest version in sPHENIX GitHub at line 76 of file hcal_towerid.h
|
private |
Definition at line 109 of file hcal_towerid.h.
View newest version in sPHENIX GitHub at line 109 of file hcal_towerid.h
Referenced by EndRun(), and process_event().
|
private |
Definition at line 106 of file hcal_towerid.h.
View newest version in sPHENIX GitHub at line 106 of file hcal_towerid.h
|
private |
Definition at line 103 of file hcal_towerid.h.
View newest version in sPHENIX GitHub at line 103 of file hcal_towerid.h
|
private |
Definition at line 101 of file hcal_towerid.h.
View newest version in sPHENIX GitHub at line 101 of file hcal_towerid.h
|
private |
Definition at line 90 of file hcal_towerid.h.
View newest version in sPHENIX GitHub at line 90 of file hcal_towerid.h
Referenced by EndRun().
|
private |
Definition at line 98 of file hcal_towerid.h.
View newest version in sPHENIX GitHub at line 98 of file hcal_towerid.h
Referenced by EndRun(), and process_event().
|
private |
Definition at line 95 of file hcal_towerid.h.
View newest version in sPHENIX GitHub at line 95 of file hcal_towerid.h
Referenced by EndRun(), and process_event().
|
private |
Definition at line 93 of file hcal_towerid.h.
View newest version in sPHENIX GitHub at line 93 of file hcal_towerid.h
|
private |
Definition at line 94 of file hcal_towerid.h.
View newest version in sPHENIX GitHub at line 94 of file hcal_towerid.h
|
private |
Definition at line 107 of file hcal_towerid.h.
View newest version in sPHENIX GitHub at line 107 of file hcal_towerid.h
|
private |
Definition at line 104 of file hcal_towerid.h.
View newest version in sPHENIX GitHub at line 104 of file hcal_towerid.h
|
private |
Definition at line 102 of file hcal_towerid.h.
View newest version in sPHENIX GitHub at line 102 of file hcal_towerid.h
|
private |
Definition at line 99 of file hcal_towerid.h.
View newest version in sPHENIX GitHub at line 99 of file hcal_towerid.h
Referenced by EndRun(), and process_event().
|
private |
Definition at line 96 of file hcal_towerid.h.
View newest version in sPHENIX GitHub at line 96 of file hcal_towerid.h
Referenced by EndRun(), and process_event().
|
private |
Definition at line 68 of file hcal_towerid.h.
View newest version in sPHENIX GitHub at line 68 of file hcal_towerid.h
|
private |
Definition at line 91 of file hcal_towerid.h.
View newest version in sPHENIX GitHub at line 91 of file hcal_towerid.h
Referenced by EndRun().
|
private |
Definition at line 73 of file hcal_towerid.h.
View newest version in sPHENIX GitHub at line 73 of file hcal_towerid.h
Referenced by Init().
|
private |
Definition at line 89 of file hcal_towerid.h.
View newest version in sPHENIX GitHub at line 89 of file hcal_towerid.h
Referenced by EndRun().
|
private |
Definition at line 88 of file hcal_towerid.h.
View newest version in sPHENIX GitHub at line 88 of file hcal_towerid.h
Referenced by EndRun().
|
private |
Definition at line 66 of file hcal_towerid.h.
View newest version in sPHENIX GitHub at line 66 of file hcal_towerid.h
|
private |
Definition at line 67 of file hcal_towerid.h.
View newest version in sPHENIX GitHub at line 67 of file hcal_towerid.h