Commit 028717d1 authored by Emilio Depero's avatar Emilio Depero
Browse files

corrected distance from decay plane

parent 29ad0d8e
......@@ -74,8 +74,8 @@ int main(int argc, char *argv[])
vector<TString> histonames;
histonames.push_back("decayPositions_z");
histonames.push_back("decayPositions_z_target");
histonames.push_back("decayPositions_z_20deg");
histonames.push_back("angle");
//histonames.push_back("decayPositions_z_20deg");
//histonames.push_back("angle");
for(unsigned int d(0); d < histonames.size(); ++d)
{
......@@ -86,7 +86,7 @@ int main(int argc, char *argv[])
{
TH1D* hist = (TH1D*)files[n]->Get(histonames[d]);
//normalize
hist->Scale(1. / hist->GetEntries());
hist->Scale(1. / hist->Integral());
hist->SetLineColor(colors[n]);
hist->SetLineWidth(2);
leg->AddEntry(hist, files[n]->GetName(), "l");
......
......@@ -154,7 +154,7 @@ void Analyze(int argc, char *argv[])
// distance between two detectors, exactly the same as Jonas run, mechanics was fixed already
float dist_MM12 = 66.5; //mm
// distance of MM1C from center plane
float dist_MM1 = 75.; //modify for the setup, preliminary
float dist_MM1 = 90.; //modify for the setup, preliminary
float size_MM = 80.0; // size in mm
......
Markdown is supported
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