CGEM BOSS 6.6.5.i
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)
 

Friends

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

Detailed Description

Definition at line 30 of file EvtStdHep.hh.

Constructor & Destructor Documentation

◆ EvtStdHep()

EvtStdHep::EvtStdHep ( )
inline

Definition at line 34 of file EvtStdHep.hh.

34{}

◆ ~EvtStdHep()

EvtStdHep::~EvtStdHep ( )
inline

Definition at line 35 of file EvtStdHep.hh.

35{}

Member Function Documentation

◆ createParticle()

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

Definition at line 41 of file 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(), and EvtParticle::makeStdHep().

◆ getFirstDaughter()

int EvtStdHep::getFirstDaughter ( int i)
inline

Definition at line 41 of file EvtStdHep.hh.

41{ return _daugfirst[i]; }

Referenced by EvtGen::generateEvent().

◆ getFirstMother()

int EvtStdHep::getFirstMother ( int i)
inline

Definition at line 39 of file EvtStdHep.hh.

39{ return _prntfirst[i]; }

Referenced by EvtGen::generateEvent().

◆ getIStat()

int EvtStdHep::getIStat ( int i)
inline

Definition at line 45 of file EvtStdHep.hh.

45{ return _istat[i]; }

Referenced by EvtGen::generateEvent().

◆ getLastDaughter()

int EvtStdHep::getLastDaughter ( int i)
inline

Definition at line 42 of file EvtStdHep.hh.

42{ return _dauglast[i]; }

Referenced by EvtGen::generateEvent().

◆ getLastMother()

int EvtStdHep::getLastMother ( int i)
inline

Definition at line 40 of file EvtStdHep.hh.

40{ return _prntlast[i]; }

Referenced by EvtGen::generateEvent().

◆ getNPart()

int EvtStdHep::getNPart ( )

Definition at line 37 of file EvtStdHep.cc.

37 {
38 return _npart;
39}

Referenced by EvtGen::generateEvent().

◆ getP4()

EvtVector4R EvtStdHep::getP4 ( int i)
inline

Definition at line 47 of file EvtStdHep.hh.

47{ return _p4[i]; }

Referenced by EvtGen::generateEvent().

◆ getStdHepID()

int EvtStdHep::getStdHepID ( int i)
inline

Definition at line 44 of file EvtStdHep.hh.

44{ return _id[i]; }

Referenced by EvtGen::generateEvent().

◆ getX4()

EvtVector4R EvtStdHep::getX4 ( int i)
inline

Definition at line 48 of file EvtStdHep.hh.

48{ return _x[i]; }

Referenced by EvtGen::generateEvent().

◆ init()

void EvtStdHep::init ( )

Definition at line 33 of file EvtStdHep.cc.

33 {
34 _npart=0;
35}

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

◆ translate()

void EvtStdHep::translate ( EvtVector4R d)

Definition at line 69 of file 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().

Friends And Related Symbol Documentation

◆ operator<<

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

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