ANALYSIS PROCEDURE AND PROGRAMS These C++/ROOT programs analyse the input the survey data and produce the output the pad corner points, with errors.The data must be in files, specifically ordered (as examples show) to run correctly.
Start with program_1_octagon.cpp - read the instructions at the top of the
program.
Explicitly:
////////////////
// This is the main transformation program. Instructions;
// 1). Find your new data file that contains all the points.
// 2). Find the Template_1_octagon.out file - this is the template.
// 3). Create the new file newsurveyoctagon1_DATE.out - where DATE is today's date - add
this
// to line 13 of the program.
// 4). Copy the new survey data into this file following the SAME REGIME as the template.
// 5). Change the name of the output file to octagon1_output_DATE.out - to distinguish it
-
// line 12.
// 6). Save, compile and run the program_1_octagon.cpp file in ROOT.
// ie root[0] .L program_1_octagon.cpp
// root[1] first()
// 7). Move onto program_2_octagon.cpp.
////////////////
The instructions outline the procedure to correctly modify files and the
program.
At the end of the instructions, it says where to start the next transformations.
...
Now you have completed the transforms, create a new file DATEfile.out where DATE
is today's date. Open the file 1304file.out for the template of the finished
file. Now the difficult part, copy the complete octagon1_output_DATE.out file into
this new file, close octagon1_output_DATE.out. Now open octagon2_output_DATE.out, cut and
paste the transformed data as in the template file (1304file.out), repeat until
all the points are in the new DATEfile.out file.
Next, the Inner Vertex only had two points for each pad, so the transforms were
made by aligning the pad in the horizontal plane fitting to the two points that
we have. In the case of one point, the pad was horizontal and aligned against
one side. Unfortunately, there in not much one can do with one or two points.
Open the new survey data file and find the inner vertex pads "OCTI.."
Open the file program_1_inner_vertex.f - save it as program_1_inner_vertex_DATE.f
Copy the corresponding points into the slots as done previously in
program_1_inner_vertex.f - be careful as the coordinate systems was misrepresented and
the points which appear as y are z and vice versa - the numbers should look
similar, else swap y-z around when placing them in the file.
Add these to the bottom of the DATEfile.out file.
It is also your resonsibility to correctly assign the GEANT pad numbers to the
coordinates, see the template 1304file.out file for the correct assignments.
Check these carefully!!
Carefully look through the points to check errors and check the GEANT assignment
Run the file check_shift.cpp, with the appropriate file names in the in and out
file assignments - this shows the shift in the detector - check for zero's -
this could be a sign on an error!!!!
That's All!!
Analysis Programs :
General input Multiplicity/Vertex : Alldata_Survey_input.out
(click)
1 - For the Octagon :
- program_1_octagon.cpp (click) - Template_1_octagon.out
(click)
- program_2_octagon.cpp (click) - Template_2_octagon.out
(click)
- program_3_octagon.cpp
(click)
- Template_3_octagon.out
(click)
- program_4_octagon.cpp
(click)
- Template_4_octagon.out
(click)
- program_5_octagon.cpp (click) - Template_5_octagon.out
(click)
2- For the Outer Vertex :
-
program_1_outer_vertex.cpp (click) - Template_1_outer_vertex.out (click)
-
program_2_outer_vertex.cpp (click) - Template_2_outer_vertex.out (click)
-
Template_3_outer_vertex.out (click)
3- For the Inner Vertex :
- program_1_inner_vertex.f (click)