EvtSecondary Class Reference

#include <EvtSecondary.hh>

List of all members.

Public Member Functions

 EvtSecondary ()
 ~EvtSecondary ()
void init ()
int getStdHepIndex (int i)
int getD1 (int i)
int getD2 (int i)
int getD3 (int i)
int getNPart ()
void createSecondary (int stdhepindex, EvtParticle *prnt)

Private Attributes

int _npart
int _stdhepindex [EVTSECONDARYLENGTH]
int _id1 [EVTSECONDARYLENGTH]
int _id2 [EVTSECONDARYLENGTH]
int _id3 [EVTSECONDARYLENGTH]

Friends

std::ostreamoperator<< (std::ostream &s, const EvtSecondary &secondary)


Detailed Description

Definition at line 30 of file EvtSecondary.hh.


Constructor & Destructor Documentation

EvtSecondary::EvtSecondary (  )  [inline]

Definition at line 34 of file EvtSecondary.hh.

00034 {}

EvtSecondary::~EvtSecondary (  )  [inline]

Definition at line 35 of file EvtSecondary.hh.

00035 {}


Member Function Documentation

void EvtSecondary::createSecondary ( int  stdhepindex,
EvtParticle prnt 
)

Definition at line 40 of file EvtSecondary.cc.

References _id1, _id2, _id3, _npart, _stdhepindex, calibUtil::ERROR, EvtParticle::getDaug(), EvtParticle::getId(), EvtParticle::getNDaug(), EvtPDL::getStdHep(), and report().

Referenced by EvtParticle::makeStdHep(), and EvtParticle::makeStdHepRec().

00040                                                                    {
00041 
00042   _stdhepindex[_npart]=stdhepindex;
00043   if (prnt->getNDaug()==0){
00044     _id1[_npart]=0;
00045     _id2[_npart]=0;
00046     _id3[_npart]=0;
00047     _npart++;
00048     return;
00049   }
00050   if (prnt->getNDaug()==1){
00051     _id1[_npart]=EvtPDL::getStdHep(prnt->getDaug(0)->getId());
00052     _id2[_npart]=0;
00053     _id3[_npart]=0;
00054     _npart++;
00055     return;
00056   }
00057   if (prnt->getNDaug()==2){
00058     _id1[_npart]=EvtPDL::getStdHep(prnt->getDaug(0)->getId());
00059     _id2[_npart]=EvtPDL::getStdHep(prnt->getDaug(1)->getId());
00060     _id3[_npart]=0;
00061     _npart++;
00062     return;
00063   }
00064   if (prnt->getNDaug()==3){
00065     _id1[_npart]=EvtPDL::getStdHep(prnt->getDaug(0)->getId());
00066     _id2[_npart]=EvtPDL::getStdHep(prnt->getDaug(1)->getId());
00067     _id3[_npart]=EvtPDL::getStdHep(prnt->getDaug(2)->getId());
00068     _npart++;
00069     return;
00070   }
00071   
00072   report(ERROR,"EvtGen") << 
00073     "More than 3 decay products in a secondary particle!"<<endl;
00074 
00075 
00076 }

int EvtSecondary::getD1 ( int  i  )  [inline]

Definition at line 40 of file EvtSecondary.hh.

References _id1.

00040 {return _id1[i];}

int EvtSecondary::getD2 ( int  i  )  [inline]

Definition at line 41 of file EvtSecondary.hh.

References _id2.

00041 {return _id2[i];}

int EvtSecondary::getD3 ( int  i  )  [inline]

Definition at line 42 of file EvtSecondary.hh.

References _id3.

00042 {return _id3[i];}

int EvtSecondary::getNPart (  ) 

Definition at line 36 of file EvtSecondary.cc.

References _npart.

00036                           {
00037   return _npart;
00038 }

int EvtSecondary::getStdHepIndex ( int  i  )  [inline]

Definition at line 39 of file EvtSecondary.hh.

References _stdhepindex.

00039 {return _stdhepindex[i];}

void EvtSecondary::init (  ) 

Definition at line 32 of file EvtSecondary.cc.

References _npart.

00032                        {
00033   _npart=0;
00034 }


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream s,
const EvtSecondary secondary 
) [friend]


Member Data Documentation

int EvtSecondary::_id1[EVTSECONDARYLENGTH] [private]

Definition at line 53 of file EvtSecondary.hh.

Referenced by createSecondary(), getD1(), and operator<<().

int EvtSecondary::_id2[EVTSECONDARYLENGTH] [private]

Definition at line 54 of file EvtSecondary.hh.

Referenced by createSecondary(), getD2(), and operator<<().

int EvtSecondary::_id3[EVTSECONDARYLENGTH] [private]

Definition at line 55 of file EvtSecondary.hh.

Referenced by createSecondary(), getD3(), and operator<<().

int EvtSecondary::_npart [private]

Definition at line 51 of file EvtSecondary.hh.

Referenced by createSecondary(), getNPart(), init(), and operator<<().

int EvtSecondary::_stdhepindex[EVTSECONDARYLENGTH] [private]

Definition at line 52 of file EvtSecondary.hh.

Referenced by createSecondary(), getStdHepIndex(), and operator<<().


Generated on Tue Nov 29 23:19:22 2016 for BOSS_7.0.2 by  doxygen 1.4.7