Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
towerid Class Reference

#include <analysis/blob/master/EMCal-commissioning/emcalHotTowerFinder/src/towerid.h>

+ Inheritance diagram for towerid:
+ Collaboration diagram for towerid:

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")
 

Detailed Description

Definition at line 28 of file towerid.h.

View newest version in sPHENIX GitHub at line 28 of file towerid.h

Constructor & Destructor Documentation

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

towerid::~towerid ( )
override

Definition at line 47 of file towerid.cc.

View newest version in sPHENIX GitHub at line 47 of file towerid.cc

Member Function Documentation

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.

+ Here is the call graph for this function:

int towerid::End ( PHCompositeNode topNode)
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.

int towerid::EndRun ( const int  runnumber)
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.

+ Here is the call graph for this function:

int towerid::Init ( PHCompositeNode topNode)
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.

int towerid::InitRun ( PHCompositeNode topNode)
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.

void towerid::Print ( const std::string &  what = "ALL") const
overridevirtual

Print out some info about this module.

Parameters
whatcan 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

int towerid::process_event ( PHCompositeNode topNode)
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.

+ Here is the call graph for this function:

int towerid::Reset ( PHCompositeNode topNode)
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.

int towerid::ResetEvent ( PHCompositeNode topNode)
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().

+ Here is the call graph for this function:

Member Data Documentation

float towerid::adccut_k
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().

float towerid::adccut_sg
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().

const std::string towerid::cdbtreename
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().

TTree* towerid::channels
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().

int towerid::cold_regions = 0
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().

int towerid::coldIB[nIB] = {0}
private

Definition at line 137 of file towerid.h.

View newest version in sPHENIX GitHub at line 137 of file towerid.h

int towerid::coldsectors[nSectors] = {0}
private

Definition at line 138 of file towerid.h.

View newest version in sPHENIX GitHub at line 138 of file towerid.h

int towerid::coldtowers[nTowers] = {0}
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().

int towerid::deadtowers[nTowers] = {0}
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().

TH2F* towerid::Espec = NULL
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().

TH2F* towerid::Espec_IB = NULL
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().

TH2F* towerid::Espec_K = NULL
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().

TH2F* towerid::Espec_sector = NULL
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().

TH2F* towerid::Espec_SG = NULL
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().

TFile* towerid::fchannels
private

Definition at line 83 of file towerid.h.

View newest version in sPHENIX GitHub at line 83 of file towerid.h

Referenced by Init(), and WriteCDBTree().

int towerid::fiber_type = 0
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().

TH2F* towerid::Fspec = NULL
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().

TH2F* towerid::Fspec_IB = NULL
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().

TH2F* towerid::Fspec_K = NULL
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().

TH2F* towerid::Fspec_sector = NULL
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().

TH2F* towerid::Fspec_SG = NULL
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().

TH2F* towerid::Fspeci = NULL
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().

TH2F* towerid::Fspeci_IB = NULL
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().

TH2F* towerid::Fspeci_K = NULL
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().

TH2F* towerid::Fspeci_sector = NULL
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().

TH2F* towerid::Fspeci_SG = NULL
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().

int towerid::goodevents = 0
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().

TH1F* towerid::hEventCounter = NULL
private

Definition at line 91 of file towerid.h.

View newest version in sPHENIX GitHub at line 91 of file towerid.h

int towerid::hot_regions = 0
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().

int towerid::hotIB[nIB] = {0}
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().

int towerid::hotsectors[nSectors] = {0}
private

Definition at line 132 of file towerid.h.

View newest version in sPHENIX GitHub at line 132 of file towerid.h

int towerid::hottowers[nTowers] = {0}
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().

float towerid::ibE[nIB] = {0}
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().

float towerid::ibF[nIB] = {0}
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().

float towerid::Kur_f
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().

int towerid::m_hot_channels
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().

TFile* towerid::out
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().

std::string towerid::Outfile = "commissioning.root"
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().

float towerid::region_f
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().

float towerid::sectorE[nSectors] = {0}
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().

float towerid::sectorF[nSectors] = {0}
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().

float towerid::SG_f
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().

float towerid::sigmas_hi
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().

float towerid::sigmas_lo
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().

TTree* towerid::T
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().

float towerid::towerE[nTowers] = {0}
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().

float towerid::towerF[nTowers] = {0}
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().


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