FairRoot/PandaRoot
|
Go to the source code of this file.
Functions | |
timer | Start () |
TFile | filerun ("testrun.root") |
treepnt | SetBranchAddress ("STTPoint",&pnt) |
TFile | filedigi ("testdigi.root") |
treedigi | SetBranchAddress ("STTHit",&digi) |
TFile | filehelix ("testreco.root") |
treereco | SetBranchAddress ("SttHelixHit",&hh) |
treereco | SetBranchAddress ("STTTrack",&track) |
c | Divide (1, 2) |
treepnt | GetEntry (evt) |
c | cd (1) |
hxy | Draw () |
c | cd (2) |
if (!stttrack) continue | |
cout<< "evt"<< evt<< " track " << k<< " num hits "<< stttrack-> | GetNofHelixHits () |
Variables | |
TStopwatch | timer |
TTree * | treepnt = (TTree*) filerun.Get("pndsim") |
TClonesArray * | pnt = new TClonesArray("PndSttPoint") |
TTree * | treedigi = (TTree*) filedigi.Get("pndsim") |
TClonesArray * | digi = new TClonesArray("PndSttHit") |
TTree * | treereco = (TTree*) filehelix.Get("pndsim") |
TClonesArray * | hh = new TClonesArray("PndSttHelixHit") |
TClonesArray * | track = new TClonesArray("PndSttTrack") |
TCanvas * | c = new TCanvas("c", "c", 0, 0, 600, 600) |
TH2F * | hxy = new TH2F("hxy","hxy",100,-42,42, 100,-42,42) |
TH2F * | hyz = new TH2F("hyz","hyz",100,0,50, 100,-40,110) |
int | evt = 0 |
cout<< "blue = Monte Carlo " << endl;cout<< "red = Helix Hit "<< endl;cout<< "green = Center Of Tubes "<< endl;for(Int_t k=0;k< track->GetEntriesFast();k++){PndSttTrack *stttrack=(PndSttTrack *) track-> | At (k) |
Double_t | d0 = stttrack->GetDist() |
Double_t | phi0 = stttrack->GetPhi() |
Double_t | R = stttrack->GetRad() |
Double_t | z0 = stttrack->GetZ() |
Double_t | tanl = stttrack->GetTanL() |
Double_t | h = -(Int_t) stttrack->GetCharge() |
Double_t | ptran = 0.003 * 2 * R |
Double_t | plong = ptran * tanl |
Double_t | ptot = sqrt(plong*plong + ptran*ptran) |
Double_t | x0 = (d0 + R) * cos(phi0) |
Double_t | y0 = (d0 + R) * sin(phi0) |
c cd | ( | 1 | ) |
c cd | ( | 2 | ) |
c Divide | ( | 1 | , |
2 | |||
) |
hxy Draw | ( | ) |
Definition at line 64 of file NHitsPerEvent.C.
TFile filedigi | ( | "testdigi.root" | ) |
TFile filehelix | ( | "testreco.root" | ) |
TFile filerun | ( | "testrun.root" | ) |
cout<< "evt" << evt << " track " << k << " num hits " << stttrack-> GetNofHelixHits | ( | ) |
TMarker *mrkpnt = new TMarker(mcpoint->GetYtot(), mcpoint->GetZtot(), 2); mrkpnt->SetMarkerColor(4); mrkpnt->Draw("SAME"); TMarker *mrkdigi = new TMarker(hit->GetY(), hit->GetZ(), 6); mrkdigi->SetMarkerColor(3); mrkdigi->Draw("SAME"); TMarker *mrkhh = new TMarker(helixhit->GetY(), helixhit->GetZ(), 5); mrkhh->SetMarkerColor(2); mrkhh->Draw("SAME");
Definition at line 73 of file checkhelixhit.C.
if | ( | ! | stttrack | ) |
Definition at line 4 of file checktubes.C.
treepnt SetBranchAddress | ( | "STTPoint" | , |
& | pnt | ||
) |
treedigi SetBranchAddress | ( | "STTHit" | , |
& | digi | ||
) |
treereco SetBranchAddress | ( | "SttHelixHit" | , |
& | hh | ||
) |
treereco SetBranchAddress | ( | "STTTrack" | , |
& | track | ||
) |
timer Start | ( | ) |
cout<< "blue = Monte Carlo " << endl; cout << "red = Helix Hit " << endl; cout << "green = Center Of Tubes " << endl; for (Int_t k = 0; k < track->GetEntriesFast(); k++) { PndSttTrack *stttrack = (PndSttTrack*) track-> At(k) |
Definition at line 56 of file checkhelixhit.C.
TCanvas* c = new TCanvas("c", "c", 0, 0, 600, 600) |
Definition at line 31 of file checkhelixhit.C.
Double_t d0 = stttrack->GetDist() |
Definition at line 59 of file checkhelixhit.C.
Referenced by ana_d0d0b(), ana_d0d0b_micro(), KFParticleBase::ConstructGammaBz(), KFParticleBaseSIMD::ConstructGammaBz(), PndFTSCADisplay::DrawTrack(), PndSttHelixHitProducer::Exec(), PndSttTrackFitterQATask::Exec(), PndTutAnaTaskD0::Exec(), PndSciTAnaIdeal::Exec(), PndSoftTriggerTask::GetAngles(), PndSciTAnaIdeal::GetDPhi(), GetEntriesFast(), PndRhoTupleQA::qa2Body(), PndRhoTupleQA::qaKs0(), PndRhoTupleQA::qaPi0(), KFParticleBase::SetProductionVertex(), KFParticleBaseSIMD::SetProductionVertex(), trackProximity(), tut_ana_d0(), tut_ana_d0_qahelper(), PndSttHelixTrackFitter::ZFinder(), and PndSttHelixTrackFitter::ZFinderThroughOrigin().
TClonesArray* digi = new TClonesArray("PndSttHit") |
Definition at line 18 of file checkhelixhit.C.
int evt = 0 |
Definition at line 36 of file checkhelixhit.C.
Referenced by dedx_p_chain(), for(), GetEntriesFast(), main(), make_simple_tau_event(), chigen::PartonicModel::PartonicModel(), QAmacro_stt_4(), PndRichReco::RichFullReconstruction(), and Photospp::PhotosHEPEVTParticle::setMothers().
Double_t h = -(Int_t) stttrack->GetCharge() |
Definition at line 64 of file checkhelixhit.C.
TClonesArray* hh = new TClonesArray("PndSttHelixHit") |
Definition at line 24 of file checkhelixhit.C.
TH2F* hxy = new TH2F("hxy","hxy",100,-42,42, 100,-42,42) |
Definition at line 33 of file checkhelixhit.C.
TH2F* hyz = new TH2F("hyz","hyz",100,0,50, 100,-40,110) |
Definition at line 34 of file checkhelixhit.C.
Double_t phi0 = stttrack->GetPhi() |
Definition at line 60 of file checkhelixhit.C.
Referenced by PndSttHitCorrector::CalculateTangentAngles(), PndTrkTrack::ComputePhiFrom(), create_half_geo(), create_scit_rootgeo_201505(), create_scit_rootgeo_201508(), create_scit_rootgeo_201601(), create_scit_rootgeo_201601_plot(), create_scit_rootgeo_pSuperModule(), createdirc(), createdirc_prism(), createdircPix(), createRootGeometry_DIRC(), createRootGeometry_DIRC_fsEVdroplens_MCPs(), createRootGeometry_DIRC_sepEV_06_2013(), createRootGeometry_DIRC_sepEV_MCPs(), createRootGeometry_DIRC_updated_06_2013(), PndSttHelixHitProducer::Exec(), PndSttTrackFitterQATask::Exec(), GetEntriesFast(), PndSttHitCorrector::GetMiddleHitNeighbor(), RhoCalculationTools::P7toHelix(), RhoCalculationTools::P7toPRG(), PndFtfDirect::Setup(), PndSttHelixTrackFitter::ZFinder(), and PndSttHelixTrackFitter::ZFinderThroughOrigin().
Definition at line 67 of file checkhelixhit.C.
Referenced by PndSttTrackFitterQATask::Exec(), and GetEntriesFast().
TClonesArray* pnt = new TClonesArray("PndSttPoint") |
Definition at line 11 of file checkhelixhit.C.
Definition at line 68 of file checkhelixhit.C.
Referenced by PndSttTrackFitterQATask::Exec(), GetEntriesFast(), RhoKinHyperonVtxFitter::TransportToPoca(), RhoKinVtxFitter::TransportToVertex(), and RhoKinHyperonVtxFitter::TransportToVertex().
Definition at line 65 of file checkhelixhit.C.
Referenced by PndSttTrackFitterQATask::Exec(), and GetEntriesFast().
Double_t R = stttrack->GetRad() |
Definition at line 61 of file checkhelixhit.C.
Referenced by PndMvdRiemannTrackFinderTaskEff::AddGhostTrack(), PndTrkLegendreSecTask2::AddHitToClusterByDistance(), PndTrkLegendreNew::AnalyticalFit2(), PndTrkTrackFinder::AnalyticalFit2(), PndTrkCombiLegendreTask::AnalyticalFit2(), angle(), PndSttTrackFinderReal::AssociateSkewHitsToXYTrack(), PndRiemannTrack::calcErrorS(), PndSttHitCorrector::CalculateTangentAngles(), GFKalman::chi2Increment(), PndTrkComparisonMCtruth::ComparisonwithMC(), PndTrkLegendreNew::CreateClusterAroundTrack(), PndTrkCombiLegendreTask::CreateClusterAroundTrack(), PndTrkTrackFinder::CreateClusterAroundTrack(), PndTrkCombiLegendreTask::CreateClusterAroundTrack2(), PndTrkCombiLegendreTask::CreateClusterAroundTrack3(), PndTrkLegendreSecTask::CreateClusterByDistance(), PndTrkLegendreTask::CreateClusterByDistance(), PndTrkLegendreSecTask2::CreateClusterByDistance(), createRootGeometry_beampipe(), PndTrkLegendreSecTask::CreateSkewHitList(), PndTrkLegendreTask::CreateSkewHitList(), PndTrkLegendreSecTask2::CreateSkewHitList(), PndTrkTrackFinder::CreateSkewHitList(), PndSttTrackFinderReal::disegnaSciTilHit(), PndSttTrackFinderReal::DoFind(), PndKFParticleFinderQA::Exec(), PndTrkLegendreNew::Exec(), PndTrkLegendreSecTask::Exec(), PndTrkLegendreSecTask2::Exec(), PndTrkLegendreTask::Exec(), PndTrkCombiLegendreTask::Exec(), PndTrkTrackFinder::Exec(), PndSciTAnaIdeal::Exec(), PndKFParticleFinderQA::FindEmcClusterMother(), PndTrkCTFindTrackInXY2::FindTrackInXYProjection(), PndSttMvdGemTracking::Fit(), PndTrkLegendreFits::FitHelixCylinder(), PndTrkLegendreFits::FitHelixCylinder2(), GetEntriesFast(), PndEmcErrorMatrix::GetErrorMatrix(), GFTools::getSmoothedChiSqu(), PndFTSCAGBTracker::InitialTrackApproximation(), PndSttTrackFinderReal::IntersectionCircle_Segment(), PndTrkLegendreNew::IntersectionFinder(), PndTrkTrackFinder::IntersectionFinder(), PndTrkCombiLegendreTask::IntersectionFinder(), PndTrkLegendreNew::LegendreFit(), PndTrkCombiLegendreTask::LegendreFit(), PndTrkTrackFinder::LegendreFit(), LoadManySimFiles(), PndTrkLegendreFits::LoadMatrix_FindMaximum(), PndTrkLegendreFits::LoadMatrix_FindMaximum2(), PndSttTrack::MomentumAtPoint(), mz_pp_to_leplep_vandewi_event(), mz_pp_to_leplep_vandewi_sigma_nonorm(), PndSttTrack::PCAToPoint(), PndSttTrackFinderReal::PndSttTrkFindCircles(), PndFsmTrack::Propagate(), PndFTSCAGBTracker::Refit_1(), RKTrackRep::RKutta(), PndRadMapBoxMesh::Transform(), PndTrkPlotMacros::WriteAllMacros(), PndTrkPlotMacros2::WriteAllMacros(), PndSttTrackFinderReal::WriteMacroSkewAssociatedHits(), PndSttTrackFinderReal::WriteMacroSkewAssociatedHitswithMC(), PndSttTrackFinderReal::WriteMacroSkewAssociatedHitswithRfromMC(), PndTrkPlotMacros::WriteMacroSttParallelAssociatedHitsandMvdwithMC(), PndTrkPlotMacros2::WriteMacroSttParallelAssociatedHitsandMvdwithMC(), PndSttHelixTrackFitter::XYFit(), PndSttHelixTrackFitter::XYFitThroughOrigin(), PndSttHelixTrackFitter::ZFinder(), and PndSttHelixTrackFitter::ZFinderThroughOrigin().
Double_t tanl = stttrack->GetTanL() |
Definition at line 63 of file checkhelixhit.C.
Referenced by PndTrkTrackFinder::Exec(), GetEntriesFast(), PndSttTrack::MomentumAtPoint(), PndSttTrack::SetParameters(), PndTrkTrack::SetTanL(), and PndSttTrack::SetTanL().
TStopwatch timer |
Definition at line 1 of file checkhelixhit.C.
TClonesArray* track = new TClonesArray("PndSttTrack") |
Definition at line 28 of file checkhelixhit.C.
TTree* treedigi = (TTree*) filedigi.Get("pndsim") |
Definition at line 17 of file checkhelixhit.C.
TTree* treepnt = (TTree*) filerun.Get("pndsim") |
Definition at line 10 of file checkhelixhit.C.
Referenced by QAmacro_stt_4().
TTree* treereco = (TTree*) filehelix.Get("pndsim") |
Definition at line 23 of file checkhelixhit.C.
Definition at line 70 of file checkhelixhit.C.
Referenced by PndTrkLegendreSecTask2::AddHitToClusterByDistance(), PndCATrackParam::BetheBlochGas(), PndCATrackParamVector::BetheBlochGas(), PndFTSCATrackParamVector::BetheBlochGas(), PndCATrackParam::BetheBlochGeant(), PndCATrackParamVector::BetheBlochGeant(), PndFTSCATrackParamVector::BetheBlochGeant(), PndRiemannTrack::calcIntersection(), PndSttTrack::CalculateScosl(), PndFTSCAParameters::CALocalToGlobal(), PndCATracking::CATrackParToFairTrackParP(), PndTrkCluster::CheckClusterAgainsV(), checkfile(), Chi2(), PndTrkTrack::ComputePhi(), PndTrkTrack::ComputePhiFrom(), PndTrkFitter::ConstrainedStraightLineFit(), PndTrkLegendreSecTask::CreateClusterByDistance(), PndTrkLegendreTask::CreateClusterByDistance(), PndTrkLegendreSecTask2::CreateClusterByDistance(), createRootGeoFileFwEndCap_2011(), TtCracowTask::distance2(), PndFTSCADisplay::DrawGBHits(), PndFTSCADisplay::DrawGBPoints(), PndFTSCADisplay::DrawGBTrackFast(), PndFTSCADisplay::DrawTrack(), PndSttMvdGemTracking::EvaluatePerformances(), PndDiscTaskReconstruction::Exec(), PndDiscTaskPID::Exec(), PndSciTAnaIdeal::Exec(), PndSttHelixTrackFitter::FindCorrectZ(), PndFTSCAGBTracker::FitTrack(), PndCATrackParam::GetDCAPoint(), PndCATrackParamVector::GetDCAPoint(), PndFTSCATrackParam::GetDCAPoint(), PndFTSCATrackParamVector::GetDCAPoint(), PndSciTAnaIdeal::GetDPhi(), GetEntriesFast(), PndSttMvdGemTracking::GetInitialParams(), PndTrkHit::GetXYDistanceFromTrack(), PndCAParameters::GlobalToCALocal(), PndFTSCAParameters::GlobalToCALocal(), PndSttHelixTrackFitter::Hough(), PndSttHelixTrackFitter::HoughThroughOrigin(), PndFTSCAParam::InitMagneticField(), PndGeoDskFLG::LineFunction(), PndMvdAdvancedPidAlgo::mpv(), PndHypAdvancedPidAlgo::mpv(), PndFsmMvdPid::mpv(), PndFsmMvd2::mpv(), PndGemSensor::PndGemSensor(), PndSttMvdGemTracking::Prefit(), propagate(), PndSttMvdGemTracking::PropagateToGemPlaneAsHelix(), PndCATrackParam::Rotate(), PndCATrackParamVector::Rotate(), PndFTSCATrackParamVector::Rotate(), trafo_matrix_test(), RhoKinHyperonVtxFitter::TransportToPoca(), PndSttHelixTrackFitter::ZFinder(), PndSttHelixTrackFitter::ZFinderThroughOrigin(), and PndSttMvdGemTracking::ZFit().
Definition at line 71 of file checkhelixhit.C.
Referenced by PndTrkLegendreSecTask2::AddHitToClusterByDistance(), PndRiemannTrack::calcIntersection(), PndSttTrack::CalculateScosl(), PndCATracking::CATrackParToFairTrackParP(), PndTrkCluster::CheckClusterAgainsV(), PndTrkCluster::ComputeCircle(), PndTrkTrack::ComputePhi(), PndTrkTrack::ComputePhiFrom(), PndTrkLegendreSecTask::CreateClusterByDistance(), PndTrkLegendreTask::CreateClusterByDistance(), PndTrkLegendreSecTask2::CreateClusterByDistance(), createRootGeoFileFwEndCap_2011(), PndTrkLegendreSecTask::CreateSkewHitList(), PndTrkLegendreTask::CreateSkewHitList(), PndTrkLegendreSecTask2::CreateSkewHitList(), PndTrkTrackFinder::CreateSkewHitList(), PndFTSCADisplay::DrawGBTrackFast(), PndFTSCADisplay::DrawTrack(), PndSttMvdGemTracking::EvaluatePerformances(), PndDiscTaskReconstruction::Exec(), PndDiscTaskPID::Exec(), PndTrkTrackFinder::Exec(), PndSciTAnaIdeal::Exec(), PndFTSCATrackParamVector::FilterWithMaterial(), PndSttHelixTrackFitter::FindCorrectZ(), PndFTSCAGBTracker::FitTrack(), PndCATrackParam::GetDCAPoint(), PndCATrackParamVector::GetDCAPoint(), PndFTSCATrackParam::GetDCAPoint(), PndFTSCATrackParamVector::GetDCAPoint(), PndSciTAnaIdeal::GetDPhi(), GetEntriesFast(), PndSttMvdGemTracking::GetInitialParams(), PndTrkHit::GetXYDistanceFromTrack(), PndSttHelixTrackFitter::Hough(), PndSttHelixTrackFitter::HoughThroughOrigin(), PndGeoDskFLG::LineFunction(), PndGemSensor::PndGemSensor(), PndSttMvdGemTracking::Prefit(), propagate(), PndSttMvdGemTracking::PropagateToGemPlaneAsHelix(), PndCATrackParam::Rotate(), PndCATrackParamVector::Rotate(), PndFTSCATrackParamVector::Rotate(), PndSttHelixTrackFitter::ZFinder(), PndSttHelixTrackFitter::ZFinderThroughOrigin(), and PndSttMvdGemTracking::ZFit().
Double_t z0 = stttrack->GetZ() |
Definition at line 62 of file checkhelixhit.C.
Referenced by PndCATrackParamVector::AcceptWithMaterial(), PndCATracking::CATrackParToFairTrackParP(), createRootGeoFileFwEndCap_2011(), createRootGeometry_beampipe(), PndFTSCADisplay::DrawHelix(), PndSttMvdGemTracking::EvaluatePerformances(), PndSttHelixHitProducer::Exec(), PndLmdBPtestTask::Exec(), PndTrkTrackFinder::Exec(), PndCATrackParam::Filter(), PndCATrackParamVector::FilterWithMaterial(), GetEntriesFast(), RhoCalculationTools::P7toHelix(), RhoCalculationTools::P7toPRG(), PndSttTrack::PCAToPoint(), PndGemSensor::PndGemSensor(), propagate(), and PndTrkTrack::SetZ0().