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

UE background calculator. More...

#include <coresoftware/blob/master/offline/packages/jetbackground/DetermineTowerBackground.h>

+ Inheritance diagram for DetermineTowerBackground:
+ Collaboration diagram for DetermineTowerBackground:

Public Member Functions

 DetermineTowerBackground (const std::string &name="DetermineTowerBackground")
 
 ~DetermineTowerBackground () override
 
int InitRun (PHCompositeNode *topNode) override
 
int process_event (PHCompositeNode *topNode) override
 
void SetBackgroundOutputName (const std::string &name)
 
void SetSeedType (int seed_type)
 
void SetFlow (int do_flow)
 
void SetSeedJetD (float D)
 
void SetSeedJetPt (float pt)
 
void set_towerinfo (bool use_towerinfo)
 
- Public Member Functions inherited from SubsysReco
 ~SubsysReco () override
 
virtual int End (PHCompositeNode *)
 Called at the end of all processing.
 
virtual int EndRun (const int)
 Called at the end of each run.
 
virtual int Init (PHCompositeNode *)
 
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 CreateNode (PHCompositeNode *topNode)
 
void FillNode (PHCompositeNode *topNode)
 

Private Attributes

int _do_flow
 
float _v2
 
float _Psi2
 
std::vector< std::vector< float > > _UE
 
int _nStrips
 
int _nTowers
 
int _HCAL_NETA
 
int _HCAL_NPHI
 
std::vector< std::vector< float > > _EMCAL_E
 
std::vector< std::vector< float > > _IHCAL_E
 
std::vector< std::vector< float > > _OHCAL_E
 
std::vector< std::vector< int > > _EMCAL_T
 
std::vector< std::vector< int > > _IHCAL_T
 
std::vector< std::vector< int > > _OHCAL_T
 
std::vector< float > _FULLCALOFLOW_PHI_E
 
std::vector< float > _FULLCALOFLOW_PHI_VAL
 
std::string _backgroundName
 
int _seed_type
 
float _seed_jet_D
 
float _seed_jet_pt
 
std::vector< float > _seed_eta
 
std::vector< float > _seed_phi
 
Jet::PROPERTY _index_SeedD
 
Jet::PROPERTY _index_SeedItr
 
bool m_use_towerinfo = false
 

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

UE background calculator.

This module constructs dE/deta vs. eta and v2 estimates given an (unsubtracted) set of calorimeter towers and possible a set of exclusion jets (seeds)

Definition at line 28 of file DetermineTowerBackground.h.

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

Constructor & Destructor Documentation

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

Definition at line 43 of file DetermineTowerBackground.cc.

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

References _UE.

DetermineTowerBackground::~DetermineTowerBackground ( )
inlineoverride

Definition at line 32 of file DetermineTowerBackground.h.

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

Member Function Documentation

int DetermineTowerBackground::CreateNode ( PHCompositeNode topNode)
private

Definition at line 777 of file DetermineTowerBackground.cc.

View newest version in sPHENIX GitHub at line 777 of file DetermineTowerBackground.cc

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

Referenced by InitRun().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void DetermineTowerBackground::FillNode ( PHCompositeNode topNode)
private

Definition at line 814 of file DetermineTowerBackground.cc.

View newest version in sPHENIX GitHub at line 814 of file DetermineTowerBackground.cc

References _backgroundName, _nStrips, _nTowers, _Psi2, _UE, _v2, TowerBackground::set_nStripsUsedForFlow(), TowerBackground::set_nTowersUsedForBkg(), TowerBackground::set_Psi2(), TowerBackground::set_UE(), and TowerBackground::set_v2().

Referenced by process_event().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int DetermineTowerBackground::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 60 of file DetermineTowerBackground.cc.

View newest version in sPHENIX GitHub at line 60 of file DetermineTowerBackground.cc

References CreateNode().

+ Here is the call graph for this function:

int DetermineTowerBackground::process_event ( PHCompositeNode )
overridevirtual

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

Reimplemented from SubsysReco.

Definition at line 65 of file DetermineTowerBackground.cc.

View newest version in sPHENIX GitHub at line 65 of file DetermineTowerBackground.cc

References _do_flow, _EMCAL_E, _EMCAL_T, _FULLCALOFLOW_PHI_E, _FULLCALOFLOW_PHI_VAL, _HCAL_NETA, _HCAL_NPHI, _IHCAL_E, _IHCAL_T, _index_SeedD, _index_SeedItr, _nStrips, _nTowers, _OHCAL_E, _OHCAL_T, _Psi2, _seed_eta, _seed_jet_D, _seed_jet_pt, _seed_phi, _seed_type, _UE, _v2, Fun4AllReturnCodes::ABORTRUN, Acts::Test::at, channel(), mvtx_utils::comp(), INTTVtxZ::dphi, dR(), E, TowerInfoContainer::encode_key(), RawTowerDefs::encode_towerid(), eta, Fun4AllReturnCodes::EVENT_OK, FillNode(), PHG4Particle::get_e(), TowerInfo::get_energy(), RawTower::get_energy(), RawTowerGeom::get_eta(), RawTowerGeomContainer::get_etabin(), RawTowerGeomContainer::get_etabins(), RawTowerGeomContainer::get_etabounds(), RawTowerGeomContainer::get_etacenter(), RawTower::get_key(), RawTowerGeom::get_phi(), RawTowerGeomContainer::get_phibin(), RawTowerGeomContainer::get_phibins(), RawTowerGeomContainer::get_phibounds(), RawTowerGeomContainer::get_phicenter(), PHG4Particle::get_pid(), PHG4Particle::get_px(), PHG4Particle::get_py(), PHG4Particle::get_pz(), TowerInfo::get_time(), TowerInfoContainer::get_tower_at_channel(), RawTowerGeomContainer::get_tower_geometry(), PHG4Particle::get_track_id(), PHG4TruthInfoContainer::GetPrimaryParticleRange(), RawTowerContainer::getTower(), TowerInfoContainer::getTowerEtaBin(), TowerInfoContainer::getTowerPhiBin(), RawTowerContainer::getTowers(), RawTowerDefs::HCALIN, RawTowerDefs::HCALOUT, if(), PHG4TruthInfoContainer::isEmbeded(), layer, m_use_towerinfo, ActsTests::PropagationDatasets::phi, PHWHERE, JetContainer::property_index(), TowerInfoContainer::size(), RawTowerContainer::size(), t, total_E, and Fun4AllBase::Verbosity().

+ Here is the call graph for this function:

void DetermineTowerBackground::set_towerinfo ( bool  use_towerinfo)
inline

Definition at line 43 of file DetermineTowerBackground.h.

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

References m_use_towerinfo.

Referenced by HIJetReco().

+ Here is the caller graph for this function:

void DetermineTowerBackground::SetBackgroundOutputName ( const std::string &  name)
inline

Definition at line 37 of file DetermineTowerBackground.h.

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

References _backgroundName, and perf_headwind::name.

Referenced by Fun4All_JetVal(), Fun4All_testEtIso_Hijing(), Fun4All_testEtIso_Pythia(), G4_HIJetReco(), and HIJetReco().

+ Here is the caller graph for this function:

void DetermineTowerBackground::SetFlow ( int  do_flow)
inline

Definition at line 39 of file DetermineTowerBackground.h.

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

References _do_flow, and G4HIJETS::do_flow.

Referenced by Fun4All_JetVal(), Fun4All_testEtIso_Hijing(), Fun4All_testEtIso_Pythia(), G4_HIJetReco(), and HIJetReco().

+ Here is the caller graph for this function:

void DetermineTowerBackground::SetSeedJetD ( float  D)
inline

Definition at line 41 of file DetermineTowerBackground.h.

View newest version in sPHENIX GitHub at line 41 of file DetermineTowerBackground.h

References _seed_jet_D.

Referenced by Fun4All_JetVal(), Fun4All_testEtIso_Hijing(), Fun4All_testEtIso_Pythia(), G4_HIJetReco(), and HIJetReco().

+ Here is the caller graph for this function:

void DetermineTowerBackground::SetSeedJetPt ( float  pt)
inline

Definition at line 42 of file DetermineTowerBackground.h.

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

References _seed_jet_pt, and physmon_track_finding_ttbar::pt.

Referenced by Fun4All_JetVal(), Fun4All_testEtIso_Hijing(), Fun4All_testEtIso_Pythia(), G4_HIJetReco(), and HIJetReco().

+ Here is the caller graph for this function:

void DetermineTowerBackground::SetSeedType ( int  seed_type)
inline

Definition at line 38 of file DetermineTowerBackground.h.

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

References _seed_type.

Referenced by Fun4All_JetVal(), Fun4All_testEtIso_Hijing(), Fun4All_testEtIso_Pythia(), G4_HIJetReco(), and HIJetReco().

+ Here is the caller graph for this function:

Member Data Documentation

std::string DetermineTowerBackground::_backgroundName
private

Definition at line 74 of file DetermineTowerBackground.h.

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

Referenced by CreateNode(), FillNode(), and SetBackgroundOutputName().

int DetermineTowerBackground::_do_flow
private

Definition at line 51 of file DetermineTowerBackground.h.

View newest version in sPHENIX GitHub at line 51 of file DetermineTowerBackground.h

Referenced by process_event(), and SetFlow().

std::vector<std::vector<float> > DetermineTowerBackground::_EMCAL_E
private

Definition at line 61 of file DetermineTowerBackground.h.

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

Referenced by process_event().

std::vector<std::vector<int> > DetermineTowerBackground::_EMCAL_T
private

Definition at line 65 of file DetermineTowerBackground.h.

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

Referenced by process_event().

std::vector<float> DetermineTowerBackground::_FULLCALOFLOW_PHI_E
private

Definition at line 71 of file DetermineTowerBackground.h.

View newest version in sPHENIX GitHub at line 71 of file DetermineTowerBackground.h

Referenced by process_event().

std::vector<float> DetermineTowerBackground::_FULLCALOFLOW_PHI_VAL
private

Definition at line 72 of file DetermineTowerBackground.h.

View newest version in sPHENIX GitHub at line 72 of file DetermineTowerBackground.h

Referenced by process_event().

int DetermineTowerBackground::_HCAL_NETA
private

Definition at line 58 of file DetermineTowerBackground.h.

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

Referenced by process_event().

int DetermineTowerBackground::_HCAL_NPHI
private

Definition at line 59 of file DetermineTowerBackground.h.

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

Referenced by process_event().

std::vector<std::vector<float> > DetermineTowerBackground::_IHCAL_E
private

Definition at line 62 of file DetermineTowerBackground.h.

View newest version in sPHENIX GitHub at line 62 of file DetermineTowerBackground.h

Referenced by process_event().

std::vector<std::vector<int> > DetermineTowerBackground::_IHCAL_T
private

Definition at line 66 of file DetermineTowerBackground.h.

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

Referenced by process_event().

Jet::PROPERTY DetermineTowerBackground::_index_SeedD
private

Definition at line 83 of file DetermineTowerBackground.h.

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

Referenced by process_event().

Jet::PROPERTY DetermineTowerBackground::_index_SeedItr
private

Definition at line 84 of file DetermineTowerBackground.h.

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

Referenced by process_event().

int DetermineTowerBackground::_nStrips
private

Definition at line 55 of file DetermineTowerBackground.h.

View newest version in sPHENIX GitHub at line 55 of file DetermineTowerBackground.h

Referenced by FillNode(), and process_event().

int DetermineTowerBackground::_nTowers
private

Definition at line 56 of file DetermineTowerBackground.h.

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

Referenced by FillNode(), and process_event().

std::vector<std::vector<float> > DetermineTowerBackground::_OHCAL_E
private

Definition at line 63 of file DetermineTowerBackground.h.

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

Referenced by process_event().

std::vector<std::vector<int> > DetermineTowerBackground::_OHCAL_T
private

Definition at line 67 of file DetermineTowerBackground.h.

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

Referenced by process_event().

float DetermineTowerBackground::_Psi2
private

Definition at line 53 of file DetermineTowerBackground.h.

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

Referenced by FillNode(), and process_event().

std::vector<float> DetermineTowerBackground::_seed_eta
private

Definition at line 80 of file DetermineTowerBackground.h.

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

Referenced by process_event().

float DetermineTowerBackground::_seed_jet_D
private

Definition at line 77 of file DetermineTowerBackground.h.

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

Referenced by process_event(), and SetSeedJetD().

float DetermineTowerBackground::_seed_jet_pt
private

Definition at line 78 of file DetermineTowerBackground.h.

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

Referenced by process_event(), and SetSeedJetPt().

std::vector<float> DetermineTowerBackground::_seed_phi
private

Definition at line 81 of file DetermineTowerBackground.h.

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

Referenced by process_event().

int DetermineTowerBackground::_seed_type
private

Definition at line 76 of file DetermineTowerBackground.h.

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

Referenced by process_event(), and SetSeedType().

std::vector<std::vector<float> > DetermineTowerBackground::_UE
private

Definition at line 54 of file DetermineTowerBackground.h.

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

Referenced by DetermineTowerBackground(), FillNode(), and process_event().

float DetermineTowerBackground::_v2
private

Definition at line 52 of file DetermineTowerBackground.h.

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

Referenced by FillNode(), and process_event().

bool DetermineTowerBackground::m_use_towerinfo = false
private

Definition at line 86 of file DetermineTowerBackground.h.

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

Referenced by process_event(), and set_towerinfo().


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