NuParent Class Reference

#include <NuParent.h>

List of all members.

Public Member Functions

 NuParent ()
 NuParent (Float_t, Float_t, Float_t, Float_t, Float_t, Float_t, Int_t, Int_t)
 ~NuParent ()
NuParent operator= (NuParent source)
void FillRegistry (Registry &)
void PrintInfo () const
void Zero ()
Float_t GetX () const
Float_t GetY () const
Float_t GetZ () const
Float_t GetPx () const
Float_t GetPy () const
Float_t GetPz () const
Int_t GetPID () const
Int_t GetGen () const
void SetX (Float_t)
void SetY (Float_t)
void SetZ (Float_t)
void SetPx (Float_t)
void SetPy (Float_t)
void SetPz (Float_t)
void SetPID (Int_t)
void SetGen (Int_t)

Private Attributes

Float_t parent_x
Float_t parent_y
Float_t parent_z
Float_t parent_px
Float_t parent_py
Float_t parent_pz
Int_t parent_pid
Int_t parent_gen


Detailed Description

Definition at line 7 of file NuParent.h.


Constructor & Destructor Documentation

NuParent::NuParent (  ) 

Definition at line 12 of file NuParent.cxx.

References Msg::kDebug, and MSG.

00012                    : parent_x(0),parent_y(0),parent_z(0),
00013                        parent_px(0),parent_py(0),parent_pz(0),
00014                        parent_pid(0),parent_gen(0)
00015 {
00016   MSG("NuParent",Msg::kDebug)<<"in NuParent()"<<endl;
00017 }

NuParent::NuParent ( Float_t  ,
Float_t  ,
Float_t  ,
Float_t  ,
Float_t  ,
Float_t  ,
Int_t  ,
Int_t   
)

Definition at line 20 of file NuParent.cxx.

References Msg::kDebug, MSG, parent_gen, parent_pid, parent_px, parent_py, parent_pz, parent_x, parent_y, and parent_z.

00023 {
00024   MSG("NuParent",Msg::kDebug)<<"in NuParent(...)"<<endl;
00025   parent_x   = x;
00026   parent_y   = y;
00027   parent_z   = z;
00028   parent_px  = px;
00029   parent_py  = py;
00030   parent_pz  = pz;
00031   parent_pid = pid;
00032   parent_gen = gen;
00033 }

NuParent::~NuParent (  ) 

Definition at line 36 of file NuParent.cxx.

References Msg::kDebug, and MSG.

00037 {
00038   MSG("NuParent",Msg::kDebug)<<"in ~NuParent()"<<endl;
00039 }


Member Function Documentation

void NuParent::FillRegistry ( Registry  ) 

Definition at line 56 of file NuParent.cxx.

References Registry::LockKeys(), Registry::LockValues(), parent_gen, parent_pid, parent_px, parent_py, parent_pz, parent_x, parent_y, parent_z, Registry::Set(), Registry::UnLockKeys(), and Registry::UnLockValues().

00057 {  
00058 
00059    Reg.UnLockKeys();
00060    Reg.UnLockValues();
00061    
00062    Reg.Set("event:nuparent_x",parent_x);
00063    Reg.Set("event:nuparent_y",parent_y);
00064    Reg.Set("event:nuparent_z",parent_z);
00065    Reg.Set("event:nuparent_px",parent_px);
00066    Reg.Set("event:nuparent_py",parent_py);
00067    Reg.Set("event:nuparent_pz",parent_pz);
00068    Reg.Set("event:nuparent_pid",parent_pid);
00069    Reg.Set("event:nuparent_gen",parent_gen);
00070 
00071    Reg.LockValues();
00072    Reg.LockKeys();
00073 }

Int_t NuParent::GetGen (  )  const [inline]

Definition at line 60 of file NuParent.h.

References parent_gen.

Referenced by MuParentHelper::FillANtpTruth(), GnumiInterface::FillANtpTruth(), BMPTWeightCalculator::GetWeight(), PANAnalysis::MakeMCVector(), operator=(), and MCFluxInfoAna::ResetMuParentInfo().

00060 {return parent_gen;}

Int_t NuParent::GetPID (  )  const [inline]

Definition at line 59 of file NuParent.h.

References parent_pid.

Referenced by MuParentHelper::FillANtpTruth(), GnumiInterface::FillANtpTruth(), BMPTWeightCalculator::GetWeight(), PANAnalysis::MakeMCVector(), operator=(), and MCFluxInfoAna::ResetMuParentInfo().

00059 {return parent_pid;}

Float_t NuParent::GetPx (  )  const [inline]

Definition at line 56 of file NuParent.h.

References parent_px.

Referenced by MuParentHelper::FillANtpTruth(), GnumiInterface::FillANtpTruth(), BMPTWeightCalculator::GetWeight(), PANAnalysis::MakeMCVector(), operator=(), and MCFluxInfoAna::ResetMuParentInfo().

00056 {return parent_px;}

Float_t NuParent::GetPy (  )  const [inline]

Definition at line 57 of file NuParent.h.

References parent_py.

Referenced by MuParentHelper::FillANtpTruth(), GnumiInterface::FillANtpTruth(), BMPTWeightCalculator::GetWeight(), PANAnalysis::MakeMCVector(), operator=(), and MCFluxInfoAna::ResetMuParentInfo().

00057 {return parent_py;}

Float_t NuParent::GetPz (  )  const [inline]

Definition at line 58 of file NuParent.h.

References parent_pz.

Referenced by MuParentHelper::FillANtpTruth(), GnumiInterface::FillANtpTruth(), BMPTWeightCalculator::GetWeight(), PANAnalysis::MakeMCVector(), operator=(), and MCFluxInfoAna::ResetMuParentInfo().

00058 {return parent_pz;}

Float_t NuParent::GetX (  )  const [inline]

Definition at line 53 of file NuParent.h.

References parent_x.

Referenced by MuParentHelper::FillANtpTruth(), GnumiInterface::FillANtpTruth(), BMPTWeightCalculator::GetWeight(), PANAnalysis::MakeMCVector(), operator=(), and MCFluxInfoAna::ResetMuParentInfo().

00053 {return parent_x;}

Float_t NuParent::GetY (  )  const [inline]

Definition at line 54 of file NuParent.h.

References parent_y.

Referenced by MuParentHelper::FillANtpTruth(), GnumiInterface::FillANtpTruth(), BMPTWeightCalculator::GetWeight(), PANAnalysis::MakeMCVector(), operator=(), and MCFluxInfoAna::ResetMuParentInfo().

00054 {return parent_y;}

Float_t NuParent::GetZ (  )  const [inline]

Definition at line 55 of file NuParent.h.

References parent_z.

Referenced by MuParentHelper::FillANtpTruth(), GnumiInterface::FillANtpTruth(), BMPTWeightCalculator::GetWeight(), PANAnalysis::MakeMCVector(), operator=(), and MCFluxInfoAna::ResetMuParentInfo().

00055 {return parent_z;}

NuParent NuParent::operator= ( NuParent  source  ) 

Definition at line 42 of file NuParent.cxx.

References GetGen(), GetPID(), GetPx(), GetPy(), GetPz(), GetX(), GetY(), GetZ(), parent_gen, parent_pid, parent_px, parent_py, parent_pz, parent_x, parent_y, and parent_z.

00043 {
00044   parent_x   = source.GetX();
00045   parent_y   = source.GetY();
00046   parent_z   = source.GetZ();
00047   parent_px  = source.GetPx();
00048   parent_py  = source.GetPy();
00049   parent_pz  = source.GetPz();
00050   parent_pid = source.GetPID();  
00051   parent_gen = source.GetGen();  
00052   return *this;
00053 }

void NuParent::PrintInfo (  )  const

Definition at line 76 of file NuParent.cxx.

References parent_gen, parent_pid, parent_px, parent_py, parent_pz, parent_x, parent_y, and parent_z.

00077 {
00078   std::cout<<"X = "<<parent_x<<" Y = "<<parent_y
00079            <<" Z = "<<parent_z<<std::endl;
00080   std::cout<<"Px = "<<parent_px<<" Py = "<<parent_py
00081            <<" Pz = "<<parent_pz<<std::endl;
00082   std::cout<<"Pid = "<<parent_pid<<" Gen = "<<parent_gen<<std::endl;
00083 }

void NuParent::SetGen ( Int_t   )  [inline]

Definition at line 69 of file NuParent.h.

References parent_gen.

Referenced by MuParentHelper::GetMuParent(), GnumiInterface::GetParent(), and PANAnalysis::MakeReweightTree().

00069 {parent_gen = gen;}

void NuParent::SetPID ( Int_t   )  [inline]

Definition at line 68 of file NuParent.h.

References parent_pid.

Referenced by MuParentHelper::GetMuParent(), GnumiInterface::GetParent(), and PANAnalysis::MakeReweightTree().

00068 {parent_pid = pid;}

void NuParent::SetPx ( Float_t   )  [inline]

Definition at line 65 of file NuParent.h.

References parent_px.

Referenced by MuParentHelper::GetMuParent(), GnumiInterface::GetParent(), and PANAnalysis::MakeReweightTree().

00065 {parent_px = px;}

void NuParent::SetPy ( Float_t   )  [inline]

Definition at line 66 of file NuParent.h.

References parent_py.

Referenced by MuParentHelper::GetMuParent(), GnumiInterface::GetParent(), and PANAnalysis::MakeReweightTree().

00066 {parent_py = py;}

void NuParent::SetPz ( Float_t   )  [inline]

Definition at line 67 of file NuParent.h.

References parent_pz.

Referenced by MuParentHelper::GetMuParent(), GnumiInterface::GetParent(), and PANAnalysis::MakeReweightTree().

00067 {parent_pz = pz;}

void NuParent::SetX ( Float_t   )  [inline]

Definition at line 62 of file NuParent.h.

References parent_x.

Referenced by MuParentHelper::GetMuParent(), GnumiInterface::GetParent(), and PANAnalysis::MakeReweightTree().

00062 {parent_x = x;} 

void NuParent::SetY ( Float_t   )  [inline]

Definition at line 63 of file NuParent.h.

References parent_y.

Referenced by MuParentHelper::GetMuParent(), GnumiInterface::GetParent(), and PANAnalysis::MakeReweightTree().

00063 {parent_y = y;}

void NuParent::SetZ ( Float_t   )  [inline]

Definition at line 64 of file NuParent.h.

References parent_z.

Referenced by MuParentHelper::GetMuParent(), GnumiInterface::GetParent(), and PANAnalysis::MakeReweightTree().

00064 {parent_z = z;}

void NuParent::Zero (  ) 

Definition at line 86 of file NuParent.cxx.

References parent_gen, parent_pid, parent_px, parent_py, parent_pz, parent_x, parent_y, and parent_z.

Referenced by MadTestAnalysis::CreatePAN(), MadAnalysis::CreatePAN(), GnumiInterface::GetParent(), and MadEdAnalysis::MyCreatePAN().

00087 {
00088   parent_x=0; parent_y=0; parent_z=0; 
00089   parent_px=0; parent_py=0; parent_pz=0; 
00090   parent_pid=0; parent_gen=0;
00091 }


Member Data Documentation

Int_t NuParent::parent_gen [private]

Definition at line 47 of file NuParent.h.

Referenced by FillRegistry(), GetGen(), NuParent(), operator=(), PrintInfo(), SetGen(), and Zero().

Int_t NuParent::parent_pid [private]

Definition at line 46 of file NuParent.h.

Referenced by FillRegistry(), GetPID(), NuParent(), operator=(), PrintInfo(), SetPID(), and Zero().

Float_t NuParent::parent_px [private]

Definition at line 43 of file NuParent.h.

Referenced by FillRegistry(), GetPx(), NuParent(), operator=(), PrintInfo(), SetPx(), and Zero().

Float_t NuParent::parent_py [private]

Definition at line 44 of file NuParent.h.

Referenced by FillRegistry(), GetPy(), NuParent(), operator=(), PrintInfo(), SetPy(), and Zero().

Float_t NuParent::parent_pz [private]

Definition at line 45 of file NuParent.h.

Referenced by FillRegistry(), GetPz(), NuParent(), operator=(), PrintInfo(), SetPz(), and Zero().

Float_t NuParent::parent_x [private]

Definition at line 40 of file NuParent.h.

Referenced by FillRegistry(), GetX(), NuParent(), operator=(), PrintInfo(), SetX(), and Zero().

Float_t NuParent::parent_y [private]

Definition at line 41 of file NuParent.h.

Referenced by FillRegistry(), GetY(), NuParent(), operator=(), PrintInfo(), SetY(), and Zero().

Float_t NuParent::parent_z [private]

Definition at line 42 of file NuParent.h.

Referenced by FillRegistry(), GetZ(), NuParent(), operator=(), PrintInfo(), SetZ(), and Zero().


The documentation for this class was generated from the following files:
Generated on Thu Apr 10 23:03:17 2014 for loon by  doxygen 1.4.7