BOSS 7.0.9
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtStdHep Class Reference

#include <EvtStdHep.hh>

Public Member Functions

 EvtStdHep ()
 
 ~EvtStdHep ()
 
void init ()
 
int getFirstMother (int i)
 
int getLastMother (int i)
 
int getFirstDaughter (int i)
 
int getLastDaughter (int i)
 
int getStdHepID (int i)
 
int getIStat (int i)
 
EvtVector4R getP4 (int i)
 
EvtVector4R getX4 (int i)
 
void translate (EvtVector4R d)
 
int getNPart ()
 
void createParticle (EvtVector4R p4, EvtVector4R x, int prntfirst, int prntlast, int id)
 
 EvtStdHep ()
 
 ~EvtStdHep ()
 
void init ()
 
int getFirstMother (int i)
 
int getLastMother (int i)
 
int getFirstDaughter (int i)
 
int getLastDaughter (int i)
 
int getStdHepID (int i)
 
int getIStat (int i)
 
EvtVector4R getP4 (int i)
 
EvtVector4R getX4 (int i)
 
void translate (EvtVector4R d)
 
int getNPart ()
 
void createParticle (EvtVector4R p4, EvtVector4R x, int prntfirst, int prntlast, int id)
 

Friends

std::ostream & operator<< (std::ostream &s, const EvtStdHep &stdhep)
 
std::ostream & operator<< (std::ostream &s, const EvtStdHep &stdhep)
 

Detailed Description

Constructor & Destructor Documentation

◆ EvtStdHep() [1/2]

EvtStdHep::EvtStdHep ( )
inline

◆ ~EvtStdHep() [1/2]

EvtStdHep::~EvtStdHep ( )
inline

◆ EvtStdHep() [2/2]

EvtStdHep::EvtStdHep ( )
inline

◆ ~EvtStdHep() [2/2]

EvtStdHep::~EvtStdHep ( )
inline

Member Function Documentation

◆ createParticle() [1/2]

void EvtStdHep::createParticle ( EvtVector4R  p4,
EvtVector4R  x,
int  prntfirst,
int  prntlast,
int  id 
)

Definition at line 41 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtStdHep.cc.

42 {
43
44 _p4[_npart]=p4;
45 _x[_npart]=x;
46 _prntfirst[_npart]=prntfirst;
47 _prntlast[_npart]=prntlast;
48 _daugfirst[_npart]=-1;
49 _dauglast[_npart]=-1;
50 _id[_npart]=id;
51 _istat[_npart]=1;
52
53 //we also need to fix up the parents pointer to the daughter!
54
55 if (prntfirst>=0) {
56 int i;
57 for (i=prntfirst;i<=prntlast;i++){
58 _istat[i]=2;
59 if (_daugfirst[i]==-1) _daugfirst[i]=_npart;
60 if (_dauglast[i]<_npart) _dauglast[i]=_npart;
61 }
62
63 }
64
65 _npart++;
66
67}
Double_t x[10]

Referenced by EvtParticle::makeStdHep().

◆ createParticle() [2/2]

void EvtStdHep::createParticle ( EvtVector4R  p4,
EvtVector4R  x,
int  prntfirst,
int  prntlast,
int  id 
)

◆ getFirstDaughter() [1/2]

int EvtStdHep::getFirstDaughter ( int  i)
inline

Definition at line 41 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtStdHep.hh.

41{ return _daugfirst[i]; }

Referenced by EvtGen::generateEvent().

◆ getFirstDaughter() [2/2]

int EvtStdHep::getFirstDaughter ( int  i)
inline

Definition at line 41 of file BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtStdHep.hh.

41{ return _daugfirst[i]; }

◆ getFirstMother() [1/2]

int EvtStdHep::getFirstMother ( int  i)
inline

Definition at line 39 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtStdHep.hh.

39{ return _prntfirst[i]; }

Referenced by EvtGen::generateEvent().

◆ getFirstMother() [2/2]

int EvtStdHep::getFirstMother ( int  i)
inline

Definition at line 39 of file BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtStdHep.hh.

39{ return _prntfirst[i]; }

◆ getIStat() [1/2]

int EvtStdHep::getIStat ( int  i)
inline

Definition at line 45 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtStdHep.hh.

45{ return _istat[i]; }

Referenced by EvtGen::generateEvent().

◆ getIStat() [2/2]

int EvtStdHep::getIStat ( int  i)
inline

Definition at line 45 of file BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtStdHep.hh.

45{ return _istat[i]; }

◆ getLastDaughter() [1/2]

int EvtStdHep::getLastDaughter ( int  i)
inline

Definition at line 42 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtStdHep.hh.

42{ return _dauglast[i]; }

Referenced by EvtGen::generateEvent().

◆ getLastDaughter() [2/2]

int EvtStdHep::getLastDaughter ( int  i)
inline

Definition at line 42 of file BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtStdHep.hh.

42{ return _dauglast[i]; }

◆ getLastMother() [1/2]

int EvtStdHep::getLastMother ( int  i)
inline

Definition at line 40 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtStdHep.hh.

40{ return _prntlast[i]; }

Referenced by EvtGen::generateEvent().

◆ getLastMother() [2/2]

int EvtStdHep::getLastMother ( int  i)
inline

Definition at line 40 of file BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtStdHep.hh.

40{ return _prntlast[i]; }

◆ getNPart() [1/2]

int EvtStdHep::getNPart ( )

Definition at line 37 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtStdHep.cc.

37 {
38 return _npart;
39}

Referenced by EvtGen::generateEvent().

◆ getNPart() [2/2]

int EvtStdHep::getNPart ( )

◆ getP4() [1/2]

EvtVector4R EvtStdHep::getP4 ( int  i)
inline

Definition at line 47 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtStdHep.hh.

47{ return _p4[i]; }

Referenced by EvtGen::generateEvent().

◆ getP4() [2/2]

EvtVector4R EvtStdHep::getP4 ( int  i)
inline

Definition at line 47 of file BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtStdHep.hh.

47{ return _p4[i]; }

◆ getStdHepID() [1/2]

int EvtStdHep::getStdHepID ( int  i)
inline

Definition at line 44 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtStdHep.hh.

44{ return _id[i]; }

Referenced by EvtGen::generateEvent().

◆ getStdHepID() [2/2]

int EvtStdHep::getStdHepID ( int  i)
inline

Definition at line 44 of file BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtStdHep.hh.

44{ return _id[i]; }

◆ getX4() [1/2]

EvtVector4R EvtStdHep::getX4 ( int  i)
inline

Definition at line 48 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtStdHep.hh.

48{ return _x[i]; }

Referenced by EvtGen::generateEvent().

◆ getX4() [2/2]

EvtVector4R EvtStdHep::getX4 ( int  i)
inline

Definition at line 48 of file BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtStdHep.hh.

48{ return _x[i]; }

◆ init() [1/2]

void EvtStdHep::init ( )

Definition at line 33 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtStdHep.cc.

33 {
34 _npart=0;
35}

Referenced by EvtGen::generateDecay(), and EvtGen::generateEvent().

◆ init() [2/2]

void EvtStdHep::init ( )

◆ translate() [1/2]

void EvtStdHep::translate ( EvtVector4R  d)

Definition at line 69 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtStdHep.cc.

69 {
70
71 int i;
72 for(i=0;i<_npart;i++){
73 _x[i]+=d;
74 }
75
76}

Referenced by EvtGen::generateDecay().

◆ translate() [2/2]

void EvtStdHep::translate ( EvtVector4R  d)

Friends And Related Function Documentation

◆ operator<< [1/2]

std::ostream & operator<< ( std::ostream &  s,
const EvtStdHep stdhep 
)
friend

◆ operator<< [2/2]

std::ostream & operator<< ( std::ostream &  s,
const EvtStdHep stdhep 
)
friend

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