BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtFromParent_antiLambda Class Reference

#include <EvtFromParent_antiLambda.hh>

Inheritance diagram for EvtFromParent_antiLambda:

Public Member Functions

 EvtFromParent_antiLambda ()
virtual ~EvtFromParent_antiLambda ()
void getName (std::string &name)
EvtDecayBaseclone ()
void initProbMax ()
void init ()
void decay (EvtParticle *p)
Public Member Functions inherited from EvtDecayIncoherent
void makeDecay (EvtParticle *p)
virtual ~EvtDecayIncoherent ()
void setDaughterSpinDensity (int daughter)
int isDaughterSpinDensitySet (int daughter)
Public Member Functions inherited from EvtDecayBase
virtual std::string commandName ()
virtual void command (std::string cmd)
double getProbMax (double prob)
double resetProbMax (double prob)
 EvtDecayBase ()
virtual ~EvtDecayBase ()
virtual bool matchingDecay (const EvtDecayBase &other) const
EvtId getParentId ()
double getBranchingFraction ()
void disableCheckQ ()
void checkQ ()
int getNDaug ()
EvtIdgetDaugs ()
EvtId getDaug (int i)
int getNArg ()
int getPHOTOS ()
void setPHOTOS ()
void setVerbose ()
void setSummary ()
double * getArgs ()
std::string * getArgsStr ()
double getArg (int j)
std::string getArgStr (int j)
std::string getModelName ()
int getDSum ()
int summary ()
int verbose ()
void saveDecayInfo (EvtId ipar, int ndaug, EvtId *daug, int narg, std::vector< std::string > &args, std::string name, double brfr)
void printSummary ()
void setProbMax (double prbmx)
void noProbMax ()
void checkNArg (int a1, int a2=-1, int a3=-1, int a4=-1)
void checkNDaug (int d1, int d2=-1)
void checkSpinParent (EvtSpinType::spintype sp)
void checkSpinDaughter (int d1, EvtSpinType::spintype sp)
virtual int nRealDaughters ()

Additional Inherited Members

Static Public Member Functions inherited from EvtDecayBase
static void findMasses (EvtParticle *p, int ndaugs, EvtId daugs[10], double masses[10])
static void findMass (EvtParticle *p)
static double findMaxMass (EvtParticle *p)
Protected Member Functions inherited from EvtDecayBase
bool daugsDecayedByParentModel ()
Protected Attributes inherited from EvtDecayBase
bool _daugsDecayedByParentModel

Detailed Description

Definition at line 30 of file EvtFromParent_antiLambda.hh.

Constructor & Destructor Documentation

◆ EvtFromParent_antiLambda()

EvtFromParent_antiLambda::EvtFromParent_antiLambda ( )
inline

Definition at line 33 of file EvtFromParent_antiLambda.hh.

33{}

Referenced by clone().

◆ ~EvtFromParent_antiLambda()

EvtFromParent_antiLambda::~EvtFromParent_antiLambda ( )
virtual

Definition at line 40 of file EvtFromParent_antiLambda.cc.

40{}

Member Function Documentation

◆ clone()

EvtDecayBase * EvtFromParent_antiLambda::clone ( )
virtual

Implements EvtDecayBase.

Definition at line 47 of file EvtFromParent_antiLambda.cc.

◆ decay()

void EvtFromParent_antiLambda::decay ( EvtParticle * p)
virtual

Implements EvtDecayBase.

Definition at line 57 of file EvtFromParent_antiLambda.cc.

57 {
58 // p->printTree();
59 // std::cout<<"FromParent:p->getId() = "<<p->getId()<<std::endl;
60 EvtId LambdaId = EvtPDL::getId( "Lambda0" );
61 // std::cout<<"LambdaId = "<<LambdaId<<std::endl;
62 EvtId antiLambdaId = EvtPDL::getId( "anti-Lambda0" );
63 // std::cout<<"antiLambdaId = "<<antiLambdaId<<std::endl;
64 if ( p->getId() != LambdaId && p->getId() != antiLambdaId )
65 {
66 std::cout << "Parent particle is required to be Lambda0 or antiLambda0" << std::endl;
67 abort();
68 }
69 int more = 0;
70 int numstable = 0;
71 EvtId evtnumstable[100];
72 EvtVector4R p4[20];
73 /*if(EvtParticle::_NextLevelDauNum == 0) {
74 report(ERROR,"EvtGen") << "EvtParticle failed to store the info of NextLevel";
75 ::abort();
76 }*/
78 {
79 if ( p->getId() == LambdaId )
80 {
81 // pi-
82 evtnumstable[numstable] = EvtPDL::evtIdFromStdHep( -211 );
83 p4[numstable] = EvtParticle::_NextLevelP4[2];
84 std::cout << "FromParent_antiLambda: pi- p4[numstable] = " << p4[numstable] << std::endl;
85 numstable++;
86 // p
87 evtnumstable[numstable] = EvtPDL::evtIdFromStdHep( 2212 );
88 p4[numstable] = EvtParticle::_NextLevelP4[3];
89 std::cout << "FromParent_antiLambda: p+ p4[numstable] = " << p4[numstable] << std::endl;
90 numstable++;
91 }
92 if ( p->getId() == antiLambdaId )
93 {
94 std::cout << "anti-Lambda0's parent id:" << p->getParent()->getId()
95 << " p4 =" << p->getParent()->getP4Lab() << std::endl;
96 std::cout << "anti-Lambda0 id:" << p->getId() << " p4 =" << p->getP4Lab() << std::endl;
97 // pi+
98 evtnumstable[numstable] = EvtPDL::evtIdFromStdHep( 211 );
99 p4[numstable] = EvtParticle::_NextLevelP4[0];
100 std::cout << "FromParent_antiLambda: pi+ p4[numstable] = " << p4[numstable] << std::endl;
101 numstable++;
102 // pbar
103 evtnumstable[numstable] = EvtPDL::evtIdFromStdHep( -2212 );
104 p4[numstable] = EvtParticle::_NextLevelP4[1];
105 std::cout << "FromParent_antiLambda: anti-p- p4[numstable] = " << p4[numstable]
106 << std::endl;
107 numstable++;
108 }
109 p->makeDaughters( numstable, evtnumstable );
110 int ndaugFound = 0;
111 for ( int i = 0; i < numstable; i++ )
112 {
113 p->getDaug( i )->init( evtnumstable[i], p4[i] );
114 ndaugFound++;
115 }
116 if ( ndaugFound == 0 )
117 {
118 report( ERROR, "EvtGen" ) << "Phokhara has failed to do a decay ";
119 report( ERROR, "EvtGen" ) << EvtPDL::name( p->getId() ).c_str() << " " << p->mass()
120 << endl;
121 assert( 0 );
122 }
123 if ( p->getId() == LambdaId )
124 {
125 // int channel=EvtDecayTable::inChannelList(p->getId(),numstable,evtnumstable);
126 // more=(channel!=-1);
127 // if(more) { std::cout<<"EvtFromParent_antiLambda:Existence of mode "<<channel<<" in
128 // exclusive decay list has the same final state as this one"<<std::endl;abort(); }
129
130 std::cout << "EvtFromParent_antiLambda Lambda0's parent id:" << p->getParent()->getId()
131 << " p4 =" << p->getParent()->getP4Lab() << std::endl;
132 std::cout << "EvtFromParent_antiLambda SUMMARY: part p4" << p->getP4Lab() << std::endl;
133 std::cout << "EvtFromParent_antiLambda SUMMARY: Daug0 p4" << p->getDaug( 0 )->getP4Lab()
134 << std::endl;
135 std::cout << "EvtFromParent_antiLambda SUMMARY: Daug1 p4" << p->getDaug( 1 )->getP4Lab()
136 << std::endl;
137 }
138 if ( p->getId() == antiLambdaId )
139 {
140 // int channel=EvtDecayTable::inChannelList(p->getId(),numstable,evtnumstable);
141 // more=(channel!=0);
142 // if(more) { std::cout<<"EvtFromParent_antiLambda:Existence of mode "<<channel<<" in
143 // exclusive decay list has the same final state as this one"<<std::endl;abort(); }
144
145 std::cout << "EvtFromParent_antiLambda antiLambda0's parent id:"
146 << p->getParent()->getId() << " p4 =" << p->getParent()->getP4Lab()
147 << std::endl;
148 std::cout << "EvtFromParent_antiLambda SUMMARY: part p4" << p->getP4Lab() << std::endl;
149 std::cout << "EvtFromParent_antiLambda SUMMARY: Daug0 p4" << p->getDaug( 0 )->getP4Lab()
150 << std::endl;
151 std::cout << "EvtFromParent_antiLambda SUMMARY: Daug1 p4" << p->getDaug( 1 )->getP4Lab()
152 << std::endl;
153 }
154 }
155 return;
156}
ostream & report(Severity severity, const char *facility)
Definition EvtReport.cc:34
@ ERROR
Definition EvtReport.hh:49
static EvtId evtIdFromStdHep(int stdhep)
Definition EvtPDL.cc:232
static std::string name(EvtId i)
Definition EvtPDL.hh:70
static EvtId getId(const std::string &name)
Definition EvtPDL.cc:272
void makeDaughters(int ndaug, EvtId *id)
virtual void init(EvtId part_n, const EvtVector4R &p4)=0
EvtVector4R getP4Lab()
EvtId getId() const
EvtParticle * getParent()
static int _NextLevelDauNum
EvtParticle * getDaug(int i)
static EvtVector4R _NextLevelP4[20]
double mass() const

◆ getName()

void EvtFromParent_antiLambda::getName ( std::string & name)
virtual

Implements EvtDecayBase.

Definition at line 42 of file EvtFromParent_antiLambda.cc.

42 {
43
44 model_name = "FromParent_antiLambda";
45}

◆ init()

void EvtFromParent_antiLambda::init ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 49 of file EvtFromParent_antiLambda.cc.

49 {
50
51 // check that there are 0 arguments
52 checkNArg( 0 );
53}
void checkNArg(int a1, int a2=-1, int a3=-1, int a4=-1)

◆ initProbMax()

void EvtFromParent_antiLambda::initProbMax ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 55 of file EvtFromParent_antiLambda.cc.

55{ noProbMax(); }

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