#include <NuGnumiChain.h>
Inheritance diagram for NuGnumiChain:

Public Member Functions | |
| NuGnumiChain () | |
| NuGnumiChain (TChain &chain) | |
| NuGnumiChain (const std::string filename) | |
| virtual | ~NuGnumiChain () |
| virtual const Double_t | MuonParentPX (const Int_t event) const |
| virtual const Double_t | MuonParentPY (const Int_t event) const |
| virtual const Double_t | MuonParentPZ (const Int_t event) const |
| virtual const Double_t | MuonParentEnergy (const Int_t event) const |
| virtual const Double_t | NeutrinoFDEnergy (const Int_t event) const |
| virtual const Double_t | NeutrinoNDEnergy (const Int_t event) const |
| virtual const Double_t | NuECofM (const Int_t event) const |
| virtual const NuParticle::NuParticleType_t | NuType (const Int_t event) const |
| virtual const Double_t | NuImportanceWeight (const Int_t event) const |
| virtual const Double_t | NuFDWeight (const Int_t event) const |
| virtual const Double_t | NuNDWeight (const Int_t event) const |
| virtual const Double_t | ParentDecayVtxX (const Int_t event) const |
| virtual const Double_t | ParentDecayVtxY (const Int_t event) const |
| virtual const Double_t | ParentDecayVtxZ (const Int_t event) const |
| virtual const Double_t | ParentMass (const Int_t event) const |
| virtual const NuParticle::NuParticleType_t | ParentParticleType (const Int_t event) const |
| virtual const Double_t | ParentPX (const Int_t event) const |
| virtual const Double_t | ParentPY (const Int_t event) const |
| virtual const Double_t | ParentPZ (const Int_t event) const |
| virtual const Double_t | ParentProdDXDZ (const Int_t event) const |
| virtual const Double_t | ParentProdDYDZ (const Int_t event) const |
| virtual const Double_t | ParentProdEnergy (const Int_t event) const |
| virtual const Double_t | ParentProdPZ (const Int_t event) const |
| virtual const Double_t | ParentProdVtxX (const Int_t event) const |
| virtual const Double_t | ParentProdVtxY (const Int_t event) const |
| virtual const Double_t | ParentProdVtxZ (const Int_t event) const |
| virtual const NuParticle::NuParticleType_t | ParentType (const Int_t event) const |
| virtual const Double_t | TargetParentPX (const Int_t event) const |
| virtual const Double_t | TargetParentPY (const Int_t event) const |
| virtual const Double_t | TargetParentPZ (const Int_t event) const |
Private Member Functions | |
| ClassDef (NuGnumiChain, 0) | |
Private Attributes | |
| Float_t | fmuonParPX |
| Float_t | fmuonParPY |
| Float_t | fmuonParPZ |
| Float_t | fmuonParEnergy |
| Float_t | fnuECofM |
| Float_t | fnuEnergyFD |
| Float_t | fnuEnergyND |
| Float_t | fnuImpWt |
| Float_t | fnuFDWt |
| Float_t | fnuNDWt |
| Float_t | fparDecayVtxX |
| Float_t | fparDecayVtxY |
| Float_t | fparDecayVtxZ |
| Float_t | fparPX |
| Float_t | fparPY |
| Float_t | fparPZ |
| Float_t | fparProdDXDZ |
| Float_t | fparProdDYDZ |
| Float_t | fparProdEnergy |
| Float_t | fparProdPZ |
| Float_t | fparProdVtxX |
| Float_t | fparProdVtxY |
| Float_t | fparProdVtxZ |
| Float_t | ftargParPX |
| Float_t | ftargParPY |
| Float_t | ftargParPZ |
|
|
Definition at line 45 of file NuGnumiChain.cxx. 00046 : NuFluxChain(), 00047 fmuonParPX(0.0), 00048 fmuonParPY(0.0), 00049 fmuonParPZ(0.0), 00050 fmuonParEnergy(0.0), 00051 fnuECofM(0.0), 00052 fnuEnergyFD(0.0), 00053 fnuEnergyND(0.0), 00054 fnuImpWt(0.0), 00055 fnuFDWt(0.0), 00056 fnuNDWt(0.0), 00057 fparDecayVtxX(0.0), 00058 fparDecayVtxY(0.0), 00059 fparDecayVtxZ(0.0), 00060 fparPX(0.0), 00061 fparPY(0.0), 00062 fparPZ(0.0), 00063 fparProdDXDZ(0.0), 00064 fparProdDYDZ(0.0), 00065 fparProdEnergy(0.0), 00066 fparProdPZ(0.0), 00067 fparProdVtxX(0.0), 00068 fparProdVtxY(0.0), 00069 fparProdVtxZ(0.0), 00070 ftargParPX(0.0), 00071 ftargParPY(0.0), 00072 ftargParPZ(0.0) 00073 { 00074 }
|
|
|
Definition at line 77 of file NuGnumiChain.cxx. References fmuonParEnergy, fmuonParPX, fmuonParPY, fmuonParPZ, fnuECofM, fnuEnergyFD, fnuEnergyND, fnuFDWt, fnuImpWt, fnuNDWt, fparDecayVtxX, fparDecayVtxY, fparDecayVtxZ, fparProdDXDZ, fparProdDYDZ, fparProdEnergy, fparProdPZ, fparProdVtxX, fparProdVtxY, fparProdVtxZ, fparPX, fparPY, fparPZ, ftargParPX, ftargParPY, and ftargParPZ. 00078 : NuFluxChain() 00079 { 00080 fchain.Add(&chain); 00081 fchain.SetBranchAddress("Nenergyf",&fnuEnergyFD); 00082 fchain.SetBranchAddress("Nenergyn",&fnuEnergyND); 00083 fchain.SetBranchAddress("Necm",&fnuECofM); 00084 fchain.SetBranchAddress("Ntype",&fNuType); 00085 fchain.SetBranchAddress("Nimpwt",&fnuImpWt); 00086 fchain.SetBranchAddress("Nwtfar",&fnuFDWt); 00087 fchain.SetBranchAddress("Nwtnear",&fnuNDWt); 00088 fchain.SetBranchAddress("muparpx",&fmuonParPX); 00089 fchain.SetBranchAddress("muparpy",&fmuonParPY); 00090 fchain.SetBranchAddress("muparpz",&fmuonParPZ); 00091 fchain.SetBranchAddress("mupare",&fmuonParEnergy); 00092 fchain.SetBranchAddress("Vx",&fparDecayVtxX); 00093 fchain.SetBranchAddress("Vy",&fparDecayVtxY); 00094 fchain.SetBranchAddress("Vz",&fparDecayVtxZ); 00095 fchain.SetBranchAddress("tptype",&fparPartType); 00096 fchain.SetBranchAddress("pdpx",&fparPX); 00097 fchain.SetBranchAddress("pdpy",&fparPY); 00098 fchain.SetBranchAddress("pdpz",&fparPZ); 00099 fchain.SetBranchAddress("ppdxdz",&fparProdDXDZ); 00100 fchain.SetBranchAddress("ppdydz",&fparProdDYDZ); 00101 fchain.SetBranchAddress("ppenergy",&fparProdEnergy); 00102 fchain.SetBranchAddress("pppz",&fparProdPZ); 00103 fchain.SetBranchAddress("ppvx",&fparProdVtxX); 00104 fchain.SetBranchAddress("ppvy",&fparProdVtxY); 00105 fchain.SetBranchAddress("ppvz",&fparProdVtxZ); 00106 fchain.SetBranchAddress("ptype",&fparType); 00107 fchain.SetBranchAddress("tpx",&ftargParPX); 00108 fchain.SetBranchAddress("tpy",&ftargParPY); 00109 fchain.SetBranchAddress("tpz",&ftargParPZ); 00110 }
|
|
|
Definition at line 113 of file NuGnumiChain.cxx. References fmuonParEnergy, fmuonParPX, fmuonParPY, fmuonParPZ, fnuECofM, fnuEnergyFD, fnuEnergyND, fnuFDWt, fnuImpWt, fnuNDWt, fparDecayVtxX, fparDecayVtxY, fparDecayVtxZ, fparProdDXDZ, fparProdDYDZ, fparProdEnergy, fparProdPZ, fparProdVtxX, fparProdVtxY, fparProdVtxZ, fparPX, fparPY, fparPZ, ftargParPX, ftargParPY, ftargParPZ, and NuFluxChain::ParseFileName(). 00114 : NuFluxChain() 00115 { 00116 ParseFileName(filename.c_str()); 00117 fchain.Add(filename.c_str()); 00118 fchain.SetBranchAddress("Nenergyf",&fnuEnergyFD); 00119 fchain.SetBranchAddress("Nenergyn",&fnuEnergyND); 00120 fchain.SetBranchAddress("Necm",&fnuECofM); 00121 fchain.SetBranchAddress("Ntype",&fNuType); 00122 fchain.SetBranchAddress("Nimpwt",&fnuImpWt); 00123 fchain.SetBranchAddress("Nwtfar",&fnuFDWt); 00124 fchain.SetBranchAddress("Nwtnear",&fnuNDWt); 00125 fchain.SetBranchAddress("muparpx",&fmuonParPX); 00126 fchain.SetBranchAddress("muparpy",&fmuonParPY); 00127 fchain.SetBranchAddress("muparpz",&fmuonParPZ); 00128 fchain.SetBranchAddress("mupare",&fmuonParEnergy); 00129 fchain.SetBranchAddress("Vx",&fparDecayVtxX); 00130 fchain.SetBranchAddress("Vy",&fparDecayVtxY); 00131 fchain.SetBranchAddress("Vz",&fparDecayVtxZ); 00132 fchain.SetBranchAddress("tptype",&fparPartType); 00133 fchain.SetBranchAddress("pdpx",&fparPX); 00134 fchain.SetBranchAddress("pdpy",&fparPY); 00135 fchain.SetBranchAddress("pdpz",&fparPZ); 00136 fchain.SetBranchAddress("ppdxdz",&fparProdDXDZ); 00137 fchain.SetBranchAddress("ppdydz",&fparProdDYDZ); 00138 fchain.SetBranchAddress("ppenergy",&fparProdEnergy); 00139 fchain.SetBranchAddress("pppz",&fparProdPZ); 00140 fchain.SetBranchAddress("ppvx",&fparProdVtxX); 00141 fchain.SetBranchAddress("ppvy",&fparProdVtxY); 00142 fchain.SetBranchAddress("ppvz",&fparProdVtxZ); 00143 fchain.SetBranchAddress("ptype",&fparType); 00144 fchain.SetBranchAddress("tpx",&ftargParPX); 00145 fchain.SetBranchAddress("tpy",&ftargParPY); 00146 fchain.SetBranchAddress("tpz",&ftargParPZ); 00147 }
|
|
|
Definition at line 150 of file NuGnumiChain.cxx. 00151 {
00152 }
|
|
||||||||||||
|
|
|
|
Implements NuFluxChain. Definition at line 176 of file NuGnumiChain.cxx. References fmuonParEnergy, and NuFluxChain::LoadEvent(). 00177 {
00178 this->LoadEvent(event);
00179 return (Double_t) fmuonParEnergy*Munits::GeV;
00180 }
|
|
|
Implements NuFluxChain. Definition at line 155 of file NuGnumiChain.cxx. References fmuonParPX, and NuFluxChain::LoadEvent(). 00156 {
00157 this->LoadEvent(event);
00158 return (Double_t) fmuonParPX*Munits::GeV;
00159 }
|
|
|
Implements NuFluxChain. Definition at line 162 of file NuGnumiChain.cxx. References fmuonParPY, and NuFluxChain::LoadEvent(). 00163 {
00164 this->LoadEvent(event);
00165 return (Double_t) fmuonParPY*Munits::GeV;
00166 }
|
|
|
Implements NuFluxChain. Definition at line 169 of file NuGnumiChain.cxx. References fmuonParPZ, and NuFluxChain::LoadEvent(). 00170 {
00171 this->LoadEvent(event);
00172 return (Double_t) fmuonParPZ*Munits::GeV;
00173 }
|
|
|
Implements NuFluxChain. Definition at line 204 of file NuGnumiChain.cxx. References fnuEnergyFD, and NuFluxChain::LoadEvent(). 00205 {
00206 this->LoadEvent(event);
00207 return (Double_t) fnuEnergyFD*Munits::GeV;
00208 }
|
|
|
Implements NuFluxChain. Definition at line 211 of file NuGnumiChain.cxx. References fnuEnergyND, and NuFluxChain::LoadEvent(). 00212 {
00213 this->LoadEvent(event);
00214 return (Double_t) fnuEnergyND*Munits::GeV;
00215 }
|
|
|
Implements NuFluxChain. Definition at line 218 of file NuGnumiChain.cxx. References fnuECofM, and NuFluxChain::LoadEvent().
|
|
|
Implements NuFluxChain. Definition at line 190 of file NuGnumiChain.cxx. References NuFluxChain::LoadEvent(). 00191 {
00192 this->LoadEvent(event);
00193 return (Double_t) fnuFDWt;
00194 }
|
|
|
Implements NuFluxChain. Definition at line 183 of file NuGnumiChain.cxx. References NuFluxChain::LoadEvent(). 00184 {
00185 this->LoadEvent(event);
00186 return (Double_t) fnuImpWt;
00187 }
|
|
|
Implements NuFluxChain. Definition at line 197 of file NuGnumiChain.cxx. References NuFluxChain::LoadEvent(). 00198 {
00199 this->LoadEvent(event);
00200 return (Double_t) fnuNDWt;
00201 }
|
|
|
Implements NuFluxChain. Definition at line 246 of file NuGnumiChain.cxx. References NuFluxChain::LoadEvent(). 00247 {
00248 this->LoadEvent(event);
00249 if (NuParticle::kNuMu == fNuType){return NuParticle::kNuMu;}
00250 if (NuParticle::kNuMuBar == fNuType){return NuParticle::kNuMuBar;}
00251 if (NuParticle::kNuE == fNuType){return NuParticle::kNuE;}
00252 if (NuParticle::kNuEBar == fNuType){return NuParticle::kNuEBar;}
00253 return NuParticle::kUndefined;
00254 }
|
|
|
Implements NuFluxChain. Definition at line 225 of file NuGnumiChain.cxx. References fparDecayVtxX, and NuFluxChain::LoadEvent(). 00226 {
00227 this->LoadEvent(event);
00228 return (Double_t) fparDecayVtxX*Munits::cm;
00229 }
|
|
|
Implements NuFluxChain. Definition at line 232 of file NuGnumiChain.cxx. References fparDecayVtxY, and NuFluxChain::LoadEvent(). 00233 {
00234 this->LoadEvent(event);
00235 return (Double_t) fparDecayVtxY*Munits::cm;
00236 }
|
|
|
Implements NuFluxChain. Definition at line 239 of file NuGnumiChain.cxx. References fparDecayVtxZ, and NuFluxChain::LoadEvent(). 00240 {
00241 this->LoadEvent(event);
00242 return (Double_t) fparDecayVtxZ*Munits::cm;
00243 }
|
|
|
Implements NuFluxChain. Definition at line 257 of file NuGnumiChain.cxx. References ParentType(). 00258 {
00259 Int_t parType = this->ParentType(event);
00260 if (NuParticle::kMuPlus == parType){return 105.658369*Munits::MeV;}
00261 if (NuParticle::kMuMinus == parType){return 105.658369*Munits::MeV;}
00262 if (NuParticle::kPiPlus == parType){return 139.57018*Munits::MeV;}
00263 if (NuParticle::kPiMinus == parType){return 139.57018*Munits::MeV;}
00264 if (NuParticle::kK0Long == parType){return 497.648*Munits::MeV;}
00265 if (NuParticle::kKPlus == parType){return 493.677*Munits::MeV;}
00266 if (NuParticle::kKMinus == parType){return 493.677*Munits::MeV;}
00267 return -1.0;
00268 }
|
|
|
Implements NuFluxChain. Definition at line 356 of file NuGnumiChain.cxx. References NuFluxChain::LoadEvent(). 00357 {
00358 this->LoadEvent(event);
00359 if (NuParticle::kMuPlus == fparPartType){return NuParticle::kMuPlus;}
00360 if (NuParticle::kMuMinus == fparPartType){return NuParticle::kMuMinus;}
00361 if (NuParticle::kPiPlus == fparPartType){return NuParticle::kPiPlus;}
00362 if (NuParticle::kPiMinus == fparPartType){return NuParticle::kPiMinus;}
00363 if (NuParticle::kK0Long == fparPartType){return NuParticle::kK0Long;}
00364 if (NuParticle::kKPlus == fparPartType){return NuParticle::kKPlus;}
00365 if (NuParticle::kKMinus == fparPartType){return NuParticle::kKMinus;}
00366 return NuParticle::kUndefined;
00367 }
|
|
|
Implements NuFluxChain. Definition at line 292 of file NuGnumiChain.cxx. References NuFluxChain::LoadEvent(). 00293 {
00294 this->LoadEvent(event);
00295 return (Double_t) fparProdDXDZ;
00296 }
|
|
|
Implements NuFluxChain. Definition at line 299 of file NuGnumiChain.cxx. References NuFluxChain::LoadEvent(). 00300 {
00301 this->LoadEvent(event);
00302 return (Double_t) fparProdDYDZ;
00303 }
|
|
|
Implements NuFluxChain. Definition at line 306 of file NuGnumiChain.cxx. References fparProdEnergy, and NuFluxChain::LoadEvent(). 00307 {
00308 this->LoadEvent(event);
00309 return (Double_t) fparProdEnergy*Munits::GeV;
00310 }
|
|
|
Implements NuFluxChain. Definition at line 313 of file NuGnumiChain.cxx. References fparProdPZ, and NuFluxChain::LoadEvent(). 00314 {
00315 this->LoadEvent(event);
00316 return (Double_t) fparProdPZ*Munits::GeV;
00317 }
|
|
|
Implements NuFluxChain. Definition at line 320 of file NuGnumiChain.cxx. References fparProdVtxX, and NuFluxChain::LoadEvent(). 00321 {
00322 this->LoadEvent(event);
00323 return (Double_t) fparProdVtxX*Munits::cm;
00324 }
|
|
|
Implements NuFluxChain. Definition at line 327 of file NuGnumiChain.cxx. References fparProdVtxY, and NuFluxChain::LoadEvent(). 00328 {
00329 this->LoadEvent(event);
00330 return (Double_t) fparProdVtxY*Munits::cm;
00331 }
|
|
|
Implements NuFluxChain. Definition at line 334 of file NuGnumiChain.cxx. References fparProdVtxZ, and NuFluxChain::LoadEvent(). 00335 {
00336 this->LoadEvent(event);
00337 return (Double_t) fparProdVtxZ*Munits::cm;
00338 }
|
|
|
Implements NuFluxChain. Definition at line 271 of file NuGnumiChain.cxx. References fparPX, and NuFluxChain::LoadEvent().
|
|
|
Implements NuFluxChain. Definition at line 278 of file NuGnumiChain.cxx. References fparPY, and NuFluxChain::LoadEvent().
|
|
|
Implements NuFluxChain. Definition at line 285 of file NuGnumiChain.cxx. References fparPZ, and NuFluxChain::LoadEvent().
|
|
|
Implements NuFluxChain. Definition at line 341 of file NuGnumiChain.cxx. References NuFluxChain::LoadEvent(). Referenced by ParentMass(). 00342 {
00343 this->LoadEvent(event);
00344 if (NuParticle::kMuPlus == fparType){return NuParticle::kMuPlus;}
00345 if (NuParticle::kMuMinus == fparType){return NuParticle::kMuMinus;}
00346 if (NuParticle::kPiPlus == fparType){return NuParticle::kPiPlus;}
00347 if (NuParticle::kPiMinus == fparType){return NuParticle::kPiMinus;}
00348 if (NuParticle::kK0Long == fparType){return NuParticle::kK0Long;}
00349 if (NuParticle::kKPlus == fparType){return NuParticle::kKPlus;}
00350 if (NuParticle::kKMinus == fparType){return NuParticle::kKMinus;}
00351 return NuParticle::kUndefined;
00352 }
|
|
|
Implements NuFluxChain. Definition at line 370 of file NuGnumiChain.cxx. References ftargParPX, and NuFluxChain::LoadEvent(). 00371 {
00372 this->LoadEvent(event);
00373 return (Double_t) ftargParPX*Munits::GeV;
00374 }
|
|
|
Implements NuFluxChain. Definition at line 377 of file NuGnumiChain.cxx. References ftargParPY, and NuFluxChain::LoadEvent(). 00378 {
00379 this->LoadEvent(event);
00380 return (Double_t) ftargParPY*Munits::GeV;
00381 }
|
|
|
Implements NuFluxChain. Definition at line 384 of file NuGnumiChain.cxx. References ftargParPZ, and NuFluxChain::LoadEvent(). 00385 {
00386 this->LoadEvent(event);
00387 return (Double_t) ftargParPZ*Munits::GeV;
00388 }
|
|
|
Definition at line 79 of file NuGnumiChain.h. Referenced by MuonParentEnergy(), and NuGnumiChain(). |
|
|
Definition at line 76 of file NuGnumiChain.h. Referenced by MuonParentPX(), and NuGnumiChain(). |
|
|
Definition at line 77 of file NuGnumiChain.h. Referenced by MuonParentPY(), and NuGnumiChain(). |
|
|
Definition at line 78 of file NuGnumiChain.h. Referenced by MuonParentPZ(), and NuGnumiChain(). |
|
|
Definition at line 80 of file NuGnumiChain.h. Referenced by NuECofM(), and NuGnumiChain(). |
|
|
Definition at line 81 of file NuGnumiChain.h. Referenced by NeutrinoFDEnergy(), and NuGnumiChain(). |
|
|
Definition at line 82 of file NuGnumiChain.h. Referenced by NeutrinoNDEnergy(), and NuGnumiChain(). |
|
|
Definition at line 84 of file NuGnumiChain.h. Referenced by NuGnumiChain(). |
|
|
Definition at line 83 of file NuGnumiChain.h. Referenced by NuGnumiChain(). |
|
|
Definition at line 85 of file NuGnumiChain.h. Referenced by NuGnumiChain(). |
|
|
Definition at line 86 of file NuGnumiChain.h. Referenced by NuGnumiChain(), and ParentDecayVtxX(). |
|
|
Definition at line 87 of file NuGnumiChain.h. Referenced by NuGnumiChain(), and ParentDecayVtxY(). |
|
|
Definition at line 88 of file NuGnumiChain.h. Referenced by NuGnumiChain(), and ParentDecayVtxZ(). |
|
|
Definition at line 92 of file NuGnumiChain.h. Referenced by NuGnumiChain(). |
|
|
Definition at line 93 of file NuGnumiChain.h. Referenced by NuGnumiChain(). |
|
|
Definition at line 94 of file NuGnumiChain.h. Referenced by NuGnumiChain(), and ParentProdEnergy(). |
|
|
Definition at line 95 of file NuGnumiChain.h. Referenced by NuGnumiChain(), and ParentProdPZ(). |
|
|
Definition at line 96 of file NuGnumiChain.h. Referenced by NuGnumiChain(), and ParentProdVtxX(). |
|
|
Definition at line 97 of file NuGnumiChain.h. Referenced by NuGnumiChain(), and ParentProdVtxY(). |
|
|
Definition at line 98 of file NuGnumiChain.h. Referenced by NuGnumiChain(), and ParentProdVtxZ(). |
|
|
Definition at line 89 of file NuGnumiChain.h. Referenced by NuGnumiChain(), and ParentPX(). |
|
|
Definition at line 90 of file NuGnumiChain.h. Referenced by NuGnumiChain(), and ParentPY(). |
|
|
Definition at line 91 of file NuGnumiChain.h. Referenced by NuGnumiChain(), and ParentPZ(). |
|
|
Definition at line 99 of file NuGnumiChain.h. Referenced by NuGnumiChain(), and TargetParentPX(). |
|
|
Definition at line 100 of file NuGnumiChain.h. Referenced by NuGnumiChain(), and TargetParentPY(). |
|
|
Definition at line 101 of file NuGnumiChain.h. Referenced by NuGnumiChain(), and TargetParentPZ(). |
1.3.9.1