Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

TTrackHEP Class Reference

A class to represent a GEN_HEPEVT particle in tracking. More...

#include <TTrackHEP.h>

List of all members.

Public Member Functions

TTrackHEPchild (unsigned i) const
 returns a pointer to i'th child.
TTrackHEPchild (unsigned i) const
 returns a pointer to i'th child.
void dump (const std::string &message=std::string(""), const std::string &prefix=std::string("")) const
 dumps debug information.
void dump (const std::string &message=std::string(""), const std::string &prefix=std::string("")) const
 dumps debug information.
const Gen_hepevtgen (void) const
 returns a pointer to Gen_hepevt.
const Gen_hepevtgen (void) const
 returns a pointer to Gen_hepevt.
const AList< TMDCWireHitMC > & hits (void) const
 returns a list of TMDCWireHitMC.
const AList< TMDCWireHitMC > & hits (void) const
 returns a list of TMDCWireHitMC.
unsigned id (void) const
 returns an id started from 0.
unsigned id (void) const
 returns an id started from 0.
TTrackHEPmother (void) const
 returns a pointer to a mother.
TTrackHEPmother (void) const
 returns a pointer to a mother.
std::string name (void) const
 returns name.
std::string name (void) const
 returns name.
const HepLorentzVector & p (void) const
 returns momentum vector.
const HepLorentzVector & p (void) const
 returns momentum vector.
int pType (void) const
 returns particle type.
int pType (void) const
 returns particle type.
int status (void) const
 returns status.
int status (void) const
 returns status.
const Hep3Vector & v (void) const
 returns position vector.
const Hep3Vector & v (void) const
 returns position vector.
virtual ~TTrackHEP ()
 Destructor.
virtual ~TTrackHEP ()
 Destructor.

Static Public Member Functions

TTrackHEPhep (const Gen_hepevt *)
 returns a pointer to TTrackHEP of given Gen_hepevt.
TTrackHEPhep (const Gen_hepevt *)
 returns a pointer to TTrackHEP of given Gen_hepevt.
const AList< TTrackHEP > & list (void)
 returns a list of TTrackHEP's.
const AList< TTrackHEP > & list (void)
 returns a list of TTrackHEP's.

Private Member Functions

 TTrackHEP (const Gen_hepevt *)
 Constructor.
 TTrackHEP (const Gen_hepevt *)
 Constructor.

Static Private Member Functions

void update (void)
 updates information.
void update (void)
 updates information.

Private Attributes

AList< TTrackHEP_children
AList< TTrackHEP_children
const Gen_hepevt_hep
const Gen_hepevt_hep
AList< TMDCWireHitMC_hits
AList< TMDCWireHitMC_hits
TTrackHEP_mother
TTrackHEP_mother
const HepLorentzVector _p
const Hep3Vector _v

Static Private Attributes

AList< TTrackHEP_list
AList< TTrackHEP_list = AList<TTrackHEP>()

Friends

void TMDC::updateMC (void)
void TMDC::updateMC (void)


Detailed Description

A class to represent a GEN_HEPEVT particle in tracking.


Constructor & Destructor Documentation

TTrackHEP::TTrackHEP const Gen_hepevt  )  [private]
 

Constructor.

00044 : _hep(h),
00045   _mother(0),
00046   _p(h->P[0], h->P[1], h->P[2], h->P[3]),
00047   _v(h->V[0], h->V[1], h->V[2]) {
00048     if (_hep->mother != 0) {
00049 //      _mother = _list[_hep->mother-1];
00050         _mother = _list[_hep->mother->id];
00051         _mother->_children.append(this);
00052     }
00053 }

TTrackHEP::~TTrackHEP  )  [virtual]
 

Destructor.

00055                       {
00056 }

TTrackHEP::TTrackHEP const Gen_hepevt  )  [private]
 

Constructor.

virtual TTrackHEP::~TTrackHEP  )  [virtual]
 

Destructor.


Member Function Documentation

TTrackHEP* TTrackHEP::child unsigned  i  )  const
 

returns a pointer to i'th child.

TTrackHEP * TTrackHEP::child unsigned  i  )  const [inline]
 

returns a pointer to i'th child.

00146                                  {
00147     return _children[i];
00148 }

void TTrackHEP::dump const std::string &  message = std::string(""),
const std::string &  prefix = std::string("")
const
 

dumps debug information.

void TTrackHEP::dump const std::string &  message = std::string(""),
const std::string &  prefix = std::string("")
const
 

dumps debug information.

00059                                                                   {
00060     std::cout << pre;
00061 
00062     std::cout << id() << ":";
00063     std::cout << pType() << ":";
00064     if (_mother) std::cout << _mother->id();
00065     else         std::cout << "-";
00066     std::cout << ":";
00067     std::cout << _p << ":" << _v;
00068     std::cout << std::endl;
00069 }

const Gen_hepevt* TTrackHEP::gen void   )  const
 

returns a pointer to Gen_hepevt.

const Gen_hepevt * TTrackHEP::gen void   )  const [inline]
 

returns a pointer to Gen_hepevt.

00184                          {
00185     return _hep;
00186 }

TTrackHEP* TTrackHEP::hep const Gen_hepevt  )  [static]
 

returns a pointer to TTrackHEP of given Gen_hepevt.

TTrackHEP * TTrackHEP::hep const Gen_hepevt  )  [inline, static]
 

returns a pointer to TTrackHEP of given Gen_hepevt.

00164                                    {
00165     if (! h) return 0;
00166     unsigned id = h->id - 1;
00167     return _list[id];
00168 }

const AList<TMDCWireHitMC>& TTrackHEP::hits void   )  const
 

returns a list of TMDCWireHitMC.

const AList< TMDCWireHitMC > & TTrackHEP::hits void   )  const [inline]
 

returns a list of TMDCWireHitMC.

00172                           {
00173     return _hits;
00174 }

unsigned TTrackHEP::id void   )  const
 

returns an id started from 0.

unsigned TTrackHEP::id void   )  const [inline]
 

returns an id started from 0.

00122                         {
00123     return _hep->id - 1;
00124 }

const AList<TTrackHEP>& TTrackHEP::list void   )  [static]
 

returns a list of TTrackHEP's.

const AList< TTrackHEP > & TTrackHEP::list void   )  [static]
 

returns a list of TTrackHEP's.

00072                     {
00073     return _list;
00074 }

TTrackHEP* TTrackHEP::mother void   )  const
 

returns a pointer to a mother.

TTrackHEP * TTrackHEP::mother void   )  const [inline]
 

returns a pointer to a mother.

00140                             {
00141     return _mother;
00142 }

std::string TTrackHEP::name void   )  const
 

returns name.

std::string TTrackHEP::name void   )  const [inline]
 

returns name.

00178                           {
00179     return "mc" + itostring(id());
00180 }

const HepLorentzVector& TTrackHEP::p void   )  const
 

returns momentum vector.

const HepLorentzVector & TTrackHEP::p void   )  const [inline]
 

returns momentum vector.

00152                        {
00153     return _p;
00154 }

int TTrackHEP::pType void   )  const
 

returns particle type.

int TTrackHEP::pType void   )  const [inline]
 

returns particle type.

00134                            {
00135     return _hep->idhep;
00136 }

int TTrackHEP::status void   )  const
 

returns status.

int TTrackHEP::status void   )  const [inline]
 

returns status.

00128                             {
00129     return _hep->isthep;
00130 }

void TTrackHEP::update void   )  [static, private]
 

updates information.

void TTrackHEP::update void   )  [static, private]
 

updates information.

00021                       {
00022     if (_list.length()) HepAListDeleteAll(_list);
00023 
00024 //    unsigned n = BsCouTab(GEN_HEPEVT);
00025 //    std::vector<Gen_hepevt>* genhep = GenHepevtCol::getGenHepevtCol();
00026     unsigned n = GenHepevtCol::getGenHepevtCol()->size();
00027 //    unsigned n = genhep -> size();
00028    
00029     for (unsigned i = 0; i < n; i++) {
00030 //      Gen_hepevt * h = *genhep[i];
00031         Gen_hepevt* h = &(*GenHepevtCol::getGenHepevtCol())[i];
00032 //          (struct gen_hepevt *) BsGetEnt(GEN_HEPEVT, i + 1, BBS_No_Index);
00033         if (! h) {
00034             std::cout << "TTrackHEP::update !!! can not access to GEN_HEPEVT";
00035             std::cout << std::endl;
00036             break;
00037         }
00038 
00039         _list.append(new TTrackHEP(h));
00040     }
00041 }

const Hep3Vector& TTrackHEP::v void   )  const
 

returns position vector.

const Hep3Vector & TTrackHEP::v void   )  const [inline]
 

returns position vector.

00158                        {
00159     return _v;
00160 }


Friends And Related Function Documentation

void TMDC::updateMC void   )  [friend]
 

void TMDC::updateMC void   )  [friend]
 


Member Data Documentation

AList<TTrackHEP> TTrackHEP::_children [private]
 

AList<TTrackHEP> TTrackHEP::_children [private]
 

const Gen_hepevt* TTrackHEP::_hep [private]
 

const Gen_hepevt* TTrackHEP::_hep [private]
 

AList<TMDCWireHitMC> TTrackHEP::_hits [private]
 

AList<TMDCWireHitMC> TTrackHEP::_hits [private]
 

AList<TTrackHEP> TTrackHEP::_list [static, private]
 

AList< TTrackHEP > TTrackHEP::_list = AList<TTrackHEP>() [static, private]
 

TTrackHEP* TTrackHEP::_mother [private]
 

TTrackHEP* TTrackHEP::_mother [private]
 

const HepLorentzVector TTrackHEP::_p [private]
 

const Hep3Vector TTrackHEP::_v [private]
 


The documentation for this class was generated from the following files:
Generated on Wed Feb 2 19:12:01 2011 for BOSS6.5.5 by  doxygen 1.3.9.1