NuFluggChain Class Reference

#include <NuFluggChain.h>

Inheritance diagram for NuFluggChain:
NuFluxChain

List of all members.

Public Member Functions

 NuFluggChain ()
 NuFluggChain (TChain &chain)
 NuFluggChain (const std::string filename)
virtual ~NuFluggChain ()
virtual Double_t MuonParentPX (const Int_t event) const
virtual Double_t MuonParentPY (const Int_t event) const
virtual Double_t MuonParentPZ (const Int_t event) const
virtual Double_t MuonParentEnergy (const Int_t event) const
virtual Double_t NeutrinoFDEnergy (const Int_t event) const
virtual Double_t NeutrinoNDEnergy (const Int_t event) const
virtual Double_t NuECofM (const Int_t event) const
virtual
NuParticle::NuParticleType_t 
NuType (const Int_t event) const
virtual Double_t NuImportanceWeight (const Int_t event) const
virtual Double_t NuFDWeight (const Int_t event) const
virtual Double_t NuNDWeight (const Int_t event) const
virtual Double_t ParentDecayVtxX (const Int_t event) const
virtual Double_t ParentDecayVtxY (const Int_t event) const
virtual Double_t ParentDecayVtxZ (const Int_t event) const
virtual Double_t ParentMass (const Int_t event) const
virtual
NuParticle::NuParticleType_t 
ParentParticleType (const Int_t event) const
virtual Double_t ParentPX (const Int_t event) const
virtual Double_t ParentPY (const Int_t event) const
virtual Double_t ParentPZ (const Int_t event) const
virtual Double_t ParentProdDXDZ (const Int_t event) const
virtual Double_t ParentProdDYDZ (const Int_t event) const
virtual Double_t ParentProdEnergy (const Int_t event) const
virtual Double_t ParentProdPZ (const Int_t event) const
virtual Double_t ParentProdVtxX (const Int_t event) const
virtual Double_t ParentProdVtxY (const Int_t event) const
virtual Double_t ParentProdVtxZ (const Int_t event) const
virtual
NuParticle::NuParticleType_t 
ParentType (const Int_t event) const
virtual Double_t TargetParentPX (const Int_t event) const
virtual Double_t TargetParentPY (const Int_t event) const
virtual Double_t TargetParentPZ (const Int_t event) const

Private Member Functions

 ClassDef (NuFluggChain, 0)

Private Attributes

Double_t fmuonParPX
Double_t fmuonParPY
Double_t fmuonParPZ
Double_t fmuonParEnergy
Double_t fnuECofM
Double_t fnuEnergyFD
Double_t fnuEnergyND
Double_t fnuImpWt
Double_t fnuFDWt
Double_t fnuNDWt
Double_t fparDecayVtxX
Double_t fparDecayVtxY
Double_t fparDecayVtxZ
Double_t fparPX
Double_t fparPY
Double_t fparPZ
Double_t fparProdDXDZ
Double_t fparProdDYDZ
Double_t fparProdEnergy
Double_t fparProdPZ
Double_t fparProdVtxX
Double_t fparProdVtxY
Double_t fparProdVtxZ
Double_t ftargParPX
Double_t ftargParPY
Double_t ftargParPZ

Detailed Description

Definition at line 48 of file NuFluggChain.h.


Constructor & Destructor Documentation

NuFluggChain::NuFluggChain (  ) 

Definition at line 26 of file NuFluggChain.cxx.

00027   : NuFluxChain(),
00028     fmuonParPX(0.0),
00029     fmuonParPY(0.0),
00030     fmuonParPZ(0.0),
00031     fmuonParEnergy(0.0),
00032     fnuECofM(0.0),
00033     fnuEnergyFD(0.0),
00034     fnuEnergyND(0.0),
00035     fnuImpWt(0.0),
00036     fnuFDWt(0.0),
00037     fnuNDWt(0.0),
00038     fparDecayVtxX(0.0),
00039     fparDecayVtxY(0.0),
00040     fparDecayVtxZ(0.0),
00041     fparPX(0.0),
00042     fparPY(0.0),
00043     fparPZ(0.0),
00044     fparProdDXDZ(0.0),
00045     fparProdDYDZ(0.0),
00046     fparProdEnergy(0.0),
00047     fparProdPZ(0.0),
00048     fparProdVtxX(0.0),
00049     fparProdVtxY(0.0),
00050     fparProdVtxZ(0.0),
00051     ftargParPX(0.0),
00052     ftargParPY(0.0),
00053     ftargParPZ(0.0)
00054 {
00055 }

NuFluggChain::NuFluggChain ( TChain &  chain  ) 

Definition at line 58 of file NuFluggChain.cxx.

References NuFluxChain::fchain, fmuonParEnergy, fmuonParPX, fmuonParPY, fmuonParPZ, fnuECofM, fnuEnergyFD, fnuEnergyND, fnuFDWt, fnuImpWt, fnuNDWt, NuFluxChain::fNuType, fparDecayVtxX, fparDecayVtxY, fparDecayVtxZ, NuFluxChain::fparPartType, fparProdDXDZ, fparProdDYDZ, fparProdEnergy, fparProdPZ, fparProdVtxX, fparProdVtxY, fparProdVtxZ, fparPX, fparPY, fparPZ, NuFluxChain::fparType, ftargParPX, ftargParPY, and ftargParPZ.

00059   : NuFluxChain()
00060 {
00061   fchain.Add(&chain);
00062   fchain.SetBranchAddress("Nenergyf",&fnuEnergyFD);
00063   fchain.SetBranchAddress("Nenergyn",&fnuEnergyND);
00064   fchain.SetBranchAddress("Necm",&fnuECofM);
00065   fchain.SetBranchAddress("Ntype",&fNuType);
00066   fchain.SetBranchAddress("Nimpwt",&fnuImpWt);
00067   fchain.SetBranchAddress("Nwtfar",&fnuFDWt);
00068   fchain.SetBranchAddress("Nwtnear",&fnuNDWt);
00069   fchain.SetBranchAddress("muparpx",&fmuonParPX);
00070   fchain.SetBranchAddress("muparpy",&fmuonParPY);
00071   fchain.SetBranchAddress("muparpz",&fmuonParPZ);
00072   fchain.SetBranchAddress("mupare",&fmuonParEnergy);
00073   fchain.SetBranchAddress("Vx",&fparDecayVtxX);
00074   fchain.SetBranchAddress("Vy",&fparDecayVtxY);
00075   fchain.SetBranchAddress("Vz",&fparDecayVtxZ);
00076   fchain.SetBranchAddress("tptype",&fparPartType);
00077   fchain.SetBranchAddress("pdpx",&fparPX);
00078   fchain.SetBranchAddress("pdpy",&fparPY);
00079   fchain.SetBranchAddress("pdpz",&fparPZ);
00080   fchain.SetBranchAddress("ppdxdz",&fparProdDXDZ);
00081   fchain.SetBranchAddress("ppdydz",&fparProdDYDZ);
00082   fchain.SetBranchAddress("ppenergy",&fparProdEnergy);
00083   fchain.SetBranchAddress("pppz",&fparProdPZ);
00084   fchain.SetBranchAddress("ppvx",&fparProdVtxX);
00085   fchain.SetBranchAddress("ppvy",&fparProdVtxY);
00086   fchain.SetBranchAddress("ppvz",&fparProdVtxZ);
00087   fchain.SetBranchAddress("ptype",&fparType);
00088   fchain.SetBranchAddress("tpx",&ftargParPX);
00089   fchain.SetBranchAddress("tpy",&ftargParPY);
00090   fchain.SetBranchAddress("tpz",&ftargParPZ);
00091 }

NuFluggChain::NuFluggChain ( const std::string  filename  ) 
NuFluggChain::~NuFluggChain (  )  [virtual]

Definition at line 131 of file NuFluggChain.cxx.

00132 {
00133 }


Member Function Documentation

NuFluggChain::ClassDef ( NuFluggChain  ,
 
) [private]

Reimplemented from NuFluxChain.

Double_t NuFluggChain::MuonParentEnergy ( const Int_t  event  )  const [virtual]

Implements NuFluxChain.

Definition at line 157 of file NuFluggChain.cxx.

References fmuonParEnergy, Munits::GeV, and NuFluxChain::LoadEvent().

00158 {
00159   this->LoadEvent(event);
00160   return (Double_t) fmuonParEnergy*Munits::GeV;
00161 }

Double_t NuFluggChain::MuonParentPX ( const Int_t  event  )  const [virtual]

Implements NuFluxChain.

Definition at line 136 of file NuFluggChain.cxx.

References fmuonParPX, Munits::GeV, and NuFluxChain::LoadEvent().

00137 {
00138   this->LoadEvent(event);
00139   return (Double_t) fmuonParPX*Munits::GeV;
00140 }

Double_t NuFluggChain::MuonParentPY ( const Int_t  event  )  const [virtual]

Implements NuFluxChain.

Definition at line 143 of file NuFluggChain.cxx.

References fmuonParPY, Munits::GeV, and NuFluxChain::LoadEvent().

00144 {
00145   this->LoadEvent(event);
00146   return (Double_t) fmuonParPY*Munits::GeV;
00147 }

Double_t NuFluggChain::MuonParentPZ ( const Int_t  event  )  const [virtual]

Implements NuFluxChain.

Definition at line 150 of file NuFluggChain.cxx.

References fmuonParPZ, Munits::GeV, and NuFluxChain::LoadEvent().

00151 {
00152   this->LoadEvent(event);
00153   return (Double_t) fmuonParPZ*Munits::GeV;
00154 }

Double_t NuFluggChain::NeutrinoFDEnergy ( const Int_t  event  )  const [virtual]

Implements NuFluxChain.

Definition at line 185 of file NuFluggChain.cxx.

References fnuEnergyFD, Munits::GeV, and NuFluxChain::LoadEvent().

00186 {
00187   this->LoadEvent(event);
00188   return (Double_t) fnuEnergyFD*Munits::GeV;
00189 }

Double_t NuFluggChain::NeutrinoNDEnergy ( const Int_t  event  )  const [virtual]

Implements NuFluxChain.

Definition at line 192 of file NuFluggChain.cxx.

References fnuEnergyND, Munits::GeV, and NuFluxChain::LoadEvent().

00193 {
00194   this->LoadEvent(event);
00195   return (Double_t) fnuEnergyND*Munits::GeV;
00196 }

Double_t NuFluggChain::NuECofM ( const Int_t  event  )  const [virtual]

Implements NuFluxChain.

Definition at line 199 of file NuFluggChain.cxx.

References fnuECofM, Munits::GeV, and NuFluxChain::LoadEvent().

00200 {
00201   this->LoadEvent(event);
00202   return (Double_t) fnuECofM*Munits::GeV;
00203 }

Double_t NuFluggChain::NuFDWeight ( const Int_t  event  )  const [virtual]

Implements NuFluxChain.

Definition at line 171 of file NuFluggChain.cxx.

References fnuFDWt, and NuFluxChain::LoadEvent().

00172 {
00173   this->LoadEvent(event);
00174   return (Double_t) fnuFDWt;
00175 }

Double_t NuFluggChain::NuImportanceWeight ( const Int_t  event  )  const [virtual]

Implements NuFluxChain.

Definition at line 164 of file NuFluggChain.cxx.

References fnuImpWt, and NuFluxChain::LoadEvent().

00165 {
00166   this->LoadEvent(event);
00167   return (Double_t) fnuImpWt;
00168 }

Double_t NuFluggChain::NuNDWeight ( const Int_t  event  )  const [virtual]

Implements NuFluxChain.

Definition at line 178 of file NuFluggChain.cxx.

References fnuNDWt, and NuFluxChain::LoadEvent().

00179 {
00180   this->LoadEvent(event);
00181   return (Double_t) fnuNDWt;
00182 }

NuParticleType_t NuFluggChain::NuType ( const Int_t  event  )  const [virtual]
Double_t NuFluggChain::ParentDecayVtxX ( const Int_t  event  )  const [virtual]

Implements NuFluxChain.

Definition at line 206 of file NuFluggChain.cxx.

References Munits::cm, fparDecayVtxX, and NuFluxChain::LoadEvent().

00207 {
00208   this->LoadEvent(event);
00209   return (Double_t) fparDecayVtxX*Munits::cm;
00210 }

Double_t NuFluggChain::ParentDecayVtxY ( const Int_t  event  )  const [virtual]

Implements NuFluxChain.

Definition at line 213 of file NuFluggChain.cxx.

References Munits::cm, fparDecayVtxY, and NuFluxChain::LoadEvent().

00214 {
00215   this->LoadEvent(event);
00216   return (Double_t) fparDecayVtxY*Munits::cm;
00217 }

Double_t NuFluggChain::ParentDecayVtxZ ( const Int_t  event  )  const [virtual]

Implements NuFluxChain.

Definition at line 220 of file NuFluggChain.cxx.

References Munits::cm, fparDecayVtxZ, and NuFluxChain::LoadEvent().

00221 {
00222   this->LoadEvent(event);
00223   return (Double_t) fparDecayVtxZ*Munits::cm;
00224 }

Double_t NuFluggChain::ParentMass ( const Int_t  event  )  const [virtual]

Implements NuFluxChain.

Definition at line 238 of file NuFluggChain.cxx.

References NuParticle::kK0Long, NuParticle::kKMinus, NuParticle::kKPlus, NuParticle::kMuMinus, NuParticle::kMuPlus, NuParticle::kPiMinus, NuParticle::kPiPlus, Munits::MeV, and ParentType().

00239 {
00240   Int_t parType = this->ParentType(event);
00241   if (NuParticle::kMuPlus == parType){return 105.658369*Munits::MeV;}
00242   if (NuParticle::kMuMinus == parType){return 105.658369*Munits::MeV;}
00243   if (NuParticle::kPiPlus == parType){return 139.57018*Munits::MeV;}
00244   if (NuParticle::kPiMinus == parType){return 139.57018*Munits::MeV;}
00245   if (NuParticle::kK0Long == parType){return 497.648*Munits::MeV;}
00246   if (NuParticle::kKPlus == parType){return 493.677*Munits::MeV;}
00247   if (NuParticle::kKMinus == parType){return 493.677*Munits::MeV;}
00248   return -1.0;
00249 }

NuParticleType_t NuFluggChain::ParentParticleType ( const Int_t  event  )  const [virtual]
Double_t NuFluggChain::ParentProdDXDZ ( const Int_t  event  )  const [virtual]

Implements NuFluxChain.

Definition at line 273 of file NuFluggChain.cxx.

References fparProdDXDZ, and NuFluxChain::LoadEvent().

00274 {
00275   this->LoadEvent(event);
00276   return (Double_t) fparProdDXDZ;
00277 }

Double_t NuFluggChain::ParentProdDYDZ ( const Int_t  event  )  const [virtual]

Implements NuFluxChain.

Definition at line 280 of file NuFluggChain.cxx.

References fparProdDYDZ, and NuFluxChain::LoadEvent().

00281 {
00282   this->LoadEvent(event);
00283   return (Double_t) fparProdDYDZ;
00284 }

Double_t NuFluggChain::ParentProdEnergy ( const Int_t  event  )  const [virtual]

Implements NuFluxChain.

Definition at line 287 of file NuFluggChain.cxx.

References fparProdEnergy, Munits::GeV, and NuFluxChain::LoadEvent().

00288 {
00289   this->LoadEvent(event);
00290   return (Double_t) fparProdEnergy*Munits::GeV;
00291 }

Double_t NuFluggChain::ParentProdPZ ( const Int_t  event  )  const [virtual]

Implements NuFluxChain.

Definition at line 294 of file NuFluggChain.cxx.

References fparProdPZ, Munits::GeV, and NuFluxChain::LoadEvent().

00295 {
00296   this->LoadEvent(event);
00297   return (Double_t) fparProdPZ*Munits::GeV;
00298 }

Double_t NuFluggChain::ParentProdVtxX ( const Int_t  event  )  const [virtual]

Implements NuFluxChain.

Definition at line 301 of file NuFluggChain.cxx.

References Munits::cm, fparProdVtxX, and NuFluxChain::LoadEvent().

00302 {
00303   this->LoadEvent(event);
00304   return (Double_t) fparProdVtxX*Munits::cm;
00305 }

Double_t NuFluggChain::ParentProdVtxY ( const Int_t  event  )  const [virtual]

Implements NuFluxChain.

Definition at line 308 of file NuFluggChain.cxx.

References Munits::cm, fparProdVtxY, and NuFluxChain::LoadEvent().

00309 {
00310   this->LoadEvent(event);
00311   return (Double_t) fparProdVtxY*Munits::cm;
00312 }

Double_t NuFluggChain::ParentProdVtxZ ( const Int_t  event  )  const [virtual]

Implements NuFluxChain.

Definition at line 315 of file NuFluggChain.cxx.

References Munits::cm, fparProdVtxZ, and NuFluxChain::LoadEvent().

00316 {
00317   this->LoadEvent(event);
00318   return (Double_t) fparProdVtxZ*Munits::cm;
00319 }

Double_t NuFluggChain::ParentPX ( const Int_t  event  )  const [virtual]

Implements NuFluxChain.

Definition at line 252 of file NuFluggChain.cxx.

References fparPX, Munits::GeV, and NuFluxChain::LoadEvent().

00253 {
00254   this->LoadEvent(event);
00255   return (Double_t) fparPX*Munits::GeV;
00256 }

Double_t NuFluggChain::ParentPY ( const Int_t  event  )  const [virtual]

Implements NuFluxChain.

Definition at line 259 of file NuFluggChain.cxx.

References fparPY, Munits::GeV, and NuFluxChain::LoadEvent().

00260 {
00261   this->LoadEvent(event);
00262   return (Double_t) fparPY*Munits::GeV;
00263 }

Double_t NuFluggChain::ParentPZ ( const Int_t  event  )  const [virtual]

Implements NuFluxChain.

Definition at line 266 of file NuFluggChain.cxx.

References fparPZ, Munits::GeV, and NuFluxChain::LoadEvent().

00267 {
00268   this->LoadEvent(event);
00269   return (Double_t) fparPZ*Munits::GeV;
00270 }

NuParticleType_t NuFluggChain::ParentType ( const Int_t  event  )  const [virtual]
Double_t NuFluggChain::TargetParentPX ( const Int_t  event  )  const [virtual]

Implements NuFluxChain.

Definition at line 354 of file NuFluggChain.cxx.

References ftargParPX, Munits::GeV, and NuFluxChain::LoadEvent().

00355 {
00356   this->LoadEvent(event);
00357   return (Double_t) ftargParPX*Munits::GeV;
00358 }

Double_t NuFluggChain::TargetParentPY ( const Int_t  event  )  const [virtual]

Implements NuFluxChain.

Definition at line 361 of file NuFluggChain.cxx.

References ftargParPY, Munits::GeV, and NuFluxChain::LoadEvent().

00362 {
00363   this->LoadEvent(event);
00364   return (Double_t) ftargParPY*Munits::GeV;
00365 }

Double_t NuFluggChain::TargetParentPZ ( const Int_t  event  )  const [virtual]

Implements NuFluxChain.

Definition at line 368 of file NuFluggChain.cxx.

References ftargParPZ, Munits::GeV, and NuFluxChain::LoadEvent().

00369 {
00370   this->LoadEvent(event);
00371   return (Double_t) ftargParPZ*Munits::GeV;
00372 }


Member Data Documentation

Double_t NuFluggChain::fmuonParEnergy [private]

Definition at line 93 of file NuFluggChain.h.

Referenced by MuonParentEnergy(), and NuFluggChain().

Double_t NuFluggChain::fmuonParPX [private]

Definition at line 90 of file NuFluggChain.h.

Referenced by MuonParentPX(), and NuFluggChain().

Double_t NuFluggChain::fmuonParPY [private]

Definition at line 91 of file NuFluggChain.h.

Referenced by MuonParentPY(), and NuFluggChain().

Double_t NuFluggChain::fmuonParPZ [private]

Definition at line 92 of file NuFluggChain.h.

Referenced by MuonParentPZ(), and NuFluggChain().

Double_t NuFluggChain::fnuECofM [private]

Definition at line 94 of file NuFluggChain.h.

Referenced by NuECofM(), and NuFluggChain().

Double_t NuFluggChain::fnuEnergyFD [private]

Definition at line 95 of file NuFluggChain.h.

Referenced by NeutrinoFDEnergy(), and NuFluggChain().

Double_t NuFluggChain::fnuEnergyND [private]

Definition at line 96 of file NuFluggChain.h.

Referenced by NeutrinoNDEnergy(), and NuFluggChain().

Double_t NuFluggChain::fnuFDWt [private]

Definition at line 98 of file NuFluggChain.h.

Referenced by NuFDWeight(), and NuFluggChain().

Double_t NuFluggChain::fnuImpWt [private]

Definition at line 97 of file NuFluggChain.h.

Referenced by NuFluggChain(), and NuImportanceWeight().

Double_t NuFluggChain::fnuNDWt [private]

Definition at line 99 of file NuFluggChain.h.

Referenced by NuFluggChain(), and NuNDWeight().

Double_t NuFluggChain::fparDecayVtxX [private]

Definition at line 100 of file NuFluggChain.h.

Referenced by NuFluggChain(), and ParentDecayVtxX().

Double_t NuFluggChain::fparDecayVtxY [private]

Definition at line 101 of file NuFluggChain.h.

Referenced by NuFluggChain(), and ParentDecayVtxY().

Double_t NuFluggChain::fparDecayVtxZ [private]

Definition at line 102 of file NuFluggChain.h.

Referenced by NuFluggChain(), and ParentDecayVtxZ().

Double_t NuFluggChain::fparProdDXDZ [private]

Definition at line 106 of file NuFluggChain.h.

Referenced by NuFluggChain(), and ParentProdDXDZ().

Double_t NuFluggChain::fparProdDYDZ [private]

Definition at line 107 of file NuFluggChain.h.

Referenced by NuFluggChain(), and ParentProdDYDZ().

Double_t NuFluggChain::fparProdEnergy [private]

Definition at line 108 of file NuFluggChain.h.

Referenced by NuFluggChain(), and ParentProdEnergy().

Double_t NuFluggChain::fparProdPZ [private]

Definition at line 109 of file NuFluggChain.h.

Referenced by NuFluggChain(), and ParentProdPZ().

Double_t NuFluggChain::fparProdVtxX [private]

Definition at line 110 of file NuFluggChain.h.

Referenced by NuFluggChain(), and ParentProdVtxX().

Double_t NuFluggChain::fparProdVtxY [private]

Definition at line 111 of file NuFluggChain.h.

Referenced by NuFluggChain(), and ParentProdVtxY().

Double_t NuFluggChain::fparProdVtxZ [private]

Definition at line 112 of file NuFluggChain.h.

Referenced by NuFluggChain(), and ParentProdVtxZ().

Double_t NuFluggChain::fparPX [private]

Definition at line 103 of file NuFluggChain.h.

Referenced by NuFluggChain(), and ParentPX().

Double_t NuFluggChain::fparPY [private]

Definition at line 104 of file NuFluggChain.h.

Referenced by NuFluggChain(), and ParentPY().

Double_t NuFluggChain::fparPZ [private]

Definition at line 105 of file NuFluggChain.h.

Referenced by NuFluggChain(), and ParentPZ().

Double_t NuFluggChain::ftargParPX [private]

Definition at line 113 of file NuFluggChain.h.

Referenced by NuFluggChain(), and TargetParentPX().

Double_t NuFluggChain::ftargParPY [private]

Definition at line 114 of file NuFluggChain.h.

Referenced by NuFluggChain(), and TargetParentPY().

Double_t NuFluggChain::ftargParPZ [private]

Definition at line 115 of file NuFluggChain.h.

Referenced by NuFluggChain(), and TargetParentPZ().


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

Generated on 2 Nov 2017 for loon by  doxygen 1.6.1