Skip to content

Commit

Permalink
General Lines: Complete
Browse files Browse the repository at this point in the history
  • Loading branch information
glukicov committed Aug 21, 2017
1 parent 615e3b7 commit bb4b713
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions mpIIDESY/AlignTracker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ int main(int argc, char* argv[]){
TH1F* h_residual_true = new TH1F("h_residual_true", "Residuals for generated tracks", 500, -0.4, 0.4);
TH1F* h_chi2_true = new TH1F("h_chi2_true", "Chi2 for generated tracks", 40, -1, 100);
TH1F* h_residual_recon = new TH1F("h_residual_recon", "Residuals for reconstructed tracks", 500, -0.2, 0.2);
TH1F* h_chi2_recon = new TH1F("h_chi2_recon", "Chi2 for Reconstructed Tracks", 379, 0, 400);
TH1F* h_chi2_recon = new TH1F("h_chi2_recon", "Chi2 for Reconstructed Tracks", 379, 0, 500);
TH1I* h_hitCount = new TH1I("h_hitCount", "Total Hit count per track", 32 , 0, 32);
TH1F* h_reconMinusTrue_track = new TH1F("h_reconMinusTrue_line", "Reconstructed - True X position of the lines", 149, -0.1, 0.1);
TH1F* h_reconMinusTrue_hits = new TH1F("h_reconMinusTrue_hits", "Reconstructed - True X position of the hits", 169, -0.1, 0.2);
Expand Down Expand Up @@ -683,7 +683,6 @@ int main(int argc, char* argv[]){
rp1->Draw("noconfint");
cChi2->Update();
rp1->GetLowerRefYaxis()->SetTitle("Frac. Error");
rp1->GetUpperRefYaxis()->SetTitle("Entries");
cChi2->Print("FoM_Chi2_recon.C");
cChi2->Print("FoM_Chi2_recon.png");
cChi2->Write();
Expand Down
4 changes: 2 additions & 2 deletions mpIIDESY/AlignTracker_methods.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ void Tracker::setGeometry(ofstream& debug_geom, bool debugBool){
cout << mod_lyr_strawIdealPosition[i_module][i_view][i_layer][i_straw]<<" ";
debug_geom << mod_lyr_strawIdealPosition[i_module][i_view][i_layer][i_straw] << " ";
} // straws
cout << " | Z= " << distance[Zcounter] << " [cm]" << endl; // XXX fix this
cout << " | Z= " << distance[Zcounter] << " [cm]" << endl; // TODO align the cout better
debug_geom << distance[Zcounter] << endl;
Zcounter++;
} // end of Layers
Expand Down Expand Up @@ -672,7 +672,7 @@ void Tracker::misalign(ofstream& debug_mis, ofstream& pede_mis, bool debugBool){
} // modules

// The Chi2 estimation requires misalignment parameters per layer
Chi2_recon_estimated=N-2; // 2 parameter fit
Chi2_recon_estimated=N-2.0; // 2 parameter fit
i_totalLayers=0;
for (int i_module=0; i_module<moduleN; i_module++){
for (int i_view=0; i_view<viewN; i_view++){
Expand Down
2 changes: 1 addition & 1 deletion mpIIDESY/AlignTracker_methods.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class Tracker {
//initialising physics variables
// MF + inhomogeneity, E_loss, MS

float dispX[8] = {0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0}; // manual misalignment [relative misalignment per module]
float dispX[8] = {-0.03, 0.1, 0.0, 0.05, 0.0, 0.02, 0.0}; // manual misalignment [relative misalignment per module]

static constexpr float resolution=0.015; // 150um = 0.015 cm for hit smearing

Expand Down

0 comments on commit bb4b713

Please sign in to comment.