EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
particlegun.cxx File Reference
#include <iomanip>
#include <TDatabasePDG.h>
#include <TLorentzVector.h>
#include <TH1.h>
#include <TH2.h>
#include <TCanvas.h>
#include <TLegend.h>
#include <TStyle.h>
#include "eicsmeardetectors.hh"
#include "eicsmear/erhic/EventPythia.h"
#include "eicsmear/erhic/Particle.h"
#include "eicsmear/smear/EventSmear.h"
#include "eicsmear/smear/EventS.h"
#include "eicsmear/smear/Smear.h"
#include "eicsmear/smear/ParticleMCS.h"
+ Include dependency graph for particlegun.cxx:

Go to the source code of this file.

Classes

struct  EicSmearStep
 
struct  EicSmearStatistics
 

Enumerations

enum  EicSmearResults {
  null_particle, zero_e_smear_p, smear_e_zero_p, smear_e_smear_p,
  zero_e_zero_p
}
 

Functions

EicSmearStep DoSmearStep (int pdg, TLorentzVector &input_vect, Smear::Detector &detector)
 This function does smearing itself. by calling detector.Smear(not_smeared_prt);.
 
EicSmearStatistics Process (int pdg, Smear::Detector &detector)
 
void PrintSmearStats (const EicSmearStatistics &stat)
 
int main ()
 

Variables

const double deg_to_rad = 0.01745329251
 

Enumeration Type Documentation

Enumerator:
null_particle 
zero_e_smear_p 
smear_e_zero_p 
smear_e_smear_p 
zero_e_zero_p 

Definition at line 24 of file particlegun.cxx.

View newest version in sPHENIX GitHub at line 24 of file particlegun.cxx

Function Documentation

EicSmearStep DoSmearStep ( int  pdg,
TLorentzVector &  input_vect,
Smear::Detector detector 
)

This function does smearing itself. by calling detector.Smear(not_smeared_prt);.

Definition at line 59 of file particlegun.cxx.

View newest version in sPHENIX GitHub at line 59 of file particlegun.cxx

References Smear::ParticleMCS::Get4Vector(), Smear::ParticleMCS::GetE(), Smear::ParticleMCS::GetP(), EicSmearStep::not_smeared_lorentz, null_particle, EicSmearStep::result, erhic::ParticleMCbase::Set4Vector(), erhic::ParticleMCbase::SetId(), erhic::ParticleMCbase::SetIndex(), erhic::ParticleMCbase::SetStatus(), Smear::Detector::Smear(), smear_e_smear_p, smear_e_zero_p, EicSmearStep::smeared_lorentz, Acts::Test::step(), zero_e_smear_p, and zero_e_zero_p.

Referenced by Process().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int main ( void  )

Definition at line 189 of file particlegun.cxx.

View newest version in sPHENIX GitHub at line 189 of file particlegun.cxx

References BuildByName(), c, Smear::Detector::GetNDevices(), leg(), max, EicSmearStatistics::null_particles_eta, pid, PrintSmearStats(), Process(), EicSmearStatistics::smear_DelP, EicSmearStatistics::smear_e_smear_p_eta, EicSmearStatistics::smear_e_zero_p_eta, title(), ymax, and EicSmearStatistics::zero_e_smear_p_eta.

+ Here is the call graph for this function:

void PrintSmearStats ( const EicSmearStatistics stat)

Definition at line 176 of file particlegun.cxx.

View newest version in sPHENIX GitHub at line 176 of file particlegun.cxx

References EicSmearStatistics::null_particles, EicSmearStatistics::smear_e_smear_p, EicSmearStatistics::smear_e_zero_p, EicSmearStatistics::total_particles, EicSmearStatistics::zero_e_smear_p, and EicSmearStatistics::zero_e_zero_p.

Referenced by main().

+ Here is the caller graph for this function:

EicSmearStatistics Process ( int  pdg,
Smear::Detector detector 
)

Definition at line 109 of file particlegun.cxx.

View newest version in sPHENIX GitHub at line 109 of file particlegun.cxx

References Acts::Test::db, deg_to_rad, DoSmearStep(), charm_jet_coverage::mom, null_particle, EicSmearStep::result, smear_e_smear_p, smear_e_zero_p, EicSmearStep::smeared_lorentz, Acts::Test::step(), EicSmearStatistics::total_particles, zero_e_smear_p, and zero_e_zero_p.

Referenced by main().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

const double deg_to_rad = 0.01745329251

Definition at line 20 of file particlegun.cxx.

View newest version in sPHENIX GitHub at line 20 of file particlegun.cxx

Referenced by Process(), and TPC_Cells().