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

#include <coresoftware/blob/master/offline/packages/eventplaneinfo/EventPlaneReco.h>

+ Inheritance diagram for EventPlaneReco:
+ Collaboration diagram for EventPlaneReco:

Public Member Functions

 EventPlaneReco (const std::string &name="EventPlaneReco")
 
 ~EventPlaneReco () override=default
 
int Init (PHCompositeNode *topNode) override
 
int InitRun (PHCompositeNode *topNode) override
 
int process_event (PHCompositeNode *topNode) override
 
int End (PHCompositeNode *) override
 Called at the end of all processing.
 
void ResetMe ()
 
void set_sepd_epreco (bool sepdEpReco)
 
void set_mbd_epreco (bool mbdEpReco)
 
void set_sEPD_Mip_cut (const float &e)
 
void set_MBD_Min_Qcut (const float &f)
 
void set_Ep_orders (const unsigned int &n)
 
void set_run_number (const unsigned int &r)
 
- 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 Member Functions

int CreateNodes (PHCompositeNode *topNode)
 

Private Attributes

unsigned int m_MaxOrder = 3
 
unsigned int m_runNo = 21813
 
const char * OutFileName
 
CDBHistoscdbhistosOut = nullptr
 
std::vector< std::vector
< double > > 
south_q
 
std::vector< std::vector
< double > > 
north_q
 
std::vector< std::pair< double,
double > > 
south_Qvec
 
std::vector< std::pair< double,
double > > 
north_Qvec
 
std::vector< std::vector
< double > > 
south_q_subtract
 
std::vector< std::vector
< double > > 
north_q_subtract
 
std::vector< doubletmp_south_psi
 
std::vector< doubletmp_north_psi
 
std::vector< doubleshift_north
 
std::vector< doubleshift_south
 
bool _mbdEpReco = false
 
bool _sepdEpReco = false
 
float _epd_e = 6.0
 
float _mbd_e = 10.0
 
float mbd_e_south
 
float mbd_e_north
 
float mbdQ
 
TProfile * tprof_mean_cos_north_mbd [6] = {}
 
TProfile * tprof_mean_sin_north_mbd [6] = {}
 
TProfile * tprof_mean_cos_south_mbd [6] = {}
 
TProfile * tprof_mean_sin_south_mbd [6] = {}
 
TProfile * tprof_mean_cos_north_mbd_input [6] = {}
 
TProfile * tprof_mean_sin_north_mbd_input [6] = {}
 
TProfile * tprof_mean_cos_south_mbd_input [6] = {}
 
TProfile * tprof_mean_sin_south_mbd_input [6] = {}
 
const int _imax = 6
 
TProfile * tprof_cos_north_mbd_shift [6][6] = {}
 
TProfile * tprof_sin_north_mbd_shift [6][6] = {}
 
TProfile * tprof_cos_south_mbd_shift [6][6] = {}
 
TProfile * tprof_sin_south_mbd_shift [6][6] = {}
 
TProfile * tprof_cos_north_mbd_shift_input [6][6] = {}
 
TProfile * tprof_sin_north_mbd_shift_input [6][6] = {}
 
TProfile * tprof_cos_south_mbd_shift_input [6][6] = {}
 
TProfile * tprof_sin_south_mbd_shift_input [6][6] = {}
 

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 19 of file EventPlaneReco.h.

View newest version in sPHENIX GitHub at line 19 of file EventPlaneReco.h

Constructor & Destructor Documentation

EventPlaneReco::EventPlaneReco ( const std::string &  name = "EventPlaneReco")

Definition at line 43 of file EventPlaneReco.cc.

View newest version in sPHENIX GitHub at line 43 of file EventPlaneReco.cc

References m_MaxOrder, mbd_e_north, mbd_e_south, mbdQ, north_q, north_q_subtract, shift_north, shift_south, south_q, south_q_subtract, tmp_north_psi, tmp_south_psi, and vec.

EventPlaneReco::~EventPlaneReco ( )
overridedefault

Member Function Documentation

int EventPlaneReco::CreateNodes ( PHCompositeNode topNode)
private

Definition at line 532 of file EventPlaneReco.cc.

View newest version in sPHENIX GitHub at line 532 of file EventPlaneReco.cc

References Fun4AllReturnCodes::ABORTRUN, PHCompositeNode::addNode(), eps, Fun4AllReturnCodes::EVENT_OK, PHNodeIterator::findFirst(), and PHWHERE.

Referenced by Init(), and InitRun().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int EventPlaneReco::End ( PHCompositeNode )
overridevirtual

Called at the end of all processing.

Reimplemented from SubsysReco.

Definition at line 593 of file EventPlaneReco.cc.

View newest version in sPHENIX GitHub at line 593 of file EventPlaneReco.cc

References cdbhistosOut, Fun4AllReturnCodes::EVENT_OK, and CDBHistos::WriteCDBHistos().

+ Here is the call graph for this function:

int EventPlaneReco::Init ( PHCompositeNode )
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 82 of file EventPlaneReco.cc.

View newest version in sPHENIX GitHub at line 82 of file EventPlaneReco.cc

References _imax, cdbhistosOut, CreateNodes(), CDBHistos::getHisto(), CDBHistos::LoadCalibrations(), m_MaxOrder, m_runNo, OutFileName, merge_hashes::p, CDBHistos::Print(), CDBHistos::registerHisto(), tprof_cos_north_mbd_shift, tprof_cos_north_mbd_shift_input, tprof_cos_south_mbd_shift, tprof_cos_south_mbd_shift_input, tprof_mean_cos_north_mbd, tprof_mean_cos_north_mbd_input, tprof_mean_cos_south_mbd, tprof_mean_cos_south_mbd_input, tprof_mean_sin_north_mbd, tprof_mean_sin_north_mbd_input, tprof_mean_sin_south_mbd, tprof_mean_sin_south_mbd_input, tprof_sin_north_mbd_shift, tprof_sin_north_mbd_shift_input, tprof_sin_south_mbd_shift, and tprof_sin_south_mbd_shift_input.

+ Here is the call graph for this function:

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

Reimplemented from SubsysReco.

Definition at line 182 of file EventPlaneReco.cc.

View newest version in sPHENIX GitHub at line 182 of file EventPlaneReco.cc

References CreateNodes(), and Fun4AllBase::Verbosity().

+ Here is the call graph for this function:

int EventPlaneReco::process_event ( PHCompositeNode )
overridevirtual

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

Reimplemented from SubsysReco.

Definition at line 193 of file EventPlaneReco.cc.

View newest version in sPHENIX GitHub at line 193 of file EventPlaneReco.cc

References _epd_e, _imax, _mbd_e, _mbdEpReco, _sepdEpReco, double(), TowerInfoDefs::encode_epd(), Fun4AllReturnCodes::EVENT_OK, MbdGeom::get_arm(), TowerInfo::get_energy(), TowerInfoDefs::get_epd_arm(), MbdPmtContainer::get_npmt(), MbdGeom::get_phi(), EpdGeom::get_phi(), MbdPmtContainer::get_pmt(), MbdPmtHit::get_q(), TowerInfoContainer::get_tower_at_channel(), Eventplaneinfo::GetPsi(), Eventplaneinfo::identify(), EventplaneinfoMap::identify(), EventplaneinfoMap::insert(), m_MaxOrder, mbd_e_north, mbd_e_south, EventplaneinfoMap::MBDN, mbdQ, EventplaneinfoMap::MBDS, north_q, north_q_subtract, north_Qvec, merge_hashes::p, ActsTests::PropagationDatasets::phi, PHWHERE, ResetMe(), EventplaneinfoMap::sEPDN, EventplaneinfoMap::sEPDS, Eventplaneinfo::set_qvector(), Eventplaneinfo::set_shifted_psi(), shift_north, shift_south, TowerInfoContainer::size(), south_q, south_q_subtract, south_Qvec, Acts::Test::tmp(), tmp_north_psi, tmp_south_psi, tprof_cos_north_mbd_shift, tprof_cos_north_mbd_shift_input, tprof_cos_south_mbd_shift, tprof_cos_south_mbd_shift_input, tprof_mean_cos_north_mbd, tprof_mean_cos_north_mbd_input, tprof_mean_cos_south_mbd, tprof_mean_cos_south_mbd_input, tprof_mean_sin_north_mbd, tprof_mean_sin_north_mbd_input, tprof_mean_sin_south_mbd, tprof_mean_sin_south_mbd_input, tprof_sin_north_mbd_shift, tprof_sin_north_mbd_shift_input, tprof_sin_south_mbd_shift, tprof_sin_south_mbd_shift_input, and Fun4AllBase::Verbosity().

+ Here is the call graph for this function:

void EventPlaneReco::ResetMe ( )

Definition at line 560 of file EventPlaneReco.cc.

View newest version in sPHENIX GitHub at line 560 of file EventPlaneReco.cc

References north_q, north_q_subtract, north_Qvec, shift_north, shift_south, south_q, south_q_subtract, south_Qvec, tmp_north_psi, tmp_south_psi, and vec.

Referenced by process_event().

+ Here is the caller graph for this function:

void EventPlaneReco::set_Ep_orders ( const unsigned int &  n)
inline

Definition at line 46 of file EventPlaneReco.h.

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

References m_MaxOrder, and n.

void EventPlaneReco::set_mbd_epreco ( bool  mbdEpReco)
inline

Definition at line 34 of file EventPlaneReco.h.

View newest version in sPHENIX GitHub at line 34 of file EventPlaneReco.h

References _mbdEpReco.

void EventPlaneReco::set_MBD_Min_Qcut ( const float &  f)
inline

Definition at line 42 of file EventPlaneReco.h.

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

References _mbd_e, and f.

void EventPlaneReco::set_run_number ( const unsigned int &  r)
inline

Definition at line 50 of file EventPlaneReco.h.

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

References m_runNo, and physmon_track_finding_ttbar::r.

void EventPlaneReco::set_sepd_epreco ( bool  sepdEpReco)
inline

Definition at line 30 of file EventPlaneReco.h.

View newest version in sPHENIX GitHub at line 30 of file EventPlaneReco.h

References _sepdEpReco.

void EventPlaneReco::set_sEPD_Mip_cut ( const float &  e)
inline

Definition at line 38 of file EventPlaneReco.h.

View newest version in sPHENIX GitHub at line 38 of file EventPlaneReco.h

References _epd_e, and Acts::UnitConstants::e.

Member Data Documentation

float EventPlaneReco::_epd_e = 6.0
private

Definition at line 86 of file EventPlaneReco.h.

View newest version in sPHENIX GitHub at line 86 of file EventPlaneReco.h

Referenced by process_event(), and set_sEPD_Mip_cut().

const int EventPlaneReco::_imax = 6
private

Definition at line 105 of file EventPlaneReco.h.

View newest version in sPHENIX GitHub at line 105 of file EventPlaneReco.h

Referenced by Init(), and process_event().

float EventPlaneReco::_mbd_e = 10.0
private

Definition at line 87 of file EventPlaneReco.h.

View newest version in sPHENIX GitHub at line 87 of file EventPlaneReco.h

Referenced by process_event(), and set_MBD_Min_Qcut().

bool EventPlaneReco::_mbdEpReco = false
private

Definition at line 83 of file EventPlaneReco.h.

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

Referenced by process_event(), and set_mbd_epreco().

bool EventPlaneReco::_sepdEpReco = false
private

Definition at line 84 of file EventPlaneReco.h.

View newest version in sPHENIX GitHub at line 84 of file EventPlaneReco.h

Referenced by process_event(), and set_sepd_epreco().

CDBHistos* EventPlaneReco::cdbhistosOut = nullptr
private

Definition at line 65 of file EventPlaneReco.h.

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

Referenced by End(), and Init().

unsigned int EventPlaneReco::m_MaxOrder = 3
private

Definition at line 59 of file EventPlaneReco.h.

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

Referenced by EventPlaneReco(), Init(), process_event(), and set_Ep_orders().

unsigned int EventPlaneReco::m_runNo = 21813
private

Definition at line 61 of file EventPlaneReco.h.

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

Referenced by Init(), and set_run_number().

float EventPlaneReco::mbd_e_north
private

Definition at line 90 of file EventPlaneReco.h.

View newest version in sPHENIX GitHub at line 90 of file EventPlaneReco.h

Referenced by EventPlaneReco(), and process_event().

float EventPlaneReco::mbd_e_south
private

Definition at line 89 of file EventPlaneReco.h.

View newest version in sPHENIX GitHub at line 89 of file EventPlaneReco.h

Referenced by EventPlaneReco(), and process_event().

float EventPlaneReco::mbdQ
private

Definition at line 91 of file EventPlaneReco.h.

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

Referenced by EventPlaneReco(), and process_event().

std::vector<std::vector<double> > EventPlaneReco::north_q
private

Definition at line 68 of file EventPlaneReco.h.

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

Referenced by EventPlaneReco(), process_event(), and ResetMe().

std::vector<std::vector<double> > EventPlaneReco::north_q_subtract
private

Definition at line 74 of file EventPlaneReco.h.

View newest version in sPHENIX GitHub at line 74 of file EventPlaneReco.h

Referenced by EventPlaneReco(), process_event(), and ResetMe().

std::vector<std::pair<double, double> > EventPlaneReco::north_Qvec
private

Definition at line 70 of file EventPlaneReco.h.

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

Referenced by process_event(), and ResetMe().

const char* EventPlaneReco::OutFileName
private

Definition at line 63 of file EventPlaneReco.h.

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

Referenced by Init().

std::vector<double> EventPlaneReco::shift_north
private

Definition at line 79 of file EventPlaneReco.h.

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

Referenced by EventPlaneReco(), process_event(), and ResetMe().

std::vector<double> EventPlaneReco::shift_south
private

Definition at line 80 of file EventPlaneReco.h.

View newest version in sPHENIX GitHub at line 80 of file EventPlaneReco.h

Referenced by EventPlaneReco(), process_event(), and ResetMe().

std::vector<std::vector<double> > EventPlaneReco::south_q
private

Definition at line 67 of file EventPlaneReco.h.

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

Referenced by EventPlaneReco(), process_event(), and ResetMe().

std::vector<std::vector<double> > EventPlaneReco::south_q_subtract
private

Definition at line 73 of file EventPlaneReco.h.

View newest version in sPHENIX GitHub at line 73 of file EventPlaneReco.h

Referenced by EventPlaneReco(), process_event(), and ResetMe().

std::vector<std::pair<double, double> > EventPlaneReco::south_Qvec
private

Definition at line 69 of file EventPlaneReco.h.

View newest version in sPHENIX GitHub at line 69 of file EventPlaneReco.h

Referenced by process_event(), and ResetMe().

std::vector<double> EventPlaneReco::tmp_north_psi
private

Definition at line 78 of file EventPlaneReco.h.

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

Referenced by EventPlaneReco(), process_event(), and ResetMe().

std::vector<double> EventPlaneReco::tmp_south_psi
private

Definition at line 77 of file EventPlaneReco.h.

View newest version in sPHENIX GitHub at line 77 of file EventPlaneReco.h

Referenced by EventPlaneReco(), process_event(), and ResetMe().

TProfile* EventPlaneReco::tprof_cos_north_mbd_shift[6][6] = {}
private

Definition at line 106 of file EventPlaneReco.h.

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

Referenced by Init(), and process_event().

TProfile* EventPlaneReco::tprof_cos_north_mbd_shift_input[6][6] = {}
private

Definition at line 111 of file EventPlaneReco.h.

View newest version in sPHENIX GitHub at line 111 of file EventPlaneReco.h

Referenced by Init(), and process_event().

TProfile* EventPlaneReco::tprof_cos_south_mbd_shift[6][6] = {}
private

Definition at line 108 of file EventPlaneReco.h.

View newest version in sPHENIX GitHub at line 108 of file EventPlaneReco.h

Referenced by Init(), and process_event().

TProfile* EventPlaneReco::tprof_cos_south_mbd_shift_input[6][6] = {}
private

Definition at line 113 of file EventPlaneReco.h.

View newest version in sPHENIX GitHub at line 113 of file EventPlaneReco.h

Referenced by Init(), and process_event().

TProfile* EventPlaneReco::tprof_mean_cos_north_mbd[6] = {}
private

Definition at line 94 of file EventPlaneReco.h.

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

Referenced by Init(), and process_event().

TProfile* EventPlaneReco::tprof_mean_cos_north_mbd_input[6] = {}
private

Definition at line 99 of file EventPlaneReco.h.

View newest version in sPHENIX GitHub at line 99 of file EventPlaneReco.h

Referenced by Init(), and process_event().

TProfile* EventPlaneReco::tprof_mean_cos_south_mbd[6] = {}
private

Definition at line 96 of file EventPlaneReco.h.

View newest version in sPHENIX GitHub at line 96 of file EventPlaneReco.h

Referenced by Init(), and process_event().

TProfile* EventPlaneReco::tprof_mean_cos_south_mbd_input[6] = {}
private

Definition at line 101 of file EventPlaneReco.h.

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

Referenced by Init(), and process_event().

TProfile* EventPlaneReco::tprof_mean_sin_north_mbd[6] = {}
private

Definition at line 95 of file EventPlaneReco.h.

View newest version in sPHENIX GitHub at line 95 of file EventPlaneReco.h

Referenced by Init(), and process_event().

TProfile* EventPlaneReco::tprof_mean_sin_north_mbd_input[6] = {}
private

Definition at line 100 of file EventPlaneReco.h.

View newest version in sPHENIX GitHub at line 100 of file EventPlaneReco.h

Referenced by Init(), and process_event().

TProfile* EventPlaneReco::tprof_mean_sin_south_mbd[6] = {}
private

Definition at line 97 of file EventPlaneReco.h.

View newest version in sPHENIX GitHub at line 97 of file EventPlaneReco.h

Referenced by Init(), and process_event().

TProfile* EventPlaneReco::tprof_mean_sin_south_mbd_input[6] = {}
private

Definition at line 102 of file EventPlaneReco.h.

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

Referenced by Init(), and process_event().

TProfile* EventPlaneReco::tprof_sin_north_mbd_shift[6][6] = {}
private

Definition at line 107 of file EventPlaneReco.h.

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

Referenced by Init(), and process_event().

TProfile* EventPlaneReco::tprof_sin_north_mbd_shift_input[6][6] = {}
private

Definition at line 112 of file EventPlaneReco.h.

View newest version in sPHENIX GitHub at line 112 of file EventPlaneReco.h

Referenced by Init(), and process_event().

TProfile* EventPlaneReco::tprof_sin_south_mbd_shift[6][6] = {}
private

Definition at line 109 of file EventPlaneReco.h.

View newest version in sPHENIX GitHub at line 109 of file EventPlaneReco.h

Referenced by Init(), and process_event().

TProfile* EventPlaneReco::tprof_sin_south_mbd_shift_input[6][6] = {}
private

Definition at line 114 of file EventPlaneReco.h.

View newest version in sPHENIX GitHub at line 114 of file EventPlaneReco.h

Referenced by Init(), and process_event().


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