FairRoot/PandaRoot
Public Member Functions | Public Attributes | List of all members
PndPiPiGenerator Class Reference

#include <PndPiPiGenerator.h>

Inheritance diagram for PndPiPiGenerator:

Public Member Functions

 PndPiPiGenerator ()
 
virtual ~PndPiPiGenerator ()
 
void SetBeamMom (Double_t in_P)
 
void SetSeed (Int_t in_seed)
 
void SetCosThetaMin (Double_t in_cos_theta_min)
 
void SetCosThetaMax (Double_t in_cos_theta_max)
 
virtual Bool_t ReadEvent (FairPrimaryGenerator *primGen)
 
Bool_t Init ()
 
 ClassDef (PndPiPiGenerator, 1)
 

Public Attributes

Double_t P
 
Int_t seed
 
Double_t cos_theta_min
 
Double_t cos_theta_max
 
Double_t piplus_p [4]
 
Double_t piminus_p [4]
 

Detailed Description

Definition at line 46 of file PndPiPiGenerator.h.

Constructor & Destructor Documentation

PndPiPiGenerator::PndPiPiGenerator ( )

Default constructor.

Author
Manuel Zambrana zambr.nosp@m.ana@.nosp@m.kph.u.nosp@m.ni-m.nosp@m.ainz..nosp@m.de and Dmitry Khaneftd khane.nosp@m.ftd@.nosp@m.kph.u.nosp@m.ni-m.nosp@m.ainz..nosp@m.de

Mainz, May 2011

Definition at line 15 of file PndPiPiGenerator.cxx.

15  : P(0), seed(0), cos_theta_min(0), cos_theta_max(1)
16 {
17 }
PndPiPiGenerator::~PndPiPiGenerator ( )
virtual

Destructor

Definition at line 19 of file PndPiPiGenerator.cxx.

20 {
21 }

Member Function Documentation

PndPiPiGenerator::ClassDef ( PndPiPiGenerator  ,
 
)
Bool_t PndPiPiGenerator::Init ( )

Initializer

Definition at line 23 of file PndPiPiGenerator.cxx.

References cos_theta_max, cos_theta_min, mz_pp_to_pipi_vandewi_init(), P, and seed.

24 {
26  return kTRUE;
27 }
void mz_pp_to_pipi_vandewi_init(int seed, double P, double cos_theta_min, double cos_theta_max)
Bool_t PndPiPiGenerator::ReadEvent ( FairPrimaryGenerator *  primGen)
virtual

Pass event to the PANDAroot

Definition at line 29 of file PndPiPiGenerator.cxx.

References cos_theta_max, cos_theta_min, mz_pp_to_pipi_vandewi_event(), P, piminus_p, and piplus_p.

30 {
32 
33  primGen->AddTrack(211, piplus_p[1], piplus_p[2], piplus_p[3], 0.0, 0.0, 0.0);
34  primGen->AddTrack(-211, piminus_p[1], piminus_p[2], piminus_p[3], 0.0, 0.0, 0.0);
35 
36  return kTRUE;
37 }
Double_t piplus_p[4]
Double_t piminus_p[4]
void mz_pp_to_pipi_vandewi_event(double P, double cos_theta_min, double cos_theta_max, double *piplus_p, double *piminus_p)
FairPrimaryGenerator * primGen
Definition: sim_emc_apd.C:81
void PndPiPiGenerator::SetBeamMom ( Double_t  in_P)
inline

Set parameters of event generator

Definition at line 56 of file PndPiPiGenerator.h.

References P.

Referenced by PndMasterRunSim::UsePiPiGenerator().

56 {P = in_P;}; // set pbar momentum
void PndPiPiGenerator::SetCosThetaMax ( Double_t  in_cos_theta_max)
inline

Definition at line 59 of file PndPiPiGenerator.h.

Referenced by PndMasterRunSim::UsePiPiGenerator().

59 {cos_theta_max = in_cos_theta_max;}; // set cos(theta*) max in the pbarp CM frame
void PndPiPiGenerator::SetCosThetaMin ( Double_t  in_cos_theta_min)
inline

Definition at line 58 of file PndPiPiGenerator.h.

Referenced by PndMasterRunSim::UsePiPiGenerator().

58 {cos_theta_min = in_cos_theta_min;}; // set cos(theta*) min in the pbarp CM frame
void PndPiPiGenerator::SetSeed ( Int_t  in_seed)
inline

Definition at line 57 of file PndPiPiGenerator.h.

References seed.

57 {seed = in_seed;}; // set seed

Member Data Documentation

Double_t PndPiPiGenerator::cos_theta_max

Definition at line 72 of file PndPiPiGenerator.h.

Referenced by Init(), and ReadEvent().

Double_t PndPiPiGenerator::cos_theta_min

Definition at line 71 of file PndPiPiGenerator.h.

Referenced by Init(), and ReadEvent().

Double_t PndPiPiGenerator::P

Definition at line 69 of file PndPiPiGenerator.h.

Referenced by Init(), and ReadEvent().

Double_t PndPiPiGenerator::piminus_p[4]

Definition at line 74 of file PndPiPiGenerator.h.

Referenced by ReadEvent().

Double_t PndPiPiGenerator::piplus_p[4]

Definition at line 73 of file PndPiPiGenerator.h.

Referenced by ReadEvent().

Int_t PndPiPiGenerator::seed

Definition at line 70 of file PndPiPiGenerator.h.

Referenced by Init().


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