- Timestamp:
- Mar 8, 2021, 9:52:15 AM (4 years ago)
- Branches:
- master
- Children:
- a10293e, b1cb322
- Parents:
- 2eaa9fd (diff), 91ef0b8 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - git-author:
- Michele Selvaggi <michele.selvaggi@…> (03/08/21 09:52:15)
- git-committer:
- GitHub <noreply@…> (03/08/21 09:52:15)
- Location:
- examples
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/ExamplePVtxFit.C
r2eaa9fd rbd33fce 40 40 // 41 41 // Loop over all events 42 Int_t Nev = TMath::Min(Nevent, (Int_t) 42 Int_t Nev = TMath::Min(Nevent, (Int_t)numberOfEntries); 43 43 for (Int_t entry = 0; entry < Nev; ++entry) 44 44 { … … 61 61 GenParticle* gp = (GenParticle*)trk->Particle.GetObject(); 62 62 // 63 // Position of origin in m eters64 Double_t x = 1.0e-3 *gp->X;65 Double_t y = 1.0e-3 *gp->Y;66 Double_t z = 1.0e-3 *gp->Z;63 // Position of origin in mm 64 Double_t x = gp->X; 65 Double_t y = gp->Y; 66 Double_t z = gp->Z; 67 67 // 68 68 // group tracks originating from the primary vertex … … 78 78 Double_t oPar[5] = { obsD0, obsPhi, obsC, obsZ0, obsCtg }; 79 79 TVectorD obsPar(5, oPar); // Fill observed parameters 80 TVector3 xv(x, y, z);81 80 // 82 81 pr[Ntr] = new TVectorD(obsPar); 83 cv[Ntr] = new TMatrixDSym(TrkUtil::CovToMm(trk->CovarianceMatrix())); 82 //std::cout<<"Cov Matrix:"<<std::endl; 83 //trk->CovarianceMatrix().Print(); 84 cv[Ntr] = new TMatrixDSym(trk->CovarianceMatrix()); 84 85 Ntr++; 85 86 } 86 87 } // End loop on tracks 87 //std::cout << "Total of " << Ntr << " primary tracks out of " << NtrG << " tracks" << std::endl;88 88 } 89 89 // … … 118 118 // Show resulting histograms 119 119 // 120 TCanvas* Cnv = new TCanvas("Cnv", "Delphes generated track plots", 50, 50, 900, 500);120 TCanvas* Cnv = new TCanvas("Cnv", "Delphes primary vertex pulls", 50, 50, 900, 500); 121 121 Cnv->Divide(2, 2); 122 122 Cnv->cd(1); gPad->SetLogy(1); gStyle->SetOptFit(1111);
Note:
See TracChangeset
for help on using the changeset viewer.