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

Public Member Functions | |
| NuFluggChain () | |
| NuFluggChain (TChain &chain) | |
| NuFluggChain (const std::string filename) | |
| virtual | ~NuFluggChain () |
| 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 (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 |
|
|
Definition at line 48 of file NuFluggChain.cxx. 00049 : NuFluxChain(), 00050 fmuonParPX(0.0), 00051 fmuonParPY(0.0), 00052 fmuonParPZ(0.0), 00053 fmuonParEnergy(0.0), 00054 fnuECofM(0.0), 00055 fnuEnergyFD(0.0), 00056 fnuEnergyND(0.0), 00057 fnuImpWt(0.0), 00058 fnuFDWt(0.0), 00059 fnuNDWt(0.0), 00060 fparDecayVtxX(0.0), 00061 fparDecayVtxY(0.0), 00062 fparDecayVtxZ(0.0), 00063 fparPX(0.0), 00064 fparPY(0.0), 00065 fparPZ(0.0), 00066 fparProdDXDZ(0.0), 00067 fparProdDYDZ(0.0), 00068 fparProdEnergy(0.0), 00069 fparProdPZ(0.0), 00070 fparProdVtxX(0.0), 00071 fparProdVtxY(0.0), 00072 fparProdVtxZ(0.0), 00073 ftargParPX(0.0), 00074 ftargParPY(0.0), 00075 ftargParPZ(0.0) 00076 { 00077 }
|
|
|
Definition at line 80 of file NuFluggChain.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. 00081 : NuFluxChain() 00082 { 00083 fchain.Add(&chain); 00084 fchain.SetBranchAddress("Nenergyf",&fnuEnergyFD); 00085 fchain.SetBranchAddress("Nenergyn",&fnuEnergyND); 00086 fchain.SetBranchAddress("Necm",&fnuECofM); 00087 fchain.SetBranchAddress("Ntype",&fNuType); 00088 fchain.SetBranchAddress("Nimpwt",&fnuImpWt); 00089 fchain.SetBranchAddress("Nwtfar",&fnuFDWt); 00090 fchain.SetBranchAddress("Nwtnear",&fnuNDWt); 00091 fchain.SetBranchAddress("muparpx",&fmuonParPX); 00092 fchain.SetBranchAddress("muparpy",&fmuonParPY); 00093 fchain.SetBranchAddress("muparpz",&fmuonParPZ); 00094 fchain.SetBranchAddress("mupare",&fmuonParEnergy); 00095 fchain.SetBranchAddress("Vx",&fparDecayVtxX); 00096 fchain.SetBranchAddress("Vy",&fparDecayVtxY); 00097 fchain.SetBranchAddress("Vz",&fparDecayVtxZ); 00098 fchain.SetBranchAddress("tptype",&fparPartType); 00099 fchain.SetBranchAddress("pdpx",&fparPX); 00100 fchain.SetBranchAddress("pdpy",&fparPY); 00101 fchain.SetBranchAddress("pdpz",&fparPZ); 00102 fchain.SetBranchAddress("ppdxdz",&fparProdDXDZ); 00103 fchain.SetBranchAddress("ppdydz",&fparProdDYDZ); 00104 fchain.SetBranchAddress("ppenergy",&fparProdEnergy); 00105 fchain.SetBranchAddress("pppz",&fparProdPZ); 00106 fchain.SetBranchAddress("ppvx",&fparProdVtxX); 00107 fchain.SetBranchAddress("ppvy",&fparProdVtxY); 00108 fchain.SetBranchAddress("ppvz",&fparProdVtxZ); 00109 fchain.SetBranchAddress("ptype",&fparType); 00110 fchain.SetBranchAddress("tpx",&ftargParPX); 00111 fchain.SetBranchAddress("tpy",&ftargParPY); 00112 fchain.SetBranchAddress("tpz",&ftargParPZ); 00113 }
|
|
|
Definition at line 116 of file NuFluggChain.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(). 00117 : NuFluxChain() 00118 { 00119 ParseFileName(filename.c_str()); 00120 fchain.Add(filename.c_str()); 00121 fchain.SetBranchAddress("Nenergyf",&fnuEnergyFD); 00122 fchain.SetBranchAddress("Nenergyn",&fnuEnergyND); 00123 fchain.SetBranchAddress("Necm",&fnuECofM); 00124 fchain.SetBranchAddress("Ntype",&fNuType); 00125 fchain.SetBranchAddress("Nimpwt",&fnuImpWt); 00126 fchain.SetBranchAddress("Nwtfar",&fnuFDWt); 00127 fchain.SetBranchAddress("Nwtnear",&fnuNDWt); 00128 fchain.SetBranchAddress("muparpx",&fmuonParPX); 00129 fchain.SetBranchAddress("muparpy",&fmuonParPY); 00130 fchain.SetBranchAddress("muparpz",&fmuonParPZ); 00131 fchain.SetBranchAddress("mupare",&fmuonParEnergy); 00132 fchain.SetBranchAddress("Vx",&fparDecayVtxX); 00133 fchain.SetBranchAddress("Vy",&fparDecayVtxY); 00134 fchain.SetBranchAddress("Vz",&fparDecayVtxZ); 00135 fchain.SetBranchAddress("tptype",&fparPartType); 00136 fchain.SetBranchAddress("pdPx",&fparPX); 00137 fchain.SetBranchAddress("pdPy",&fparPY); 00138 fchain.SetBranchAddress("pdPz",&fparPZ); 00139 fchain.SetBranchAddress("ppdxdz",&fparProdDXDZ); 00140 fchain.SetBranchAddress("ppdydz",&fparProdDYDZ); 00141 fchain.SetBranchAddress("ppenergy",&fparProdEnergy); 00142 fchain.SetBranchAddress("pppz",&fparProdPZ); 00143 fchain.SetBranchAddress("ppvx",&fparProdVtxX); 00144 fchain.SetBranchAddress("ppvy",&fparProdVtxY); 00145 fchain.SetBranchAddress("ppvz",&fparProdVtxZ); 00146 fchain.SetBranchAddress("ptype",&fparType); 00147 fchain.SetBranchAddress("tpx",&ftargParPX); 00148 fchain.SetBranchAddress("tpy",&ftargParPY); 00149 fchain.SetBranchAddress("tpz",&ftargParPZ); 00150 }
|
|
|
Definition at line 153 of file NuFluggChain.cxx. 00154 {
00155 }
|
|
||||||||||||
|
|
|
|
Implements NuFluxChain. Definition at line 179 of file NuFluggChain.cxx. References fmuonParEnergy, and NuFluxChain::LoadEvent(). 00180 {
00181 this->LoadEvent(event);
00182 return (Double_t) fmuonParEnergy*Munits::GeV;
00183 }
|
|
|
Implements NuFluxChain. Definition at line 158 of file NuFluggChain.cxx. References fmuonParPX, and NuFluxChain::LoadEvent(). 00159 {
00160 this->LoadEvent(event);
00161 return (Double_t) fmuonParPX*Munits::GeV;
00162 }
|
|
|
Implements NuFluxChain. Definition at line 165 of file NuFluggChain.cxx. References fmuonParPY, and NuFluxChain::LoadEvent(). 00166 {
00167 this->LoadEvent(event);
00168 return (Double_t) fmuonParPY*Munits::GeV;
00169 }
|
|
|
Implements NuFluxChain. Definition at line 172 of file NuFluggChain.cxx. References fmuonParPZ, and NuFluxChain::LoadEvent(). 00173 {
00174 this->LoadEvent(event);
00175 return (Double_t) fmuonParPZ*Munits::GeV;
00176 }
|
|
|
Implements NuFluxChain. Definition at line 207 of file NuFluggChain.cxx. References fnuEnergyFD, and NuFluxChain::LoadEvent(). 00208 {
00209 this->LoadEvent(event);
00210 return (Double_t) fnuEnergyFD*Munits::GeV;
00211 }
|
|
|
Implements NuFluxChain. Definition at line 214 of file NuFluggChain.cxx. References fnuEnergyND, and NuFluxChain::LoadEvent(). 00215 {
00216 this->LoadEvent(event);
00217 return (Double_t) fnuEnergyND*Munits::GeV;
00218 }
|
|
|
Implements NuFluxChain. Definition at line 221 of file NuFluggChain.cxx. References fnuECofM, and NuFluxChain::LoadEvent().
|
|
|
Implements NuFluxChain. Definition at line 193 of file NuFluggChain.cxx. References NuFluxChain::LoadEvent(). 00194 {
00195 this->LoadEvent(event);
00196 return (Double_t) fnuFDWt;
00197 }
|
|
|
Implements NuFluxChain. Definition at line 186 of file NuFluggChain.cxx. References NuFluxChain::LoadEvent(). 00187 {
00188 this->LoadEvent(event);
00189 return (Double_t) fnuImpWt;
00190 }
|
|
|
Implements NuFluxChain. Definition at line 200 of file NuFluggChain.cxx. References NuFluxChain::LoadEvent(). 00201 {
00202 this->LoadEvent(event);
00203 return (Double_t) fnuNDWt;
00204 }
|
|
|
Implements NuFluxChain. Definition at line 249 of file NuFluggChain.cxx. References NuFluxChain::LoadEvent(). 00250 {
00251 this->LoadEvent(event);
00252 if (NuParticle::kNuMu == fNuType){return NuParticle::kNuMu;}
00253 if (NuParticle::kNuMuBar == fNuType){return NuParticle::kNuMuBar;}
00254 if (NuParticle::kNuE == fNuType){return NuParticle::kNuE;}
00255 if (NuParticle::kNuEBar == fNuType){return NuParticle::kNuEBar;}
00256 return NuParticle::kUndefined;
00257 }
|
|
|
Implements NuFluxChain. Definition at line 228 of file NuFluggChain.cxx. References fparDecayVtxX, and NuFluxChain::LoadEvent(). 00229 {
00230 this->LoadEvent(event);
00231 return (Double_t) fparDecayVtxX*Munits::cm;
00232 }
|
|
|
Implements NuFluxChain. Definition at line 235 of file NuFluggChain.cxx. References fparDecayVtxY, and NuFluxChain::LoadEvent(). 00236 {
00237 this->LoadEvent(event);
00238 return (Double_t) fparDecayVtxY*Munits::cm;
00239 }
|
|
|
Implements NuFluxChain. Definition at line 242 of file NuFluggChain.cxx. References fparDecayVtxZ, and NuFluxChain::LoadEvent(). 00243 {
00244 this->LoadEvent(event);
00245 return (Double_t) fparDecayVtxZ*Munits::cm;
00246 }
|
|
|
Implements NuFluxChain. Definition at line 260 of file NuFluggChain.cxx. References ParentType(). 00261 {
00262 Int_t parType = this->ParentType(event);
00263 if (NuParticle::kMuPlus == parType){return 105.658369*Munits::MeV;}
00264 if (NuParticle::kMuMinus == parType){return 105.658369*Munits::MeV;}
00265 if (NuParticle::kPiPlus == parType){return 139.57018*Munits::MeV;}
00266 if (NuParticle::kPiMinus == parType){return 139.57018*Munits::MeV;}
00267 if (NuParticle::kK0Long == parType){return 497.648*Munits::MeV;}
00268 if (NuParticle::kKPlus == parType){return 493.677*Munits::MeV;}
00269 if (NuParticle::kKMinus == parType){return 493.677*Munits::MeV;}
00270 return -1.0;
00271 }
|
|
|
Implements NuFluxChain. Definition at line 362 of file NuFluggChain.cxx. References NuFluxChain::LoadEvent(). 00363 {
00364 this->LoadEvent(event);
00365 if (NuParticle::kMuPlus == fparPartType){return NuParticle::kMuPlus;}
00366 if (NuParticle::kMuMinus == fparPartType){return NuParticle::kMuMinus;}
00367 if (NuParticle::kPiPlus == fparPartType){return NuParticle::kPiPlus;}
00368 if (NuParticle::kPiMinus == fparPartType){return NuParticle::kPiMinus;}
00369 if (NuParticle::kK0Long == fparPartType){return NuParticle::kK0Long;}
00370 if (NuParticle::kKPlus == fparPartType){return NuParticle::kKPlus;}
00371 if (NuParticle::kKMinus == fparPartType){return NuParticle::kKMinus;}
00372 return NuParticle::kUndefined;
00373 }
|
|
|
Implements NuFluxChain. Definition at line 295 of file NuFluggChain.cxx. References NuFluxChain::LoadEvent(). 00296 {
00297 this->LoadEvent(event);
00298 return (Double_t) fparProdDXDZ;
00299 }
|
|
|
Implements NuFluxChain. Definition at line 302 of file NuFluggChain.cxx. References NuFluxChain::LoadEvent(). 00303 {
00304 this->LoadEvent(event);
00305 return (Double_t) fparProdDYDZ;
00306 }
|
|
|
Implements NuFluxChain. Definition at line 309 of file NuFluggChain.cxx. References fparProdEnergy, and NuFluxChain::LoadEvent(). 00310 {
00311 this->LoadEvent(event);
00312 return (Double_t) fparProdEnergy*Munits::GeV;
00313 }
|
|
|
Implements NuFluxChain. Definition at line 316 of file NuFluggChain.cxx. References fparProdPZ, and NuFluxChain::LoadEvent(). 00317 {
00318 this->LoadEvent(event);
00319 return (Double_t) fparProdPZ*Munits::GeV;
00320 }
|
|
|
Implements NuFluxChain. Definition at line 323 of file NuFluggChain.cxx. References fparProdVtxX, and NuFluxChain::LoadEvent(). 00324 {
00325 this->LoadEvent(event);
00326 return (Double_t) fparProdVtxX*Munits::cm;
00327 }
|
|
|
Implements NuFluxChain. Definition at line 330 of file NuFluggChain.cxx. References fparProdVtxY, and NuFluxChain::LoadEvent(). 00331 {
00332 this->LoadEvent(event);
00333 return (Double_t) fparProdVtxY*Munits::cm;
00334 }
|
|
|
Implements NuFluxChain. Definition at line 337 of file NuFluggChain.cxx. References fparProdVtxZ, and NuFluxChain::LoadEvent(). 00338 {
00339 this->LoadEvent(event);
00340 return (Double_t) fparProdVtxZ*Munits::cm;
00341 }
|
|
|
Implements NuFluxChain. Definition at line 274 of file NuFluggChain.cxx. References fparPX, and NuFluxChain::LoadEvent().
|
|
|
Implements NuFluxChain. Definition at line 281 of file NuFluggChain.cxx. References fparPY, and NuFluxChain::LoadEvent().
|
|
|
Implements NuFluxChain. Definition at line 288 of file NuFluggChain.cxx. References fparPZ, and NuFluxChain::LoadEvent().
|
|
|
Implements NuFluxChain. Definition at line 344 of file NuFluggChain.cxx. References NuFluxChain::LoadEvent(). Referenced by ParentMass(). 00345 {
00346 this->LoadEvent(event);
00347 if (NuParticle::kMuPlus == fparType){return NuParticle::kMuPlus;}
00348 if (NuParticle::kMuMinus == fparType){return NuParticle::kMuMinus;}
00349 if (NuParticle::kPiPlus == fparType){return NuParticle::kPiPlus;}
00350 if (NuParticle::kPiMinus == fparType){return NuParticle::kPiMinus;}
00351 if (NuParticle::kK0Long == fparType){return NuParticle::kK0Long;}
00352 if (NuParticle::kK0Short == fparType){return NuParticle::kK0Short;}
00353 if (NuParticle::kKPlus == fparType){return NuParticle::kKPlus;}
00354 if (NuParticle::kKMinus == fparType){return NuParticle::kKMinus;}
00355 if (NuParticle::kOmegaMinus == fparType){return NuParticle::kOmegaMinus;}
00356 if (NuParticle::kOmegaPlus == fparType){return NuParticle::kOmegaPlus;}
00357 return NuParticle::kUndefined;
00358 }
|
|
|
Implements NuFluxChain. Definition at line 376 of file NuFluggChain.cxx. References ftargParPX, and NuFluxChain::LoadEvent(). 00377 {
00378 this->LoadEvent(event);
00379 return (Double_t) ftargParPX*Munits::GeV;
00380 }
|
|
|
Implements NuFluxChain. Definition at line 383 of file NuFluggChain.cxx. References ftargParPY, and NuFluxChain::LoadEvent(). 00384 {
00385 this->LoadEvent(event);
00386 return (Double_t) ftargParPY*Munits::GeV;
00387 }
|
|
|
Implements NuFluxChain. Definition at line 390 of file NuFluggChain.cxx. References ftargParPZ, and NuFluxChain::LoadEvent(). 00391 {
00392 this->LoadEvent(event);
00393 return (Double_t) ftargParPZ*Munits::GeV;
00394 }
|
|
|
Definition at line 78 of file NuFluggChain.h. Referenced by MuonParentEnergy(), and NuFluggChain(). |
|
|
Definition at line 75 of file NuFluggChain.h. Referenced by MuonParentPX(), and NuFluggChain(). |
|
|
Definition at line 76 of file NuFluggChain.h. Referenced by MuonParentPY(), and NuFluggChain(). |
|
|
Definition at line 77 of file NuFluggChain.h. Referenced by MuonParentPZ(), and NuFluggChain(). |
|
|
Definition at line 79 of file NuFluggChain.h. Referenced by NuECofM(), and NuFluggChain(). |
|
|
Definition at line 80 of file NuFluggChain.h. Referenced by NeutrinoFDEnergy(), and NuFluggChain(). |
|
|
Definition at line 81 of file NuFluggChain.h. Referenced by NeutrinoNDEnergy(), and NuFluggChain(). |
|
|
Definition at line 83 of file NuFluggChain.h. Referenced by NuFluggChain(). |
|
|
Definition at line 82 of file NuFluggChain.h. Referenced by NuFluggChain(). |
|
|
Definition at line 84 of file NuFluggChain.h. Referenced by NuFluggChain(). |
|
|
Definition at line 85 of file NuFluggChain.h. Referenced by NuFluggChain(), and ParentDecayVtxX(). |
|
|
Definition at line 86 of file NuFluggChain.h. Referenced by NuFluggChain(), and ParentDecayVtxY(). |
|
|
Definition at line 87 of file NuFluggChain.h. Referenced by NuFluggChain(), and ParentDecayVtxZ(). |
|
|
Definition at line 91 of file NuFluggChain.h. Referenced by NuFluggChain(). |
|
|
Definition at line 92 of file NuFluggChain.h. Referenced by NuFluggChain(). |
|
|
Definition at line 93 of file NuFluggChain.h. Referenced by NuFluggChain(), and ParentProdEnergy(). |
|
|
Definition at line 94 of file NuFluggChain.h. Referenced by NuFluggChain(), and ParentProdPZ(). |
|
|
Definition at line 95 of file NuFluggChain.h. Referenced by NuFluggChain(), and ParentProdVtxX(). |
|
|
Definition at line 96 of file NuFluggChain.h. Referenced by NuFluggChain(), and ParentProdVtxY(). |
|
|
Definition at line 97 of file NuFluggChain.h. Referenced by NuFluggChain(), and ParentProdVtxZ(). |
|
|
Definition at line 88 of file NuFluggChain.h. Referenced by NuFluggChain(), and ParentPX(). |
|
|
Definition at line 89 of file NuFluggChain.h. Referenced by NuFluggChain(), and ParentPY(). |
|
|
Definition at line 90 of file NuFluggChain.h. Referenced by NuFluggChain(), and ParentPZ(). |
|
|
Definition at line 98 of file NuFluggChain.h. Referenced by NuFluggChain(), and TargetParentPX(). |
|
|
Definition at line 99 of file NuFluggChain.h. Referenced by NuFluggChain(), and TargetParentPY(). |
|
|
Definition at line 100 of file NuFluggChain.h. Referenced by NuFluggChain(), and TargetParentPZ(). |
1.3.9.1