MINFVecs Class Reference

#include <MINFVecs.h>

List of all members.

Public Member Functions

 MINFVecs ()
 MINFVecs (Int_t nhits)
virtual ~MINFVecs ()
virtual void AddVec (Float_t X, Float_t Y, Float_t Z, Float_t DX, Float_t DY, Float_t DZ)
MINFDetectorGetDetector ()
Int_t GetIndex ()
GParticleGetParticle () const
Float_t GetScale ()
MINFHitGetSelHit ()
Int_t GetVisibility ()
virtual void Propagate ()
virtual void SetDetector (MINFDetector *detector)
virtual void SetParticle (Int_t index)
virtual void SetScale (Float_t scale)
void SetVisibility (Int_t vis)

Protected Attributes

MINFDetectorfDetector
Int_t fIndex
MINFHitfSelHit
Float_t fScale
Int_t fVisibility

Detailed Description

Definition at line 24 of file MINFVecs.h.


Constructor & Destructor Documentation

MINFVecs::MINFVecs (  ) 

Definition at line 35 of file MINFVecs.cxx.

00036 {
00037    fDetector = 0;       
00038    fIndex    = 0;
00039    fSelHit   = 0;
00040    fScale    = 0.025;
00041    fVisibility = 0;
00042 }

MINFVecs::MINFVecs ( Int_t  nhits  ) 

Definition at line 45 of file MINFVecs.cxx.

References fDetector, fIndex, fScale, fSelHit, and fVisibility.

00046 {
00047    fDetector = 0;       
00048    fIndex    = 0;
00049    fSelHit   = 0;
00050    fScale    = 0.025;
00051    fVisibility = 0;
00052    ResetBit(kCanDelete);
00053 }

MINFVecs::~MINFVecs (  )  [virtual]

Definition at line 57 of file MINFVecs.cxx.

References fDetector, fIndex, and fSelHit.

00058 {
00059    Delete();
00060    fDetector = 0;       
00061    fIndex    = 0;
00062    fSelHit   = 0;
00063 }


Member Function Documentation

void MINFVecs::AddVec ( Float_t  X,
Float_t  Y,
Float_t  Z,
Float_t  DX,
Float_t  DY,
Float_t  DZ 
) [virtual]

Definition at line 66 of file MINFVecs.cxx.

References fScale.

Referenced by MINFEMU::LoadPoints().

00068 {
00069    Float_t xx[2] = {X - fScale * DX, X + fScale * DX};
00070    Float_t yy[2] = {Y - fScale * DY, Y + fScale * DY};
00071    Float_t zz[2] = {Z - fScale * DZ, Z + fScale * DZ};
00072 
00073    MINFVecLine *dirvec = new MINFVecLine(2,xx,yy,zz);
00074    dirvec->SetLineColor(kYellow);
00075    dirvec->SetLineStyle(1);
00076 
00077    Add(dirvec);
00078 }

MINFDetector* MINFVecs::GetDetector (  )  [inline]

Definition at line 39 of file MINFVecs.h.

References fDetector.

00039 {return fDetector;}

Int_t MINFVecs::GetIndex (  )  [inline]

Definition at line 40 of file MINFVecs.h.

References fIndex.

00040 {return fIndex;}

GParticle * MINFVecs::GetParticle (  )  const

Definition at line 81 of file MINFVecs.cxx.

References fIndex, gMINFast, and MINFast::Particles().

00082 {
00083 
00084 // Returns pointer to primary particle index in MINFast::fParticles
00085    TClonesArray *particles = gMINFast->Particles();
00086    Int_t nparticles = particles->GetEntriesFast();
00087    if (fIndex < 0 || fIndex >= nparticles) return 0;
00088    return (GParticle *) particles->UncheckedAt(fIndex);
00089 }

Float_t MINFVecs::GetScale (  )  [inline]

Definition at line 42 of file MINFVecs.h.

References fScale.

00042 {return fScale;}

MINFHit* MINFVecs::GetSelHit (  )  [inline]

Definition at line 43 of file MINFVecs.h.

References fSelHit.

00043 {return fSelHit;}

Int_t MINFVecs::GetVisibility (  )  [inline]

Definition at line 44 of file MINFVecs.h.

References fVisibility.

00044 {return fVisibility;}

void MINFVecs::Propagate (  )  [virtual]

Definition at line 92 of file MINFVecs.cxx.

00093 {
00094 }

virtual void MINFVecs::SetDetector ( MINFDetector detector  )  [inline, virtual]

Definition at line 46 of file MINFVecs.h.

References fDetector.

Referenced by MINFEMU::LoadPoints().

00047                                                  {fDetector = detector;}

virtual void MINFVecs::SetParticle ( Int_t  index  )  [inline, virtual]

Definition at line 48 of file MINFVecs.h.

References fIndex.

Referenced by MINFEMU::LoadPoints().

00048 {fIndex = index;}

virtual void MINFVecs::SetScale ( Float_t  scale  )  [inline, virtual]

Definition at line 49 of file MINFVecs.h.

References fScale.

Referenced by MINFEMU::LoadPoints().

00049 {fScale = scale;}

void MINFVecs::SetVisibility ( Int_t  vis  )  [inline]

Definition at line 50 of file MINFVecs.h.

References fVisibility.

00050 {fVisibility = vis;}


Member Data Documentation

Definition at line 27 of file MINFVecs.h.

Referenced by GetDetector(), MINFVecs(), SetDetector(), and ~MINFVecs().

Int_t MINFVecs::fIndex [protected]

Definition at line 28 of file MINFVecs.h.

Referenced by GetIndex(), GetParticle(), MINFVecs(), SetParticle(), and ~MINFVecs().

Float_t MINFVecs::fScale [protected]

Definition at line 30 of file MINFVecs.h.

Referenced by AddVec(), GetScale(), MINFVecs(), and SetScale().

MINFHit* MINFVecs::fSelHit [protected]

Definition at line 29 of file MINFVecs.h.

Referenced by GetSelHit(), MINFVecs(), and ~MINFVecs().

Int_t MINFVecs::fVisibility [protected]

Definition at line 31 of file MINFVecs.h.

Referenced by GetVisibility(), MINFVecs(), and SetVisibility().


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

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1