Commit b0bdd0b8 authored by Whitney Armstrong's avatar Whitney Armstrong
Browse files

Merge branch 'master' of gitlab.com:Argonne_EIC/GenFind

parents a048f333 86a11162
......@@ -29,6 +29,7 @@ void hough_transform2(
std::vector<XYZTVector> hits ;
double degree = TMath::Pi()/180.0;
for(int i_track = 0; i_track < Ntracks; i_track++){
......@@ -72,8 +73,8 @@ void hough_transform2(
huv->Fill( ahit.X(), ahit.Y() );
hphi->Fill(TMath::ATan(ahit.Y()/ahit.X()));
for(int i_theta = 0; i_theta<180; i_theta++) {
double theta = 2.0*double(i_theta)*CLHEP::degree;
hrphi->Fill(theta/CLHEP::degree, ahit.X()*TMath::Cos(theta) + ahit.Y()*TMath::Sin(theta) );
double theta = 2.0*double(i_theta)*degree;
hrphi->Fill(theta/degree, ahit.X()*TMath::Cos(theta) + ahit.Y()*TMath::Sin(theta) );
}
}
auto mg = ht->FillHoughTransforms(all_chits);
......@@ -91,7 +92,7 @@ void hough_transform2(
for( auto thit : atrack ) {
hpeaky->Fill( std::get<0>(thit).X(), std::get<0>(thit).Y());
hpeaky2->Fill(std::get<0>(thit).X(), std::get<0>(thit).Y());
fPhi2->Fill(TMath::ATan(std::get<1>(thit).Y()/std::get<1>(thit).X())/CLHEP::degree);
fPhi2->Fill(TMath::ATan(std::get<1>(thit).Y()/std::get<1>(thit).X())/degree);
}
hists.push_back(fPhi2);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment