Anp::StdHep Class Reference

#include <StdHep.h>

List of all members.

Public Member Functions

 StdHep ()
 ~StdHep ()
void Clear ()
int StdHepIndex () const
int TruthIndex () const
int ParentBeg () const
int ParentEnd () const
int ChildBeg () const
int ChildEnd () const
int GetIstHEP () const
int GetIdHEP () const
float GetMass () const
float Px () const
float Py () const
float Pz () const
float E () const
float P () const
float Energy () const
float VtxX () const
float VtxY () const
float VtxZ () const
float Time () const
Particle::Particle_t Particle () const
bool IsMuon () const
bool IsLepton () const
bool IsChild (int stdhep) const
bool IsParent (int stdhep) const
void Print (std::ostream &os=std::cout) const

Private Attributes

Int_t index
Int_t mc_index
Int_t parent [2]
Int_t child [2]
Int_t IstHEP
Int_t IdHEP
Float_t mass
Float_t p4 [4]
Float_t vtx [4]

Friends

class FillTruth

Detailed Description

Definition at line 18 of file PhysicsNtuple/HEAD/StdHep.h.


Constructor & Destructor Documentation

Anp::StdHep::StdHep (  ) 

Definition at line 14 of file StdHep.cxx.

References child, p4, parent, and vtx.

00015    :index(-1),
00016     mc_index(-1),
00017     IstHEP(-1),
00018     IdHEP(0),
00019     mass(-1.0e6)
00020 {
00021    parent[0] = -1;
00022    parent[1] = -1;
00023    
00024    child[0] = -1;
00025    child[1] = -1;
00026    
00027    p4[0] = -1.0e6;
00028    p4[1] = -1.0e6;
00029    p4[2] = -1.0e6;
00030    p4[3] = -1.0e6;
00031 
00032    vtx[0] = -1.0e6;
00033    vtx[1] = -1.0e6;
00034    vtx[2] = -1.0e6;
00035    vtx[3] = -1.0e6;
00036 }

Anp::StdHep::~StdHep (  ) 

Definition at line 39 of file StdHep.cxx.

00040 {
00041 }


Member Function Documentation

int Anp::StdHep::ChildBeg (  )  const [inline]

Definition at line 87 of file PhysicsNtuple/HEAD/StdHep.h.

References child.

Referenced by IsChild().

00087 { return child[0]; }

int Anp::StdHep::ChildEnd (  )  const [inline]

Definition at line 88 of file PhysicsNtuple/HEAD/StdHep.h.

References child.

Referenced by IsChild().

00088 { return child[1]; }

void Anp::StdHep::Clear ( void   ) 

Definition at line 44 of file StdHep.cxx.

References child, IdHEP, index, IstHEP, mass, mc_index, p4, parent, and vtx.

00045 {
00046    index    = -1;
00047    mc_index = -1;
00048    IstHEP   = -1;
00049    IdHEP    = -1;
00050    mass     = -1.0e6;
00051    
00052    parent[0] = -1;
00053    parent[1] = -1;
00054    child[0]  = -1;
00055    child[1]  = -1;
00056 
00057    p4[0] = -1.0e6;
00058    p4[1] = -1.0e6;
00059    p4[2] = -1.0e6;
00060    p4[3] = -1.0e6;
00061 
00062    vtx[0] = -1.0e6;
00063    vtx[1] = -1.0e6;
00064    vtx[2] = -1.0e6;
00065    vtx[3] = -1.0e6;
00066 }

float Anp::StdHep::E (  )  const [inline]

Definition at line 97 of file PhysicsNtuple/HEAD/StdHep.h.

References p4.

00097 { return p4[3]; }

float Anp::StdHep::Energy (  )  const [inline]

Definition at line 99 of file PhysicsNtuple/HEAD/StdHep.h.

References p4.

Referenced by Anp::StdHepTab::CreateArrows().

00099 { return p4[3]; }

int Anp::StdHep::GetIdHEP (  )  const [inline]

Definition at line 91 of file PhysicsNtuple/HEAD/StdHep.h.

References IdHEP.

Referenced by Anp::StdHepTab::CreateArrows().

00091 { return IdHEP; }

int Anp::StdHep::GetIstHEP (  )  const [inline]

Definition at line 90 of file PhysicsNtuple/HEAD/StdHep.h.

References IstHEP.

Referenced by Anp::TrueNu::TrueNu().

00090 { return IstHEP; }

float Anp::StdHep::GetMass (  )  const [inline]

Definition at line 92 of file PhysicsNtuple/HEAD/StdHep.h.

References mass.

00092 { return mass; }

bool Anp::StdHep::IsChild ( int  stdhep  )  const

Definition at line 75 of file StdHep.cxx.

References ChildBeg(), and ChildEnd().

00076 {
00077    if(stdhep >= ChildBeg() && stdhep <= ChildEnd())
00078    {
00079       return true;
00080    }
00081 
00082    return false;
00083 }

bool Anp::StdHep::IsLepton (  )  const

Definition at line 107 of file StdHep.cxx.

References IdHEP.

Referenced by Anp::TrueNu::TrueNu().

00108 {
00109    const int hep_ = std::abs(IdHEP);
00110    if(hep_ >= 11 && hep_ <= 16) 
00111    {
00112       return true;
00113    }
00114     
00115    return false;
00116 }

bool Anp::StdHep::IsMuon (  )  const

Definition at line 97 of file StdHep.cxx.

References IdHEP.

00098 {
00099    if(IdHEP == 13 || IdHEP == -13)
00100    {
00101       return true;
00102    }      
00103    return false;
00104 }

bool Anp::StdHep::IsParent ( int  stdhep  )  const

Definition at line 86 of file StdHep.cxx.

References ParentBeg(), and ParentEnd().

00087 {
00088    if(stdhep >= ParentBeg() && stdhep <= ParentEnd())
00089    {
00090       return true;
00091    }
00092 
00093    return false;
00094 }

float Anp::StdHep::P (  )  const

Definition at line 69 of file StdHep.cxx.

References p4.

Referenced by Anp::StdHepTab::CreateArrows().

00070 { 
00071    return std::sqrt(p4[0]*p4[0] + p4[1]*p4[1] + p4[2]*p4[2]);
00072 }

int Anp::StdHep::ParentBeg (  )  const [inline]

Definition at line 84 of file PhysicsNtuple/HEAD/StdHep.h.

References parent.

Referenced by IsParent(), and Anp::TrueNu::TrueNu().

00084 { return parent[0]; }

int Anp::StdHep::ParentEnd (  )  const [inline]

Definition at line 85 of file PhysicsNtuple/HEAD/StdHep.h.

References parent.

Referenced by IsParent(), and Anp::TrueNu::TrueNu().

00085 { return parent[1]; }

Particle::Particle_t Anp::StdHep::Particle (  )  const [inline]

Definition at line 106 of file PhysicsNtuple/HEAD/StdHep.h.

References IdHEP, and Particle::PDGParticle().

00107    {
00108       return Particle::PDGParticle(IdHEP);
00109    }

void Anp::StdHep::Print ( std::ostream &  os = std::cout  )  const

Referenced by Anp::TrueNu::TrueNu().

float Anp::StdHep::Px (  )  const [inline]

Definition at line 94 of file PhysicsNtuple/HEAD/StdHep.h.

References p4.

Referenced by Anp::StdHepTab::CreateArrows(), and Anp::TrueNu::TrueNu().

00094 { return p4[0]; }

float Anp::StdHep::Py (  )  const [inline]

Definition at line 95 of file PhysicsNtuple/HEAD/StdHep.h.

References p4.

Referenced by Anp::StdHepTab::CreateArrows(), and Anp::TrueNu::TrueNu().

00095 { return p4[1]; }

float Anp::StdHep::Pz (  )  const [inline]

Definition at line 96 of file PhysicsNtuple/HEAD/StdHep.h.

References p4.

Referenced by Anp::StdHepTab::CreateArrows(), and Anp::TrueNu::TrueNu().

00096 { return p4[2]; }

int Anp::StdHep::StdHepIndex (  )  const [inline]

Definition at line 81 of file PhysicsNtuple/HEAD/StdHep.h.

References index.

Referenced by Anp::TrueNu::TrueNu().

00081 { return index; }

float Anp::StdHep::Time (  )  const [inline]

Definition at line 104 of file PhysicsNtuple/HEAD/StdHep.h.

References vtx.

00104 { return vtx[3]; }

int Anp::StdHep::TruthIndex (  )  const [inline]

Definition at line 82 of file PhysicsNtuple/HEAD/StdHep.h.

References mc_index.

Referenced by Anp::Truth::Match(), and Anp::TrueNu::TrueNu().

00082 { return mc_index; }

float Anp::StdHep::VtxX (  )  const [inline]

Definition at line 101 of file PhysicsNtuple/HEAD/StdHep.h.

References vtx.

Referenced by Anp::StdHepTab::CreateArrows().

00101 { return vtx[0]; }

float Anp::StdHep::VtxY (  )  const [inline]

Definition at line 102 of file PhysicsNtuple/HEAD/StdHep.h.

References vtx.

Referenced by Anp::StdHepTab::CreateArrows().

00102 { return vtx[1]; }

float Anp::StdHep::VtxZ (  )  const [inline]

Definition at line 103 of file PhysicsNtuple/HEAD/StdHep.h.

References vtx.

Referenced by Anp::StdHepTab::CreateArrows().

00103 { return vtx[2]; }    


Friends And Related Function Documentation

friend class FillTruth [friend]

Definition at line 65 of file PhysicsNtuple/HEAD/StdHep.h.


Member Data Documentation

Int_t Anp::StdHep::child[2] [private]
Int_t Anp::StdHep::IdHEP [private]
Int_t Anp::StdHep::index [private]

Definition at line 67 of file PhysicsNtuple/HEAD/StdHep.h.

Referenced by Clear(), Anp::FillTruth::FillStdHep(), and StdHepIndex().

Int_t Anp::StdHep::IstHEP [private]

Definition at line 71 of file PhysicsNtuple/HEAD/StdHep.h.

Referenced by Clear(), Anp::FillTruth::FillStdHep(), and GetIstHEP().

Float_t Anp::StdHep::mass [private]

Definition at line 73 of file PhysicsNtuple/HEAD/StdHep.h.

Referenced by Clear(), Anp::FillTruth::FillStdHep(), and GetMass().

Int_t Anp::StdHep::mc_index [private]

Definition at line 68 of file PhysicsNtuple/HEAD/StdHep.h.

Referenced by Clear(), Anp::FillTruth::FillStdHep(), and TruthIndex().

Float_t Anp::StdHep::p4[4] [private]

Definition at line 74 of file PhysicsNtuple/HEAD/StdHep.h.

Referenced by Clear(), E(), Energy(), Anp::FillTruth::FillStdHep(), P(), Px(), Py(), Pz(), and StdHep().

Int_t Anp::StdHep::parent[2] [private]
Float_t Anp::StdHep::vtx[4] [private]

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

Generated on 19 Jan 2018 for loon by  doxygen 1.6.1