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

#include <analysis/blob/master/HCalHotTowerFinder/src/hcal_towerid.h>

+ Inheritance diagram for hcal_towerid:
+ Collaboration diagram for hcal_towerid:

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

Detailed Description

Definition at line 22 of file hcal_towerid.h.

View newest version in sPHENIX GitHub at line 22 of file hcal_towerid.h

Constructor & Destructor Documentation

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

hcal_towerid::~hcal_towerid ( )
override

Definition at line 44 of file hcal_towerid.cc.

View newest version in sPHENIX GitHub at line 44 of file hcal_towerid.cc

Member Function Documentation

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

+ Here is the call graph for this function:

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

int hcal_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 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.

+ Here is the call graph for this function:

int hcal_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 63 of file hcal_towerid.cc.

View newest version in sPHENIX GitHub at line 63 of file hcal_towerid.cc

References Fun4AllReturnCodes::EVENT_OK.

void hcal_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 284 of file hcal_towerid.cc.

View newest version in sPHENIX GitHub at line 284 of file hcal_towerid.cc

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

+ Here is the call graph for this function:

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

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

Member Data Documentation

float hcal_towerid::adccut_i
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().

float hcal_towerid::adccut_o
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().

const std::string hcal_towerid::cdbtreename_i
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().

const std::string hcal_towerid::cdbtreename_o
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().

TH1F* hcal_towerid::Espec_i = new TH1F("Espec_i","Espec_i",0,1,1)
private

Definition at line 81 of file hcal_towerid.h.

View newest version in sPHENIX GitHub at line 81 of file hcal_towerid.h

Referenced by End(), and EndRun().

TH1F* hcal_towerid::Espec_o = new TH1F("Espec_o","Espec_o",0,1,1)
private

Definition at line 82 of file hcal_towerid.h.

View newest version in sPHENIX GitHub at line 82 of file hcal_towerid.h

Referenced by End(), and EndRun().

TH1F* hcal_towerid::Fspec_i = new TH1F("Espec_i","Espec_i",0,1,1)
private

Definition at line 78 of file hcal_towerid.h.

View newest version in sPHENIX GitHub at line 78 of file hcal_towerid.h

Referenced by End(), and EndRun().

TH1F* hcal_towerid::Fspec_o = new TH1F("Fspec_i","Fspec_i",0,1,1)
private

Definition at line 79 of file hcal_towerid.h.

View newest version in sPHENIX GitHub at line 79 of file hcal_towerid.h

Referenced by End(), and EndRun().

TH1F* hcal_towerid::Fspeci_i = new TH1F("Fspeci_i","Fspeci_i",0,1,1)
private

Definition at line 75 of file hcal_towerid.h.

View newest version in sPHENIX GitHub at line 75 of file hcal_towerid.h

Referenced by End(), and EndRun().

TH1F* hcal_towerid::Fspeci_o = new TH1F("Fspeci_o","Fspeci_o",0,1,1)
private

Definition at line 76 of file hcal_towerid.h.

View newest version in sPHENIX GitHub at line 76 of file hcal_towerid.h

Referenced by End(), and EndRun().

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

int hcal_towerid::icoldtowers[1536] = {0}
private

Definition at line 106 of file hcal_towerid.h.

View newest version in sPHENIX GitHub at line 106 of file hcal_towerid.h

Referenced by End(), and EndRun().

int hcal_towerid::ideadtowers[1536] = {0}
private

Definition at line 103 of file hcal_towerid.h.

View newest version in sPHENIX GitHub at line 103 of file hcal_towerid.h

Referenced by End(), and EndRun().

int hcal_towerid::ihottowers[1536] = {0}
private

Definition at line 101 of file hcal_towerid.h.

View newest version in sPHENIX GitHub at line 101 of file hcal_towerid.h

Referenced by End(), and EndRun().

float hcal_towerid::inner_f
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().

float hcal_towerid::itowerE[1536] = {0}
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().

int hcal_towerid::itowerF[1536] = {0}
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().

int hcal_towerid::m_hot_channels_i
private

Definition at line 93 of file hcal_towerid.h.

View newest version in sPHENIX GitHub at line 93 of file hcal_towerid.h

Referenced by End(), and Init().

int hcal_towerid::m_hot_channels_o
private

Definition at line 94 of file hcal_towerid.h.

View newest version in sPHENIX GitHub at line 94 of file hcal_towerid.h

Referenced by End(), and Init().

int hcal_towerid::ocoldtowers[1536] = {0}
private

Definition at line 107 of file hcal_towerid.h.

View newest version in sPHENIX GitHub at line 107 of file hcal_towerid.h

Referenced by End(), and EndRun().

int hcal_towerid::odeadtowers[1536] = {0}
private

Definition at line 104 of file hcal_towerid.h.

View newest version in sPHENIX GitHub at line 104 of file hcal_towerid.h

Referenced by End(), and EndRun().

int hcal_towerid::ohottowers[1536] = {0}
private

Definition at line 102 of file hcal_towerid.h.

View newest version in sPHENIX GitHub at line 102 of file hcal_towerid.h

Referenced by End(), and EndRun().

float hcal_towerid::otowerE[1536] = {0}
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().

int hcal_towerid::otowerF[1536] = {0}
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().

TFile* hcal_towerid::out
private

Definition at line 68 of file hcal_towerid.h.

View newest version in sPHENIX GitHub at line 68 of file hcal_towerid.h

Referenced by End(), and Init().

float hcal_towerid::outer_f
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().

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

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

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

TTree* hcal_towerid::T
private

Definition at line 66 of file hcal_towerid.h.

View newest version in sPHENIX GitHub at line 66 of file hcal_towerid.h

Referenced by End(), and Init().

TTree* hcal_towerid::T2
private

Definition at line 67 of file hcal_towerid.h.

View newest version in sPHENIX GitHub at line 67 of file hcal_towerid.h

Referenced by End(), and Init().


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