Analysis Software
Documentation for sPHENIX simulation software
|
#include <analysis/blob/master/EMCal-analysis/EMCalAna/EMCalLikelihood.h>
Public Member Functions | |
EMCalLikelihood (const std::string &filename) | |
virtual | ~EMCalLikelihood () |
int | Init (PHCompositeNode *topNode) |
int | InitRun (PHCompositeNode *topNode) |
int | process_event (PHCompositeNode *topNode) |
int | End (PHCompositeNode *topNode) |
Called at the end of all processing. | |
Fun4AllHistoManager * | get_HistoManager () |
void | ApplyEMCalGanging (EMCalTrk *trk) |
void | UpdateEnergyDeposition (EMCalTrk *trk) |
void | UpdateEnergyDepositionLikelihood (EMCalTrk *trk) |
TH2 * | get_h2_Edep_Distribution_e () const |
void | set_h2_Edep_Distribution_e (TH2 *h2EdepDistributionE) |
TH2 * | get_h2_Edep_Distribution_pi () const |
void | set_h2_Edep_Distribution_pi (TH2 *h2EdepDistributionPi) |
double | get_center_cemc_ieta () const |
void | set_center_cemc_ieta (double centerCemcIeta) |
double | get_center_cemc_iphi () const |
void | set_center_cemc_iphi (double centerCemcIphi) |
double | get_center_hcalin_ieta () const |
void | set_center_hcalin_ieta (double centerHcalinIeta) |
double | get_center_hcalin_iphi () const |
void | set_center_hcalin_iphi (double centerHcalinIphi) |
double | get_width_cemc_ieta () const |
void | set_width_cemc_ieta (double widthCemcIeta) |
double | get_width_cemc_iphi () const |
void | set_width_cemc_iphi (double widthCemcIphi) |
double | get_width_hcalin_ieta () const |
void | set_width_hcalin_ieta (double widthHcalinIeta) |
double | get_width_hcalin_iphi () const |
void | set_width_hcalin_iphi (double widthHcalinIphi) |
void | do_ganging (unsigned int eta, unsigned int phi) |
Public Member Functions inherited from SubsysReco | |
~SubsysReco () override | |
virtual int | EndRun (const int) |
Called at the end of each run. | |
virtual int | Reset (PHCompositeNode *) |
Reset. | |
virtual int | ResetEvent (PHCompositeNode *) |
Clean up after each event. | |
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 | |
std::string | _filename |
int | _ievent |
EMCalTrk * | _trk |
double | center_cemc_iphi |
double | center_cemc_ieta |
double | center_hcalin_iphi |
double | center_hcalin_ieta |
double | width_cemc_iphi |
double | width_cemc_ieta |
double | width_hcalin_iphi |
double | width_hcalin_ieta |
TH2 * | h2_Edep_Distribution_e |
TH2 * | h2_Edep_Distribution_pi |
TH1 * | h1_ep_Distribution_e |
TH1 * | h1_ep_Distribution_pi |
bool | _do_ganging |
std::pair< unsigned int, unsigned int > | _ganging_size |
eta and phi ganging | |
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 31 of file EMCalLikelihood.h.
View newest version in sPHENIX GitHub at line 31 of file EMCalLikelihood.h
EMCalLikelihood::EMCalLikelihood | ( | const std::string & | filename | ) |
Definition at line 50 of file EMCalLikelihood.C.
View newest version in sPHENIX GitHub at line 50 of file EMCalLikelihood.C
|
virtual |
Definition at line 63 of file EMCalLikelihood.C.
View newest version in sPHENIX GitHub at line 63 of file EMCalLikelihood.C
void EMCalLikelihood::ApplyEMCalGanging | ( | EMCalTrk * | trk | ) |
Definition at line 262 of file EMCalLikelihood.C.
View newest version in sPHENIX GitHub at line 262 of file EMCalLikelihood.C
References _ganging_size, assert, EMCalTrk::cemc_energy, EMCalTrk::cemc_ieta, EMCalTrk::cemc_iphi, get_HistoManager(), Fun4AllHistoManager::getHisto(), EMCalTrk::gpx, EMCalTrk::gpy, EMCalTrk::gpz, EMCalTrk::gvx, EMCalTrk::gvy, EMCalTrk::gvz, EMCalTrk::Max_N_Tower, momentum, and proj().
Referenced by process_event().
|
inline |
Definition at line 179 of file EMCalLikelihood.h.
View newest version in sPHENIX GitHub at line 179 of file EMCalLikelihood.h
References _do_ganging, _ganging_size, eta, and ActsTests::PropagationDatasets::phi.
Referenced by Fun4All_EMCalLikelihood().
|
virtual |
Called at the end of all processing.
Reimplemented from SubsysReco.
Definition at line 103 of file EMCalLikelihood.C.
View newest version in sPHENIX GitHub at line 103 of file EMCalLikelihood.C
References _filename, assert, PHTFileServer::cd(), Fun4AllReturnCodes::EVENT_OK, PHTFileServer::get(), get_HistoManager(), Fun4AllHistoManager::getHisto(), i, and Fun4AllHistoManager::nHistos().
|
inline |
Definition at line 84 of file EMCalLikelihood.h.
View newest version in sPHENIX GitHub at line 84 of file EMCalLikelihood.h
References center_cemc_ieta.
|
inline |
Definition at line 96 of file EMCalLikelihood.h.
View newest version in sPHENIX GitHub at line 96 of file EMCalLikelihood.h
References center_cemc_iphi.
|
inline |
Definition at line 108 of file EMCalLikelihood.h.
View newest version in sPHENIX GitHub at line 108 of file EMCalLikelihood.h
References center_hcalin_ieta.
|
inline |
Definition at line 120 of file EMCalLikelihood.h.
View newest version in sPHENIX GitHub at line 120 of file EMCalLikelihood.h
References center_hcalin_iphi.
|
inline |
Definition at line 60 of file EMCalLikelihood.h.
View newest version in sPHENIX GitHub at line 60 of file EMCalLikelihood.h
References h2_Edep_Distribution_e.
|
inline |
Definition at line 72 of file EMCalLikelihood.h.
View newest version in sPHENIX GitHub at line 72 of file EMCalLikelihood.h
References h2_Edep_Distribution_pi.
Fun4AllHistoManager * EMCalLikelihood::get_HistoManager | ( | ) |
Definition at line 241 of file EMCalLikelihood.C.
View newest version in sPHENIX GitHub at line 241 of file EMCalLikelihood.C
References assert, Fun4AllServer::getHistoManager(), Fun4AllServer::instance(), and Fun4AllServer::registerHistoManager().
Referenced by ApplyEMCalGanging(), End(), and Init().
|
inline |
Definition at line 132 of file EMCalLikelihood.h.
View newest version in sPHENIX GitHub at line 132 of file EMCalLikelihood.h
References width_cemc_ieta.
|
inline |
Definition at line 144 of file EMCalLikelihood.h.
View newest version in sPHENIX GitHub at line 144 of file EMCalLikelihood.h
References width_cemc_iphi.
|
inline |
Definition at line 156 of file EMCalLikelihood.h.
View newest version in sPHENIX GitHub at line 156 of file EMCalLikelihood.h
References width_hcalin_ieta.
|
inline |
Definition at line 168 of file EMCalLikelihood.h.
View newest version in sPHENIX GitHub at line 168 of file EMCalLikelihood.h
References width_hcalin_iphi.
|
virtual |
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 118 of file EMCalLikelihood.C.
View newest version in sPHENIX GitHub at line 118 of file EMCalLikelihood.C
References _filename, assert, Fun4AllReturnCodes::EVENT_OK, PHTFileServer::get(), get_HistoManager(), h1_ep_Distribution_e, h1_ep_Distribution_pi, h2_Edep_Distribution_e, h2_Edep_Distribution_pi, PHTFileServer::open(), Fun4AllHistoManager::registerHisto(), ambiguity_solver_full_chain::x, and y.
|
virtual |
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.
Reimplemented from SubsysReco.
Definition at line 69 of file EMCalLikelihood.C.
View newest version in sPHENIX GitHub at line 69 of file EMCalLikelihood.C
References _ievent, _trk, Fun4AllReturnCodes::ABORTRUN, assert, Fun4AllReturnCodes::EVENT_OK, PHNodeIterator::findFirst(), Fun4AllBase::Name(), and PHWHERE.
|
virtual |
Called for each event. This is where you do the real work.
Reimplemented from SubsysReco.
Definition at line 220 of file EMCalLikelihood.C.
View newest version in sPHENIX GitHub at line 220 of file EMCalLikelihood.C
References _do_ganging, _ievent, _trk, ApplyEMCalGanging(), Fun4AllReturnCodes::EVENT_OK, h2_Edep_Distribution_e, h2_Edep_Distribution_pi, UpdateEnergyDeposition(), and UpdateEnergyDepositionLikelihood().
|
inline |
Definition at line 90 of file EMCalLikelihood.h.
View newest version in sPHENIX GitHub at line 90 of file EMCalLikelihood.h
References center_cemc_ieta.
Referenced by Fun4All_EMCalLikelihood().
|
inline |
Definition at line 102 of file EMCalLikelihood.h.
View newest version in sPHENIX GitHub at line 102 of file EMCalLikelihood.h
References center_cemc_iphi.
Referenced by Fun4All_EMCalLikelihood().
|
inline |
Definition at line 114 of file EMCalLikelihood.h.
View newest version in sPHENIX GitHub at line 114 of file EMCalLikelihood.h
References center_hcalin_ieta.
Referenced by Fun4All_EMCalLikelihood().
|
inline |
Definition at line 126 of file EMCalLikelihood.h.
View newest version in sPHENIX GitHub at line 126 of file EMCalLikelihood.h
References center_hcalin_iphi.
Referenced by Fun4All_EMCalLikelihood().
|
inline |
Definition at line 66 of file EMCalLikelihood.h.
View newest version in sPHENIX GitHub at line 66 of file EMCalLikelihood.h
References h2_Edep_Distribution_e.
Referenced by Fun4All_EMCalLikelihood().
|
inline |
Definition at line 78 of file EMCalLikelihood.h.
View newest version in sPHENIX GitHub at line 78 of file EMCalLikelihood.h
References h2_Edep_Distribution_pi.
Referenced by Fun4All_EMCalLikelihood().
|
inline |
Definition at line 138 of file EMCalLikelihood.h.
View newest version in sPHENIX GitHub at line 138 of file EMCalLikelihood.h
References width_cemc_ieta.
Referenced by Fun4All_EMCalLikelihood().
|
inline |
Definition at line 150 of file EMCalLikelihood.h.
View newest version in sPHENIX GitHub at line 150 of file EMCalLikelihood.h
References width_cemc_iphi.
Referenced by Fun4All_EMCalLikelihood().
|
inline |
Definition at line 162 of file EMCalLikelihood.h.
View newest version in sPHENIX GitHub at line 162 of file EMCalLikelihood.h
References width_hcalin_ieta.
Referenced by Fun4All_EMCalLikelihood().
|
inline |
Definition at line 174 of file EMCalLikelihood.h.
View newest version in sPHENIX GitHub at line 174 of file EMCalLikelihood.h
References width_hcalin_iphi.
Referenced by Fun4All_EMCalLikelihood().
void EMCalLikelihood::UpdateEnergyDeposition | ( | EMCalTrk * | trk | ) |
Definition at line 356 of file EMCalLikelihood.C.
View newest version in sPHENIX GitHub at line 356 of file EMCalLikelihood.C
References assert, EMCalTrk::cemc_energy, EMCalTrk::cemc_ieta, EMCalTrk::cemc_iphi, EMCalTrk::cemc_radius, EMCalTrk::cemc_sum_energy, EMCalTrk::cemc_sum_n_tower, center_cemc_ieta, center_cemc_iphi, center_hcalin_ieta, center_hcalin_iphi, EMCalTrk::hcalin_energy, EMCalTrk::hcalin_ieta, EMCalTrk::hcalin_iphi, EMCalTrk::hcalin_radius, EMCalTrk::hcalin_sum_energy, EMCalTrk::hcalin_sum_n_tower, EMCalTrk::Max_N_Tower, width_cemc_ieta, width_cemc_iphi, width_hcalin_ieta, and width_hcalin_iphi.
Referenced by process_event().
void EMCalLikelihood::UpdateEnergyDepositionLikelihood | ( | EMCalTrk * | trk | ) |
Definition at line 404 of file EMCalLikelihood.C.
View newest version in sPHENIX GitHub at line 404 of file EMCalLikelihood.C
References assert, EMCalTrk::get_ep(), h1_ep_Distribution_e, h1_ep_Distribution_pi, h2_Edep_Distribution_e, h2_Edep_Distribution_pi, EMCalTrk::hcalin_sum_energy, EMCalTrk::ll_edep_e, EMCalTrk::ll_edep_h, EMCalTrk::ll_ep_e, EMCalTrk::ll_ep_h, and Fun4AllBase::Name().
Referenced by process_event().
|
private |
Definition at line 208 of file EMCalLikelihood.h.
View newest version in sPHENIX GitHub at line 208 of file EMCalLikelihood.h
Referenced by do_ganging(), and process_event().
|
private |
Definition at line 187 of file EMCalLikelihood.h.
View newest version in sPHENIX GitHub at line 187 of file EMCalLikelihood.h
|
private |
eta and phi ganging
Definition at line 211 of file EMCalLikelihood.h.
View newest version in sPHENIX GitHub at line 211 of file EMCalLikelihood.h
Referenced by ApplyEMCalGanging(), and do_ganging().
|
private |
Definition at line 189 of file EMCalLikelihood.h.
View newest version in sPHENIX GitHub at line 189 of file EMCalLikelihood.h
Referenced by InitRun(), and process_event().
|
private |
Definition at line 191 of file EMCalLikelihood.h.
View newest version in sPHENIX GitHub at line 191 of file EMCalLikelihood.h
Referenced by InitRun(), and process_event().
|
private |
Definition at line 194 of file EMCalLikelihood.h.
View newest version in sPHENIX GitHub at line 194 of file EMCalLikelihood.h
Referenced by get_center_cemc_ieta(), set_center_cemc_ieta(), and UpdateEnergyDeposition().
|
private |
Definition at line 193 of file EMCalLikelihood.h.
View newest version in sPHENIX GitHub at line 193 of file EMCalLikelihood.h
Referenced by get_center_cemc_iphi(), set_center_cemc_iphi(), and UpdateEnergyDeposition().
|
private |
Definition at line 196 of file EMCalLikelihood.h.
View newest version in sPHENIX GitHub at line 196 of file EMCalLikelihood.h
Referenced by get_center_hcalin_ieta(), set_center_hcalin_ieta(), and UpdateEnergyDeposition().
|
private |
Definition at line 195 of file EMCalLikelihood.h.
View newest version in sPHENIX GitHub at line 195 of file EMCalLikelihood.h
Referenced by get_center_hcalin_iphi(), set_center_hcalin_iphi(), and UpdateEnergyDeposition().
|
private |
Definition at line 205 of file EMCalLikelihood.h.
View newest version in sPHENIX GitHub at line 205 of file EMCalLikelihood.h
Referenced by Init(), and UpdateEnergyDepositionLikelihood().
|
private |
Definition at line 206 of file EMCalLikelihood.h.
View newest version in sPHENIX GitHub at line 206 of file EMCalLikelihood.h
Referenced by Init(), and UpdateEnergyDepositionLikelihood().
|
private |
Definition at line 203 of file EMCalLikelihood.h.
View newest version in sPHENIX GitHub at line 203 of file EMCalLikelihood.h
Referenced by get_h2_Edep_Distribution_e(), Init(), process_event(), set_h2_Edep_Distribution_e(), and UpdateEnergyDepositionLikelihood().
|
private |
Definition at line 204 of file EMCalLikelihood.h.
View newest version in sPHENIX GitHub at line 204 of file EMCalLikelihood.h
Referenced by get_h2_Edep_Distribution_pi(), Init(), process_event(), set_h2_Edep_Distribution_pi(), and UpdateEnergyDepositionLikelihood().
|
private |
Definition at line 199 of file EMCalLikelihood.h.
View newest version in sPHENIX GitHub at line 199 of file EMCalLikelihood.h
Referenced by get_width_cemc_ieta(), set_width_cemc_ieta(), and UpdateEnergyDeposition().
|
private |
Definition at line 198 of file EMCalLikelihood.h.
View newest version in sPHENIX GitHub at line 198 of file EMCalLikelihood.h
Referenced by get_width_cemc_iphi(), set_width_cemc_iphi(), and UpdateEnergyDeposition().
|
private |
Definition at line 201 of file EMCalLikelihood.h.
View newest version in sPHENIX GitHub at line 201 of file EMCalLikelihood.h
Referenced by get_width_hcalin_ieta(), set_width_hcalin_ieta(), and UpdateEnergyDeposition().
|
private |
Definition at line 200 of file EMCalLikelihood.h.
View newest version in sPHENIX GitHub at line 200 of file EMCalLikelihood.h
Referenced by get_width_hcalin_iphi(), set_width_hcalin_iphi(), and UpdateEnergyDeposition().