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

#include <analysis/blob/master/EICAnalysis/ExclusiveReco.h>

+ Inheritance diagram for ExclusiveReco:
+ Collaboration diagram for ExclusiveReco:

Public Member Functions

 ExclusiveReco (std::string filename)
 
int Init (PHCompositeNode *)
 
int InitRun (PHCompositeNode *)
 
int process_event (PHCompositeNode *)
 
int End (PHCompositeNode *)
 Called at the end of all processing.
 
void set_beam_energies (float beam_electron, float beam_proton)
 
void set_do_process_dvmp (bool select)
 
- 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 AddInvariantMassInformation ()
 

Private Attributes

const float _mproton
 
bool _verbose
 
bool _save_towers
 
bool _save_tracks
 
bool _do_process_dvmp
 
int _ievent
 
int _total_pass
 
std::string _filename
 
TFile * _tfile
 
TTree * _tree_invariant_mass
 
TTree * _tree_event_reco
 
TTree * _tree_event_truth
 
float _beam_electron_ptotal
 
float _beam_hadron_ptotal
 
TrackProjectorPlaneECAL_trackproj
 
PHCompositeNode_topNode
 
std::vector< float > true_eta
 
std::vector< float > true_phi
 
std::vector< float > true_ptotal
 
std::vector< int > true_pid
 
std::vector< bool > is_scattered_lepton
 
std::vector< float > reco_eta
 
std::vector< float > reco_phi
 
std::vector< float > reco_ptotal
 
std::vector< float > reco_cluster_e
 
std::vector< int > reco_charge
 
std::vector< bool > reco_is_scattered_lepton
 
std::vector< float > _vect1
 
std::vector< float > _vect2
 
std::vector< float > _vect3
 
std::vector< float > _vect4
 
std::vector< float > _vect5
 
std::vector< float > _vect6
 

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 32 of file ExclusiveReco.h.

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

Constructor & Destructor Documentation

ExclusiveReco::ExclusiveReco ( std::string  filename)

Definition at line 36 of file ExclusiveReco.C.

View newest version in sPHENIX GitHub at line 36 of file ExclusiveReco.C

Member Function Documentation

int ExclusiveReco::AddInvariantMassInformation ( )
private

Definition at line 119 of file ExclusiveReco.C.

View newest version in sPHENIX GitHub at line 119 of file ExclusiveReco.C

References _topNode, _trackproj, _tree_event_reco, _tree_event_truth, _tree_invariant_mass, _vect1, _vect2, _vect3, _vect4, _vect5, _vect6, KFPMath::b, DVMPHelper::calculateInvariantMass_1(), DVMPHelper::calculateInvariantMass_2(), DVMPHelper::calculateInvariantMass_3(), DVMPHelper::calculateInvariantMass_4(), DVMPHelper::calculateInvariantMass_5(), DVMPHelper::calculateInvariantMass_6(), RawTowerDefs::convert_caloid_to_name(), RawTowerDefs::decode_caloid(), TruthTrackerHepMC::FindScatteredLepton(), PHHepMCGenEventMap::get(), TrackProjectorPlaneECAL::get_best_track(), SvtxTrack::get_charge(), TrackProjectorPlaneECAL::get_detector_from_cluster(), RawCluster::get_energy(), SvtxTrack::get_eta(), SvtxTrack::get_p(), SvtxTrack::get_phi(), RawCluster::get_towers(), RawClusterContainer::getCluster(), PHHepMCGenEvent::getEvent(), i, PHHepMCGenEventMap::identify(), ambiguity_solver_full_chain::idx, is_scattered_lepton, k, merge_hashes::p, PHWHERE, reco_charge, reco_cluster_e, reco_eta, reco_is_scattered_lepton, reco_phi, reco_ptotal, TrackProjectorPlaneECAL::set_detector(), TruthTrackerHepMC::set_hepmc_geneventmap(), RawClusterContainer::size(), true_eta, true_phi, true_pid, and true_ptotal.

Referenced by process_event().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int ExclusiveReco::End ( PHCompositeNode )
virtual

Called at the end of all processing.

Reimplemented from SubsysReco.

Definition at line 287 of file ExclusiveReco.C.

View newest version in sPHENIX GitHub at line 287 of file ExclusiveReco.C

References _tfile, _tree_event_reco, _tree_event_truth, and _tree_invariant_mass.

int ExclusiveReco::Init ( PHCompositeNode )
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 55 of file ExclusiveReco.C.

View newest version in sPHENIX GitHub at line 55 of file ExclusiveReco.C

References _filename, _ievent, _tfile, _topNode, _tree_event_reco, _tree_event_truth, _tree_invariant_mass, _vect1, _vect2, _vect3, _vect4, _vect5, _vect6, is_scattered_lepton, reco_charge, reco_cluster_e, reco_eta, reco_is_scattered_lepton, reco_phi, reco_ptotal, true_eta, true_phi, true_pid, and true_ptotal.

int ExclusiveReco::InitRun ( PHCompositeNode )
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 98 of file ExclusiveReco.C.

View newest version in sPHENIX GitHub at line 98 of file ExclusiveReco.C

References _trackproj.

int ExclusiveReco::process_event ( PHCompositeNode )
virtual

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

Reimplemented from SubsysReco.

Definition at line 105 of file ExclusiveReco.C.

View newest version in sPHENIX GitHub at line 105 of file ExclusiveReco.C

References _do_process_dvmp, _ievent, and AddInvariantMassInformation().

+ Here is the call graph for this function:

void ExclusiveReco::set_beam_energies ( float  beam_electron,
float  beam_proton 
)
inline

Definition at line 49 of file ExclusiveReco.h.

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

References _beam_electron_ptotal, and _beam_hadron_ptotal.

void ExclusiveReco::set_do_process_dvmp ( bool  select)
inline

Definition at line 56 of file ExclusiveReco.h.

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

References _do_process_dvmp.

Referenced by Fun4All_EICAnalysis_Exclusive().

+ Here is the caller graph for this function:

Member Data Documentation

float ExclusiveReco::_beam_electron_ptotal
private

Definition at line 89 of file ExclusiveReco.h.

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

Referenced by set_beam_energies().

float ExclusiveReco::_beam_hadron_ptotal
private

Definition at line 90 of file ExclusiveReco.h.

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

Referenced by set_beam_energies().

bool ExclusiveReco::_do_process_dvmp
private

Definition at line 71 of file ExclusiveReco.h.

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

Referenced by process_event(), and set_do_process_dvmp().

std::string ExclusiveReco::_filename
private

Definition at line 76 of file ExclusiveReco.h.

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

Referenced by Init().

int ExclusiveReco::_ievent
private

Definition at line 73 of file ExclusiveReco.h.

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

Referenced by Init(), and process_event().

const float ExclusiveReco::_mproton
private

Definition at line 66 of file ExclusiveReco.h.

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

bool ExclusiveReco::_save_towers
private

Definition at line 69 of file ExclusiveReco.h.

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

bool ExclusiveReco::_save_tracks
private

Definition at line 70 of file ExclusiveReco.h.

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

TFile* ExclusiveReco::_tfile
private

Definition at line 77 of file ExclusiveReco.h.

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

Referenced by End(), and Init().

PHCompositeNode* ExclusiveReco::_topNode
private

helper pointer to topNode

Definition at line 96 of file ExclusiveReco.h.

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

Referenced by AddInvariantMassInformation(), and Init().

int ExclusiveReco::_total_pass
private

Definition at line 74 of file ExclusiveReco.h.

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

TrackProjectorPlaneECAL* ExclusiveReco::_trackproj
private

Definition at line 93 of file ExclusiveReco.h.

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

Referenced by AddInvariantMassInformation(), and InitRun().

TTree* ExclusiveReco::_tree_event_reco
private

Definition at line 83 of file ExclusiveReco.h.

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

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

TTree* ExclusiveReco::_tree_event_truth
private

Definition at line 86 of file ExclusiveReco.h.

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

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

TTree* ExclusiveReco::_tree_invariant_mass
private

Definition at line 80 of file ExclusiveReco.h.

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

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

std::vector<float> ExclusiveReco::_vect1
private

Definition at line 108 of file ExclusiveReco.h.

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

Referenced by AddInvariantMassInformation(), and Init().

std::vector<float> ExclusiveReco::_vect2
private

Definition at line 109 of file ExclusiveReco.h.

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

Referenced by AddInvariantMassInformation(), and Init().

std::vector<float> ExclusiveReco::_vect3
private

Definition at line 110 of file ExclusiveReco.h.

View newest version in sPHENIX GitHub at line 110 of file ExclusiveReco.h

Referenced by AddInvariantMassInformation(), and Init().

std::vector<float> ExclusiveReco::_vect4
private

Definition at line 111 of file ExclusiveReco.h.

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

Referenced by AddInvariantMassInformation(), and Init().

std::vector<float> ExclusiveReco::_vect5
private

Definition at line 112 of file ExclusiveReco.h.

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

Referenced by AddInvariantMassInformation(), and Init().

std::vector<float> ExclusiveReco::_vect6
private

Definition at line 113 of file ExclusiveReco.h.

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

Referenced by AddInvariantMassInformation(), and Init().

bool ExclusiveReco::_verbose
private

Definition at line 68 of file ExclusiveReco.h.

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

std::vector<bool> ExclusiveReco::is_scattered_lepton
private

Definition at line 102 of file ExclusiveReco.h.

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

Referenced by AddInvariantMassInformation(), and Init().

std::vector<int> ExclusiveReco::reco_charge
private

Definition at line 105 of file ExclusiveReco.h.

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

Referenced by AddInvariantMassInformation(), and Init().

std::vector<float> ExclusiveReco::reco_cluster_e
private

Definition at line 104 of file ExclusiveReco.h.

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

Referenced by AddInvariantMassInformation(), and Init().

std::vector<float> ExclusiveReco::reco_eta
private

Definition at line 104 of file ExclusiveReco.h.

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

Referenced by AddInvariantMassInformation(), and Init().

std::vector<bool> ExclusiveReco::reco_is_scattered_lepton
private

Definition at line 106 of file ExclusiveReco.h.

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

Referenced by AddInvariantMassInformation(), and Init().

std::vector<float> ExclusiveReco::reco_phi
private

Definition at line 104 of file ExclusiveReco.h.

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

Referenced by AddInvariantMassInformation(), and Init().

std::vector<float> ExclusiveReco::reco_ptotal
private

Definition at line 104 of file ExclusiveReco.h.

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

Referenced by AddInvariantMassInformation(), and Init().

std::vector<float> ExclusiveReco::true_eta
private

Definition at line 100 of file ExclusiveReco.h.

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

Referenced by AddInvariantMassInformation(), and Init().

std::vector<float> ExclusiveReco::true_phi
private

Definition at line 100 of file ExclusiveReco.h.

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

Referenced by AddInvariantMassInformation(), and Init().

std::vector<int> ExclusiveReco::true_pid
private

Definition at line 101 of file ExclusiveReco.h.

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

Referenced by AddInvariantMassInformation(), and Init().

std::vector<float> ExclusiveReco::true_ptotal
private

Definition at line 100 of file ExclusiveReco.h.

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

Referenced by AddInvariantMassInformation(), and Init().


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