REROOT_NeuKin Class Reference

#include <REROOT_NeuKin.h>

List of all members.

Public Member Functions

 REROOT_NeuKin (NEUKIN_DEF *)
 REROOT_NeuKin ()
 ~REROOT_NeuKin ()
virtual void accept (REROOT_Visitor &v)
void clear ()
void printEvent (std::ostream &) const
Int_t ID () const
Int_t INu () const
Int_t INuNoOsc () const
Int_t ITg () const
Int_t IBoson () const
Int_t IResonance () const
Int_t IAction () const
Int_t IStruckQ () const
Int_t IFlags () const
Float_t A () const
Float_t Z () const
Float_t Sigma () const
Float_t SigmaDiff () const
const Float_t * P4Neu () const
const Float_t * P4NeuNoOsc () const
const Float_t * P4Tgt () const
Float_t X () const
Float_t Y () const
Float_t Q2 () const
Float_t W2 () const
const Float_t * P4Shw () const
const Float_t * P4Mu1 () const
const Float_t * P4Mu2 () const
Float_t EMFrac () const
const Float_t * P4El1 () const
const Float_t * P4El2 () const
const Float_t * P4Tau () const

Private Member Functions

void init ()

Private Attributes

Int_t m_ID
Int_t m_INu
Int_t m_INuNoOsc
Int_t m_ITg
Int_t m_IBoson
Int_t m_IResonance
Int_t m_IAction
Int_t m_IStruckQ
Int_t m_IFlags
Float_t m_A
Float_t m_Z
Float_t m_Sigma
Float_t m_SigmaDiff
Float_t m_P4Neu [4]
Float_t m_P4NeuNoOsc [4]
Float_t m_P4Tgt [4]
Float_t m_X
Float_t m_Y
Float_t m_Q2
Float_t m_W2
Float_t m_P4Shw [4]
Float_t m_P4Mu1 [4]
Float_t m_P4Mu2 [4]
Float_t m_EMFrac
Float_t m_P4El1 [4]
Float_t m_P4El2 [4]
Float_t m_P4Tau [4]

Detailed Description

Definition at line 16 of file REROOT_NeuKin.h.


Constructor & Destructor Documentation

REROOT_NeuKin::REROOT_NeuKin ( NEUKIN_DEF nr  ) 

Definition at line 61 of file REROOT_NeuKin.cxx.

References init().

00062 {
00063   m_ID         = nr->ID - 1;                                  // C index
00064   m_INu        = nr->INu;
00065   m_INuNoOsc   = nr->INuNoOsc;
00066   m_ITg        = nr->ITg;
00067   m_IBoson     = nr->IBoson;
00068   m_IResonance = nr->IResonance;
00069   m_IAction    = nr->IAction;
00070   m_IStruckQ   = nr->IStruckQ;
00071   m_IFlags     = nr->IFlags;
00072   m_A          = nr->A;
00073   m_Z          = nr->Z;
00074   m_Sigma      = nr->Sigma;
00075   m_SigmaDiff  = nr->SigmaDiff;
00076   m_X          = nr->X;
00077   m_Y          = nr->Y;
00078   m_Q2         = nr->Q2;
00079   m_W2         = nr->W2;
00080   m_EMFrac     = nr->EMFrac;
00081 
00082 // Fill simple arrays from NeuKin struct.
00083   Int_t i;
00084   for (i=0; i<4; i++) {
00085         m_P4Neu[i]      = nr->P4Neu[i];
00086         m_P4NeuNoOsc[i] = nr->P4NeuNoOsc[i];
00087         m_P4Tgt[i]      = nr->P4Tgt[i];
00088         m_P4Shw[i]      = nr->P4Shw[i];
00089         m_P4Mu1[i]      = nr->P4Mu1[i];
00090         m_P4Mu2[i]      = nr->P4Mu2[i];
00091         m_P4El1[i]      = nr->P4El1[i];
00092         m_P4El2[i]      = nr->P4El2[i];
00093         m_P4Tau[i]      = nr->P4Tau[i];
00094   }
00095 
00096   init();
00097 }

REROOT_NeuKin::REROOT_NeuKin (  ) 

Definition at line 99 of file REROOT_NeuKin.cxx.

References clear().

00100 {
00101   clear();
00102 }

REROOT_NeuKin::~REROOT_NeuKin (  ) 

Definition at line 108 of file REROOT_NeuKin.cxx.

00109 {
00110 }


Member Function Documentation

Float_t REROOT_NeuKin::A ( void   )  const [inline]

Definition at line 69 of file REROOT_NeuKin.h.

References m_A.

Referenced by MCText::AddSimSnarl(), NtpMaker::FillMCInfo(), NtpMCModule::FillNtpMCTruth(), and printEvent().

00069 {return m_A;  }                   // A

virtual void REROOT_NeuKin::accept ( REROOT_Visitor v  )  [inline, virtual]

Definition at line 54 of file REROOT_NeuKin.h.

References REROOT_Visitor::visit().

00054 { v.visit(this); }

void REROOT_NeuKin::clear (  ) 

Definition at line 112 of file REROOT_NeuKin.cxx.

References INULL, m_A, m_EMFrac, m_IAction, m_IBoson, m_ID, m_IFlags, m_INu, m_INuNoOsc, m_IResonance, m_IStruckQ, m_ITg, m_P4El1, m_P4El2, m_P4Mu1, m_P4Mu2, m_P4Neu, m_P4NeuNoOsc, m_P4Shw, m_P4Tau, m_P4Tgt, m_Q2, m_Sigma, m_SigmaDiff, m_W2, m_X, m_Y, m_Z, and RNULL.

Referenced by REROOT_NeuKin().

00113 {
00114   const int   INULL = 2147483647;  /* null values ala ADAMO */
00115   const float RNULL = 699050.*65536.*65536.*65536.*65536.*65536.*65536.*256.;
00116 
00117   // set default to what ADAMO nulwin would set the values to
00118   m_ID         = INULL;
00119   m_INu        = INULL;
00120   m_INuNoOsc   = INULL;
00121   m_ITg        = INULL;
00122   m_IBoson     = INULL;
00123   m_IResonance = INULL;
00124   m_IAction    = INULL;
00125   m_IStruckQ   = INULL;
00126   m_IFlags     = INULL;
00127   m_A          = RNULL;
00128   m_Z          = RNULL;
00129   m_Sigma      = RNULL;
00130   m_SigmaDiff  = RNULL;
00131   m_X          = RNULL;
00132   m_Y          = RNULL;
00133   m_Q2         = RNULL;
00134   m_W2         = RNULL;
00135   m_EMFrac     = RNULL;
00136 
00137 // Fill simple arrays from NeuKin struct.
00138   Int_t i;
00139   for (i=0; i<4; i++) {
00140         m_P4Neu[i]      = RNULL;
00141         m_P4NeuNoOsc[i] = RNULL;
00142         m_P4Tgt[i]      = RNULL;
00143         m_P4Shw[i]      = RNULL;
00144         m_P4Mu1[i]      = RNULL;
00145         m_P4Mu2[i]      = RNULL;
00146         m_P4El1[i]      = RNULL;
00147         m_P4El2[i]      = RNULL;
00148         m_P4Tau[i]      = RNULL;
00149   }
00150 
00151   m_IFlags       = INULL;
00152   m_IStruckQ     = INULL;
00153   m_SigmaDiff    = RNULL;
00154 }

Float_t REROOT_NeuKin::EMFrac (  )  const [inline]
Int_t REROOT_NeuKin::IAction (  )  const [inline]
Int_t REROOT_NeuKin::IBoson (  )  const [inline]
Int_t REROOT_NeuKin::ID (  )  const [inline]

Definition at line 60 of file REROOT_NeuKin.h.

References m_ID.

Referenced by MCText::AddSimSnarl(), and printEvent().

00060 {return m_ID;  }                 // ID

Int_t REROOT_NeuKin::IFlags (  )  const [inline]

Definition at line 68 of file REROOT_NeuKin.h.

References m_IFlags.

Referenced by NtpMCModule::FillNtpMCTruth(), and printEvent().

00068 {return m_IFlags;  }         // IFlags

void REROOT_NeuKin::init ( void   )  [private]

Definition at line 104 of file REROOT_NeuKin.cxx.

00105 {
00106 }

Int_t REROOT_NeuKin::INu (  )  const [inline]
Int_t REROOT_NeuKin::INuNoOsc (  )  const [inline]

Definition at line 62 of file REROOT_NeuKin.h.

References m_INuNoOsc.

Referenced by NtpMaker::FillMCInfo(), NtpMCModule::FillNtpMCTruth(), and printEvent().

00062 {return m_INuNoOsc;  }     // INuNoOsc

Int_t REROOT_NeuKin::IResonance (  )  const [inline]
Int_t REROOT_NeuKin::IStruckQ (  )  const [inline]

Definition at line 67 of file REROOT_NeuKin.h.

References m_IStruckQ.

Referenced by NtpMCModule::FillNtpMCTruth(), and printEvent().

00067 {return m_IStruckQ;  }     // IStruckQ

Int_t REROOT_NeuKin::ITg (  )  const [inline]
const Float_t* REROOT_NeuKin::P4El1 (  )  const [inline]
const Float_t* REROOT_NeuKin::P4El2 (  )  const [inline]

Definition at line 85 of file REROOT_NeuKin.h.

References m_P4El2.

Referenced by ChopModule::Ana(), NtpMCModule::FillNtpMCTruth(), printEvent(), and Blinder::Reco().

00085 {return m_P4El2;  }        // P4El2[4]

const Float_t* REROOT_NeuKin::P4Mu1 (  )  const [inline]
const Float_t* REROOT_NeuKin::P4Mu2 (  )  const [inline]

Definition at line 82 of file REROOT_NeuKin.h.

References m_P4Mu2.

Referenced by ChopModule::Ana(), NtpMCModule::FillNtpMCTruth(), printEvent(), and Blinder::Reco().

00082 {return m_P4Mu2;  }        // P4Mu2[4]

const Float_t* REROOT_NeuKin::P4Neu (  )  const [inline]
const Float_t* REROOT_NeuKin::P4NeuNoOsc (  )  const [inline]

Definition at line 74 of file REROOT_NeuKin.h.

References m_P4NeuNoOsc.

Referenced by NtpMCModule::FillNtpMCTruth(), and printEvent().

00074 {return m_P4NeuNoOsc;  }  //P4NeuNoOsc

const Float_t* REROOT_NeuKin::P4Shw (  )  const [inline]
const Float_t* REROOT_NeuKin::P4Tau (  )  const [inline]

Definition at line 86 of file REROOT_NeuKin.h.

References m_P4Tau.

Referenced by NtpMCModule::FillNtpMCTruth(), printEvent(), and Blinder::Reco().

00086 {return m_P4Tau;  }        // P4Tau[4]

const Float_t* REROOT_NeuKin::P4Tgt (  )  const [inline]

Definition at line 75 of file REROOT_NeuKin.h.

References m_P4Tgt.

Referenced by AtNuTreeModule::Ana(), RecoTreeModule::Ana(), NtpMaker::FillMCInfo(), NtpMCModule::FillNtpMCTruth(), and printEvent().

00075 {return m_P4Tgt;  }        // P4Tgt[4]

void REROOT_NeuKin::printEvent ( std::ostream &  pstream  )  const

Definition at line 156 of file REROOT_NeuKin.cxx.

References A(), EMFrac(), IAction(), IBoson(), ID(), IFlags(), INu(), INuNoOsc(), IResonance(), IStruckQ(), ITg(), P4El1(), P4El2(), P4Mu1(), P4Mu2(), P4Neu(), P4NeuNoOsc(), P4Shw(), P4Tau(), P4Tgt(), Q2(), Sigma(), SigmaDiff(), W2(), X(), Y(), and Z().

Referenced by RerootToTruthModule::Ana(), REROOT_Event::fill_objects_from_GAF(), and REROOT_UserVisitor::visit().

00157 {
00158   pstream << "======================= NeuKin ======================\n";
00159   pstream << "NeuKin.ID            = " << ID()                 << "\n";
00160   pstream << "NeuKin.INu           = " << INu()                << "\n";
00161   pstream << "NeuKin.INuNoOsc      = " << INuNoOsc()           << "\n";
00162   pstream << "NeuKin.ITg           = " << ITg()                << "\n";
00163   pstream << "NeuKin.IBoson        = " << IBoson()             << "\n";
00164   pstream << "NeuKin.IResonance    = " << IResonance()         << "\n";
00165   pstream << "NeuKin.IAction       = " << IAction()            << "\n";
00166   pstream << "NeuKin.IStruckQ      = " << IStruckQ()           << "\n";
00167   pstream << "NeuKin.IFlags        = " << IFlags()             << "\n";
00168   pstream << "NeuKin.A             = " << A()                  << "\n";
00169   pstream << "NeuKin.Z             = " << Z()                  << "\n";
00170   pstream << "NeuKin.Sigma         = " << Sigma()              << "\n";
00171   pstream << "NeuKin.SigmaDiff     = " << SigmaDiff()          << "\n";
00172   pstream << "NeuKin.P4Neu         = ";
00173   pstream << P4Neu()[0] << " " << P4Neu()[1] << " "
00174           << P4Neu()[2] << " " << P4Neu()[3] << endl;
00175   pstream << "NeuKin.P4NeuNoOsc    = ";
00176   pstream << P4NeuNoOsc()[0] << " " << P4NeuNoOsc()[1] << " "
00177           << P4NeuNoOsc()[2] << " " << P4NeuNoOsc()[3] << endl;
00178   pstream << "NeuKin.P4Tgt         = ";
00179   pstream << P4Tgt()[0] << " " << P4Tgt()[1] << " "
00180           << P4Tgt()[2] << " " << P4Tgt()[3] << endl;
00181   pstream << "NeuKin.X             = " << X()                  << "\n";
00182   pstream << "NeuKin.Y             = " << Y()                  << "\n";
00183   pstream << "NeuKin.Q2            = " << Q2()                 << "\n";
00184   pstream << "NeuKin.W2            = " << W2()                 << "\n";
00185   pstream << "NeuKin.P4Shw         = ";
00186   pstream << P4Shw()[0] << " " << P4Shw()[1] << " "
00187           << P4Shw()[2] << " " << P4Shw()[3] << endl;
00188   pstream << "NeuKin.P4Mu1         = ";
00189   pstream << P4Mu1()[0] << " " << P4Mu1()[1] << " "
00190           << P4Mu1()[2] << " " << P4Mu1()[3] << endl;
00191   pstream << "NeuKin.P4Mu2         = ";
00192   pstream << P4Mu2()[0] << " " << P4Mu2()[1] << " "
00193           << P4Mu2()[2] << " " << P4Mu2()[3] << endl;
00194   pstream << "NeuKin.EMFrac        = " << EMFrac()             << "\n";
00195   pstream << "NeuKin.P4El1         = ";
00196   pstream << P4El1()[0] << " " << P4El1()[1] << " "
00197           << P4El1()[2] << " " << P4El1()[3] << endl;
00198   pstream << "NeuKin.P4El2         = ";
00199   pstream << P4El2()[0] << " " << P4El2()[1] << " "
00200           << P4El2()[2] << " " << P4El2()[3] << endl;
00201   pstream << "NeuKin.P4Tau         = ";
00202   pstream << P4Tau()[0] << " " << P4Tau()[1] << " "
00203           << P4Tau()[2] << " " << P4Tau()[3] << endl;
00204 }

Float_t REROOT_NeuKin::Q2 (  )  const [inline]
Float_t REROOT_NeuKin::Sigma (  )  const [inline]
Float_t REROOT_NeuKin::SigmaDiff (  )  const [inline]

Definition at line 72 of file REROOT_NeuKin.h.

References m_SigmaDiff.

Referenced by NtpMCModule::FillNtpMCTruth(), and printEvent().

00072 {return m_SigmaDiff;  }   // SigmaDiff

Float_t REROOT_NeuKin::W2 (  )  const [inline]
Float_t REROOT_NeuKin::X (  )  const [inline]
Float_t REROOT_NeuKin::Y (  )  const [inline]
Float_t REROOT_NeuKin::Z ( void   )  const [inline]

Definition at line 70 of file REROOT_NeuKin.h.

References m_Z.

Referenced by MCText::AddSimSnarl(), NtpMaker::FillMCInfo(), NtpMCModule::FillNtpMCTruth(), and printEvent().

00070 {return m_Z;  }                   // Z


Member Data Documentation

Float_t REROOT_NeuKin::m_A [private]

Definition at line 28 of file REROOT_NeuKin.h.

Referenced by A(), and clear().

Float_t REROOT_NeuKin::m_EMFrac [private]

Definition at line 42 of file REROOT_NeuKin.h.

Referenced by clear(), and EMFrac().

Int_t REROOT_NeuKin::m_IAction [private]

Definition at line 25 of file REROOT_NeuKin.h.

Referenced by clear(), and IAction().

Int_t REROOT_NeuKin::m_IBoson [private]

Definition at line 23 of file REROOT_NeuKin.h.

Referenced by clear(), and IBoson().

Int_t REROOT_NeuKin::m_ID [private]

Definition at line 19 of file REROOT_NeuKin.h.

Referenced by clear(), and ID().

Int_t REROOT_NeuKin::m_IFlags [private]

Definition at line 27 of file REROOT_NeuKin.h.

Referenced by clear(), and IFlags().

Int_t REROOT_NeuKin::m_INu [private]

Definition at line 20 of file REROOT_NeuKin.h.

Referenced by clear(), and INu().

Int_t REROOT_NeuKin::m_INuNoOsc [private]

Definition at line 21 of file REROOT_NeuKin.h.

Referenced by clear(), and INuNoOsc().

Int_t REROOT_NeuKin::m_IResonance [private]

Definition at line 24 of file REROOT_NeuKin.h.

Referenced by clear(), and IResonance().

Int_t REROOT_NeuKin::m_IStruckQ [private]

Definition at line 26 of file REROOT_NeuKin.h.

Referenced by clear(), and IStruckQ().

Int_t REROOT_NeuKin::m_ITg [private]

Definition at line 22 of file REROOT_NeuKin.h.

Referenced by clear(), and ITg().

Float_t REROOT_NeuKin::m_P4El1[4] [private]

Definition at line 43 of file REROOT_NeuKin.h.

Referenced by clear(), and P4El1().

Float_t REROOT_NeuKin::m_P4El2[4] [private]

Definition at line 44 of file REROOT_NeuKin.h.

Referenced by clear(), and P4El2().

Float_t REROOT_NeuKin::m_P4Mu1[4] [private]

Definition at line 40 of file REROOT_NeuKin.h.

Referenced by clear(), and P4Mu1().

Float_t REROOT_NeuKin::m_P4Mu2[4] [private]

Definition at line 41 of file REROOT_NeuKin.h.

Referenced by clear(), and P4Mu2().

Float_t REROOT_NeuKin::m_P4Neu[4] [private]

Definition at line 32 of file REROOT_NeuKin.h.

Referenced by clear(), and P4Neu().

Float_t REROOT_NeuKin::m_P4NeuNoOsc[4] [private]

Definition at line 33 of file REROOT_NeuKin.h.

Referenced by clear(), and P4NeuNoOsc().

Float_t REROOT_NeuKin::m_P4Shw[4] [private]

Definition at line 39 of file REROOT_NeuKin.h.

Referenced by clear(), and P4Shw().

Float_t REROOT_NeuKin::m_P4Tau[4] [private]

Definition at line 45 of file REROOT_NeuKin.h.

Referenced by clear(), and P4Tau().

Float_t REROOT_NeuKin::m_P4Tgt[4] [private]

Definition at line 34 of file REROOT_NeuKin.h.

Referenced by clear(), and P4Tgt().

Float_t REROOT_NeuKin::m_Q2 [private]

Definition at line 37 of file REROOT_NeuKin.h.

Referenced by clear(), and Q2().

Float_t REROOT_NeuKin::m_Sigma [private]

Definition at line 30 of file REROOT_NeuKin.h.

Referenced by clear(), and Sigma().

Float_t REROOT_NeuKin::m_SigmaDiff [private]

Definition at line 31 of file REROOT_NeuKin.h.

Referenced by clear(), and SigmaDiff().

Float_t REROOT_NeuKin::m_W2 [private]

Definition at line 38 of file REROOT_NeuKin.h.

Referenced by clear(), and W2().

Float_t REROOT_NeuKin::m_X [private]

Definition at line 35 of file REROOT_NeuKin.h.

Referenced by clear(), and X().

Float_t REROOT_NeuKin::m_Y [private]

Definition at line 36 of file REROOT_NeuKin.h.

Referenced by clear(), and Y().

Float_t REROOT_NeuKin::m_Z [private]

Definition at line 29 of file REROOT_NeuKin.h.

Referenced by clear(), and Z().


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

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1