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

#include <analysis/blob/master/HCalCosmicCalib/src/HCalCalibTree.h>

+ Inheritance diagram for HCalCalibTree:
+ Collaboration diagram for HCalCalibTree:

Public Member Functions

 HCalCalibTree (const std::string &name="HCalCalibTree", const std::string &fname="HCalCalibtuple.root", const std::string &prefix="TOWERSV2_")
 constructor
 
virtual ~HCalCalibTree ()
 destructor
 
int Init (PHCompositeNode *) override
 Processing.
 
int process_event (PHCompositeNode *) override
 
int process_towers (PHCompositeNode *)
 
int ResetEvent (PHCompositeNode *topNode) override
 Clean up after each event.
 
int End (PHCompositeNode *) override
 Called at the end of all processing.
 
void Detector (const std::string &name)
 
void TowerPrefix (const std::string &name)
 
- Public Member Functions inherited from SubsysReco
 ~SubsysReco () override
 
virtual int EndRun (const int)
 Called at the end of each run.
 
virtual int InitRun (PHCompositeNode *)
 
virtual int Reset (PHCompositeNode *)
 Reset.
 
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.
 

Protected Attributes

std::string detector
 
std::string prefix
 
Fun4AllHistoManagerhm = nullptr
 
float tower_threshold
 
float vert_threshold
 
float veto_threshold
 
const float tower_threshold_data = 500
 
const float vert_threshold_data = 1500
 
const float veto_threshold_data = 350
 
const float tower_threshold_sim = 0.001767
 
const float vert_threshold_sim = 0.0053
 
const float veto_threshold_sim = 0.001237
 
TH1F * h_channel_hist [n_etabin][n_phibin] = {{nullptr}}
 
TH2F * h_waveformchi2 = nullptr
 
TH1F * h_check = nullptr
 
TH1F * h_eventnumber_record
 
std::string outfilename
 
int event
 
int goodevent
 
int goodevent_check
 
float m_peak [n_etabin][n_phibin]
 
float m_chi2 [n_etabin][n_phibin]
 
TFile * outfile
 

Static Protected Attributes

static const int n_etabin = 24
 
static const int n_phibin = 64
 

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 17 of file HCalCalibTree.h.

View newest version in sPHENIX GitHub at line 17 of file HCalCalibTree.h

Constructor & Destructor Documentation

HCalCalibTree::HCalCalibTree ( const std::string &  name = "HCalCalibTree",
const std::string &  fname = "HCalCalibtuple.root",
const std::string &  prefix = "TOWERSV2_" 
)

constructor

Definition at line 23 of file HCalCalibTree.cc.

View newest version in sPHENIX GitHub at line 23 of file HCalCalibTree.cc

HCalCalibTree::~HCalCalibTree ( )
virtual

destructor

Definition at line 28 of file HCalCalibTree.cc.

View newest version in sPHENIX GitHub at line 28 of file HCalCalibTree.cc

References hm.

Member Function Documentation

void HCalCalibTree::Detector ( const std::string &  name)
inline

Definition at line 32 of file HCalCalibTree.h.

View newest version in sPHENIX GitHub at line 32 of file HCalCalibTree.h

References perf_headwind::name.

Referenced by Fun4All_HCalCalib(), and Fun4All_HCalCalib_sim().

+ Here is the caller graph for this function:

int HCalCalibTree::End ( PHCompositeNode )
overridevirtual

Called at the end of all processing.

Reimplemented from SubsysReco.

Definition at line 129 of file HCalCalibTree.cc.

View newest version in sPHENIX GitHub at line 129 of file HCalCalibTree.cc

References Fun4AllHistoManager::dumpHistos(), event, goodevent, h_channel_hist, h_check, h_eventnumber_record, h_waveformchi2, hm, n_etabin, n_phibin, outfile, and outfilename.

+ Here is the call graph for this function:

int HCalCalibTree::Init ( PHCompositeNode )
overridevirtual

Processing.

Reimplemented from SubsysReco.

Definition at line 32 of file HCalCalibTree.cc.

View newest version in sPHENIX GitHub at line 32 of file HCalCalibTree.cc

References goodevent, h_channel_hist, h_check, h_eventnumber_record, h_waveformchi2, hm, Fun4AllServer::instance(), n_etabin, n_phibin, Fun4AllBase::Name(), outfile, outfilename, prefix, to_string(), tower_threshold, tower_threshold_data, tower_threshold_sim, vert_threshold, vert_threshold_data, vert_threshold_sim, veto_threshold, veto_threshold_data, and veto_threshold_sim.

+ Here is the call graph for this function:

int HCalCalibTree::process_event ( PHCompositeNode )
overridevirtual

Called for each event. This is where you do the real work.

Reimplemented from SubsysReco.

Definition at line 72 of file HCalCalibTree.cc.

View newest version in sPHENIX GitHub at line 72 of file HCalCalibTree.cc

References event, Fun4AllReturnCodes::EVENT_OK, goodevent, goodevent_check, and process_towers().

+ Here is the call graph for this function:

int HCalCalibTree::process_towers ( PHCompositeNode topNode)

Definition at line 81 of file HCalCalibTree.cc.

View newest version in sPHENIX GitHub at line 81 of file HCalCalibTree.cc

References channel(), detector, TowerInfoContainer::encode_key(), energy, Fun4AllReturnCodes::EVENT_OK, TowerInfo::get_chi2(), TowerInfo::get_energy(), TowerInfoContainer::get_tower_at_channel(), TowerInfoContainer::getTowerEtaBin(), TowerInfoContainer::getTowerPhiBin(), goodevent_check, h_channel_hist, h_check, h_waveformchi2, m_chi2, m_peak, n_etabin, n_phibin, prefix, TowerInfoContainer::size(), size, tower_threshold, vert_threshold, and veto_threshold.

Referenced by process_event().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int HCalCalibTree::ResetEvent ( PHCompositeNode )
overridevirtual

Clean up after each event.

Reimplemented from SubsysReco.

Definition at line 125 of file HCalCalibTree.cc.

View newest version in sPHENIX GitHub at line 125 of file HCalCalibTree.cc

References Fun4AllReturnCodes::EVENT_OK.

void HCalCalibTree::TowerPrefix ( const std::string &  name)
inline

Definition at line 33 of file HCalCalibTree.h.

View newest version in sPHENIX GitHub at line 33 of file HCalCalibTree.h

References perf_headwind::name, and prefix.

Member Data Documentation

std::string HCalCalibTree::detector
protected

Definition at line 36 of file HCalCalibTree.h.

View newest version in sPHENIX GitHub at line 36 of file HCalCalibTree.h

Referenced by process_towers().

int HCalCalibTree::event
protected

Definition at line 63 of file HCalCalibTree.h.

View newest version in sPHENIX GitHub at line 63 of file HCalCalibTree.h

Referenced by End(), and process_event().

int HCalCalibTree::goodevent
protected

Definition at line 64 of file HCalCalibTree.h.

View newest version in sPHENIX GitHub at line 64 of file HCalCalibTree.h

Referenced by End(), Init(), and process_event().

int HCalCalibTree::goodevent_check
protected

Definition at line 65 of file HCalCalibTree.h.

View newest version in sPHENIX GitHub at line 65 of file HCalCalibTree.h

Referenced by process_event(), and process_towers().

TH1F* HCalCalibTree::h_channel_hist[n_etabin][n_phibin] = {{nullptr}}
protected

Definition at line 56 of file HCalCalibTree.h.

View newest version in sPHENIX GitHub at line 56 of file HCalCalibTree.h

Referenced by End(), Init(), and process_towers().

TH1F* HCalCalibTree::h_check = nullptr
protected

Definition at line 58 of file HCalCalibTree.h.

View newest version in sPHENIX GitHub at line 58 of file HCalCalibTree.h

Referenced by End(), Init(), and process_towers().

TH1F* HCalCalibTree::h_eventnumber_record
protected

Definition at line 59 of file HCalCalibTree.h.

View newest version in sPHENIX GitHub at line 59 of file HCalCalibTree.h

Referenced by End(), and Init().

TH2F* HCalCalibTree::h_waveformchi2 = nullptr
protected

Definition at line 57 of file HCalCalibTree.h.

View newest version in sPHENIX GitHub at line 57 of file HCalCalibTree.h

Referenced by End(), Init(), and process_towers().

Fun4AllHistoManager* HCalCalibTree::hm = nullptr
protected

Definition at line 39 of file HCalCalibTree.h.

View newest version in sPHENIX GitHub at line 39 of file HCalCalibTree.h

Referenced by End(), Init(), and ~HCalCalibTree().

float HCalCalibTree::m_chi2[n_etabin][n_phibin]
protected

Definition at line 68 of file HCalCalibTree.h.

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

Referenced by process_towers().

float HCalCalibTree::m_peak[n_etabin][n_phibin]
protected

Definition at line 67 of file HCalCalibTree.h.

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

Referenced by process_towers().

const int HCalCalibTree::n_etabin = 24
staticprotected

Definition at line 42 of file HCalCalibTree.h.

View newest version in sPHENIX GitHub at line 42 of file HCalCalibTree.h

Referenced by End(), Init(), and process_towers().

const int HCalCalibTree::n_phibin = 64
staticprotected

Definition at line 43 of file HCalCalibTree.h.

View newest version in sPHENIX GitHub at line 43 of file HCalCalibTree.h

Referenced by End(), Init(), and process_towers().

TFile* HCalCalibTree::outfile
protected

Definition at line 70 of file HCalCalibTree.h.

View newest version in sPHENIX GitHub at line 70 of file HCalCalibTree.h

Referenced by End(), and Init().

std::string HCalCalibTree::outfilename
protected

Definition at line 61 of file HCalCalibTree.h.

View newest version in sPHENIX GitHub at line 61 of file HCalCalibTree.h

Referenced by End(), and Init().

std::string HCalCalibTree::prefix
protected

Definition at line 37 of file HCalCalibTree.h.

View newest version in sPHENIX GitHub at line 37 of file HCalCalibTree.h

Referenced by Init(), process_towers(), and TowerPrefix().

float HCalCalibTree::tower_threshold
protected

Definition at line 46 of file HCalCalibTree.h.

View newest version in sPHENIX GitHub at line 46 of file HCalCalibTree.h

Referenced by Init(), and process_towers().

const float HCalCalibTree::tower_threshold_data = 500
protected

Definition at line 48 of file HCalCalibTree.h.

View newest version in sPHENIX GitHub at line 48 of file HCalCalibTree.h

Referenced by Init().

const float HCalCalibTree::tower_threshold_sim = 0.001767
protected

Definition at line 52 of file HCalCalibTree.h.

View newest version in sPHENIX GitHub at line 52 of file HCalCalibTree.h

Referenced by Init().

float HCalCalibTree::vert_threshold
protected

Definition at line 46 of file HCalCalibTree.h.

View newest version in sPHENIX GitHub at line 46 of file HCalCalibTree.h

Referenced by Init(), and process_towers().

const float HCalCalibTree::vert_threshold_data = 1500
protected

Definition at line 49 of file HCalCalibTree.h.

View newest version in sPHENIX GitHub at line 49 of file HCalCalibTree.h

Referenced by Init().

const float HCalCalibTree::vert_threshold_sim = 0.0053
protected

Definition at line 53 of file HCalCalibTree.h.

View newest version in sPHENIX GitHub at line 53 of file HCalCalibTree.h

Referenced by Init().

float HCalCalibTree::veto_threshold
protected

Definition at line 46 of file HCalCalibTree.h.

View newest version in sPHENIX GitHub at line 46 of file HCalCalibTree.h

Referenced by Init(), and process_towers().

const float HCalCalibTree::veto_threshold_data = 350
protected

Definition at line 50 of file HCalCalibTree.h.

View newest version in sPHENIX GitHub at line 50 of file HCalCalibTree.h

Referenced by Init().

const float HCalCalibTree::veto_threshold_sim = 0.001237
protected

Definition at line 54 of file HCalCalibTree.h.

View newest version in sPHENIX GitHub at line 54 of file HCalCalibTree.h

Referenced by Init().


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