diff --git a/Software/Arduino/ResetAndControlStepperMotors216/ResetAndControlStepperMotors216.ino b/Software/Arduino/ResetAndControlStepperMotors216/ResetAndControlStepperMotors216.ino index b18dde0..1171a09 100644 --- a/Software/Arduino/ResetAndControlStepperMotors216/ResetAndControlStepperMotors216.ino +++ b/Software/Arduino/ResetAndControlStepperMotors216/ResetAndControlStepperMotors216.ino @@ -84,10 +84,10 @@ // const int stepsFromZSwitch = 3600; // ATLAS sensor. -// Move the laser ? cm (? steps) away from the x micro switch +// Move the laser 5.30 cm (10600 steps) away from the x micro switch const int stepsFromXSwitch = 10600; -// Move the laser ? cm (? steps) away from the z micro switch -const int stepsFromZSwitch = 2200; +// Move the laser 0.85 cm (1700 steps) away from the z micro switch +const int stepsFromZSwitch = 1700; // Total number of steps we need along x. // const int totStepsX = 200; diff --git a/Software/AutomatedMeasurements/ElectronicMonkeyFocusing.py b/Software/AutomatedMeasurements/ElectronicMonkeyFocusing.py index 981f964..9af60ad 100644 --- a/Software/AutomatedMeasurements/ElectronicMonkeyFocusing.py +++ b/Software/AutomatedMeasurements/ElectronicMonkeyFocusing.py @@ -87,7 +87,7 @@ folder = '/disk/groups/hep/flionett/TestStand/Data' filename = '' -config = '/home/hep/flionett/TestStand/Repository/TestStandRepository/Software/AutomatedMeasurements/FocusingConfig' +config = '/home/hep/flionett/TestStand/Repository/TestStandRepository/Software/AutomatedMeasurements/FocusingConfig'+sensor print 'Type of sensor: ', sensor print 'Type of measurement: ', measurement diff --git a/Software/AutomatedMeasurements/FocusingConfig b/Software/AutomatedMeasurements/FocusingConfig deleted file mode 100644 index 0bf88e4..0000000 --- a/Software/AutomatedMeasurements/FocusingConfig +++ /dev/null @@ -1,100 +0,0 @@ -[Chip.0] -Icomp=5 -Ithdelta=5 -Ithmain=0 -Vrs=0 -mask=0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 -trim=0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 - -[Chip.1] -Icomp=5 -Ithdelta=5 -Ithmain=0 -Vrs=0 -mask=0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 -trim=0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 - -[DAQ] -delay=60 -enable_busy=false -monitor_channel=60 -nevts=10000 -pulse_shape=true -sample_size=100 - -[analysis] -common_mode=true -neigh_cut=3.0000000000e+00 -noise=0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00 -noise_weight=1.0000000000e-03 -ped_weight=1.0000000000e-02 -pedestals=0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00 -polarity=0.0000000000e+00 -seed_cut=5.0000000000e+00 -sn_cut=5.0000000000e+00 - -[beetle] -CompCtrl=9 -Ibuf=10 -Icurrbuf=102 -Ipipe=13 -Ipre=76 -Isf=26 -Isha=10 -Itp=0 -Ivoltbuf=20 -Latency=128 -ROCtrl=26 -RclkDiv=0 -Vd=130 -Vdcl=105 -Vfp=0 -Vfs=0 -mask=3 - -[calibration] -charge=30720 -delay=85 -scan_charge=true - -[charge_scan] -from=0 -nevts=100 -npts=32 -to=32768 - -[comparator] -enable=false -mode=0 -polarity=0 - -[delay_scan] -from=0 -nevts=100 -npts=32 -to=256 - -[laser] -delay=71 - -[laser_sync] -from=0 -nevts=100 -npts=100 -to=1000 - -[plugin] -active_on_load=false -hook= -lang= -lib= -path= - -[trigger] -dacA=-200 -dacB=-200 -dacC=-1000 -dacD=1000 -trigger_and=false -trigger_pulse=false - diff --git a/Software/AutomatedMeasurements/FocusingConfigATLAS b/Software/AutomatedMeasurements/FocusingConfigATLAS new file mode 100644 index 0000000..289d547 --- /dev/null +++ b/Software/AutomatedMeasurements/FocusingConfigATLAS @@ -0,0 +1,100 @@ +[Chip.0] +Icomp=5 +Ithdelta=5 +Ithmain=0 +Vrs=0 +mask=0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +trim=0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 + +[Chip.1] +Icomp=5 +Ithdelta=5 +Ithmain=0 +Vrs=0 +mask=0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +trim=0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 + +[DAQ] +delay=60 +enable_busy=false +monitor_channel=60 +nevts=10000 +pulse_shape=false +sample_size=100 + +[analysis] +common_mode=true +neigh_cut=3.0000000000e+00 +noise=0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00 +noise_weight=1.0000000000e-03 +ped_weight=1.0000000000e-02 +pedestals=0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00 +polarity=0.0000000000e+00 +seed_cut=5.0000000000e+00 +sn_cut=5.0000000000e+00 + +[beetle] +CompCtrl=9 +Ibuf=10 +Icurrbuf=102 +Ipipe=13 +Ipre=76 +Isf=26 +Isha=10 +Itp=0 +Ivoltbuf=20 +Latency=128 +ROCtrl=26 +RclkDiv=0 +Vd=130 +Vdcl=105 +Vfp=0 +Vfs=0 +mask=3 + +[calibration] +charge=30720 +delay=85 +scan_charge=true + +[charge_scan] +from=0 +nevts=100 +npts=32 +to=32768 + +[comparator] +enable=false +mode=0 +polarity=0 + +[delay_scan] +from=0 +nevts=100 +npts=32 +to=256 + +[laser] +delay=60 + +[laser_sync] +from=0 +nevts=100 +npts=100 +to=1000 + +[plugin] +active_on_load=false +hook= +lang= +lib= +path= + +[trigger] +dacA=-200 +dacB=-200 +dacC=-1000 +dacD=1000 +trigger_and=false +trigger_pulse=false + diff --git a/Software/AutomatedMeasurements/FocusingConfigHans320 b/Software/AutomatedMeasurements/FocusingConfigHans320 new file mode 100644 index 0000000..0bf88e4 --- /dev/null +++ b/Software/AutomatedMeasurements/FocusingConfigHans320 @@ -0,0 +1,100 @@ +[Chip.0] +Icomp=5 +Ithdelta=5 +Ithmain=0 +Vrs=0 +mask=0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +trim=0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 + +[Chip.1] +Icomp=5 +Ithdelta=5 +Ithmain=0 +Vrs=0 +mask=0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +trim=0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 + +[DAQ] +delay=60 +enable_busy=false +monitor_channel=60 +nevts=10000 +pulse_shape=true +sample_size=100 + +[analysis] +common_mode=true +neigh_cut=3.0000000000e+00 +noise=0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00 +noise_weight=1.0000000000e-03 +ped_weight=1.0000000000e-02 +pedestals=0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00 +polarity=0.0000000000e+00 +seed_cut=5.0000000000e+00 +sn_cut=5.0000000000e+00 + +[beetle] +CompCtrl=9 +Ibuf=10 +Icurrbuf=102 +Ipipe=13 +Ipre=76 +Isf=26 +Isha=10 +Itp=0 +Ivoltbuf=20 +Latency=128 +ROCtrl=26 +RclkDiv=0 +Vd=130 +Vdcl=105 +Vfp=0 +Vfs=0 +mask=3 + +[calibration] +charge=30720 +delay=85 +scan_charge=true + +[charge_scan] +from=0 +nevts=100 +npts=32 +to=32768 + +[comparator] +enable=false +mode=0 +polarity=0 + +[delay_scan] +from=0 +nevts=100 +npts=32 +to=256 + +[laser] +delay=71 + +[laser_sync] +from=0 +nevts=100 +npts=100 +to=1000 + +[plugin] +active_on_load=false +hook= +lang= +lib= +path= + +[trigger] +dacA=-200 +dacB=-200 +dacC=-1000 +dacD=1000 +trigger_and=false +trigger_pulse=false + diff --git a/Software/AutomatedMeasurements/FocusingConfigHans410 b/Software/AutomatedMeasurements/FocusingConfigHans410 new file mode 100644 index 0000000..0bf88e4 --- /dev/null +++ b/Software/AutomatedMeasurements/FocusingConfigHans410 @@ -0,0 +1,100 @@ +[Chip.0] +Icomp=5 +Ithdelta=5 +Ithmain=0 +Vrs=0 +mask=0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +trim=0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 + +[Chip.1] +Icomp=5 +Ithdelta=5 +Ithmain=0 +Vrs=0 +mask=0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +trim=0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 + +[DAQ] +delay=60 +enable_busy=false +monitor_channel=60 +nevts=10000 +pulse_shape=true +sample_size=100 + +[analysis] +common_mode=true +neigh_cut=3.0000000000e+00 +noise=0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00 +noise_weight=1.0000000000e-03 +ped_weight=1.0000000000e-02 +pedestals=0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00 +polarity=0.0000000000e+00 +seed_cut=5.0000000000e+00 +sn_cut=5.0000000000e+00 + +[beetle] +CompCtrl=9 +Ibuf=10 +Icurrbuf=102 +Ipipe=13 +Ipre=76 +Isf=26 +Isha=10 +Itp=0 +Ivoltbuf=20 +Latency=128 +ROCtrl=26 +RclkDiv=0 +Vd=130 +Vdcl=105 +Vfp=0 +Vfs=0 +mask=3 + +[calibration] +charge=30720 +delay=85 +scan_charge=true + +[charge_scan] +from=0 +nevts=100 +npts=32 +to=32768 + +[comparator] +enable=false +mode=0 +polarity=0 + +[delay_scan] +from=0 +nevts=100 +npts=32 +to=256 + +[laser] +delay=71 + +[laser_sync] +from=0 +nevts=100 +npts=100 +to=1000 + +[plugin] +active_on_load=false +hook= +lang= +lib= +path= + +[trigger] +dacA=-200 +dacB=-200 +dacC=-1000 +dacD=1000 +trigger_and=false +trigger_pulse=false + diff --git a/Software/BiasVoltageScan/BiasVoltageScan.C b/Software/BiasVoltageScan/BiasVoltageScan.C index cf40274..b99247b 100644 --- a/Software/BiasVoltageScan/BiasVoltageScan.C +++ b/Software/BiasVoltageScan/BiasVoltageScan.C @@ -106,17 +106,36 @@ int strip; string direction; - string inputFindStrip = inputDirectory+"/"+filename+"-150V-las.root"; - string outputFindStrip = outputDirectory+"/FindStrip-"+filename+"-150V-las.root"; - + string inputFindStrip; + if ((sensorID == "Hans410") || (sensorID == "Hans320")) + inputFindStrip = inputDirectory+"/"+filename+"-150V-las.root"; + else if (sensorID == "ATLAS") + inputFindStrip = inputDirectory+"/"+filename+"--150V-las.root"; + + string outputFindStrip; + if ((sensorID == "Hans410") || (sensorID == "Hans320")) + outputFindStrip = outputDirectory+"/FindStrip-"+filename+"-150V-las.root"; + else if (sensorID == "ATLAS") + outputFindStrip = outputDirectory+"/FindStrip-"+filename+"--150V-las.root"; + FindStrip(inputFindStrip,outputFindStrip,path_to_figures,&strip,&direction); char char_input_ROOT[200]; string input_ROOT; string output_ROOT = outputDirectory+"/BiasVoltageScan-"+filename+".root"; - const Float_t minV = 30.; - const Float_t maxV = 350.; + Float_t minV = 0.; + Float_t maxV = 0.; + if ((sensorID == "Hans410") || (sensorID == "Hans320")) + { + minV = 30.; + maxV = 350.; + } + else if (sensorID == "ATLAS") + { + minV = -350; + maxV = -30; + } const Float_t stepV = 10.; const Int_t steps = (Int_t)((maxV-minV)/stepV+1); Float_t V[steps]; diff --git a/Software/CheckAlignment/CheckAlignment.C b/Software/CheckAlignment/CheckAlignment.C index e21e4ea..5ffaf0a 100644 --- a/Software/CheckAlignment/CheckAlignment.C +++ b/Software/CheckAlignment/CheckAlignment.C @@ -54,7 +54,45 @@ { cout << "**************************************************" << endl; - cout << "Some comments." << endl; + cout << "CheckAlignment reads all the ROOT files of a given alignment data taking, calls FindStrip for each of them to find the Beetle channel corresponding to the strip hit by the laser, calculates" << endl; + cout << "- the mean of the sum of the ADC counts of four adjacent strips around that hit by the laser as a function of the position along x (horizontal direction)" << endl; + cout << "- the mean of the sum of the signal over noise ratio (ADC counts/noise) of four adjacent strips around that hit by the laser as a function of the position along x (horizontal direction)" << endl; + cout << "and creates a ROOT file with the following information:" << endl; + cout << "- a graph with the mean of the sum of the ADC counts of four adjacent strips around that hit by the laser as a function of the position along x" << endl; + cout << "- a graph with the mean of the sum of the signal over noise ratio (ADC counts/noise) of four adjacent strips around that hit by the laser as a function of the position along x." << endl; + + cout << " " << endl; + cout << "The alignment data taking is identified by the following information:" << endl; + cout << "- , that is, the type of sensor (Hans410, ...);" << endl; + cout << "- , that is, the filename excluding the position value and the run type." << endl; + cout << "- , that is, the position along z;" << endl; + cout << "- , that is, the first position along x;" << endl; + cout << "- , that is, the last position along x;" << endl; + cout << "- , that is, the step between two subsequent data acquisitions (1 step = 5 microns)." << endl; + + cout << " " << endl; + cout << "Compile with:" << endl; + + cout << " " << endl; + cout << "make" << endl; + + cout << " " << endl; + cout << "Run with:" << endl; + + cout << " " << endl; + cout << "./CheckAlignment [sensor] [filename] [z] [firstx] [lastx] [stepx] [additional folder]" << endl; + + cout << " " << endl; + cout << "For example:" << endl; + + cout << " " << endl; + cout << "./CheckAlignment Hans410 ProcessRawData-20141121 0 0 75 3" << endl; + + cout << " " << endl; + cout << "A folder named AnalysisResults will be created in a fixed location and a ROOT file will be saved in there. A folder named Figures will be created inside the folder named AnalysisResults, with some monitoring plots." << endl; + + cout << " " << endl; + cout << "If needed, an additional folder can be specified, that will be created inside the folder named AnalysisResults." << endl; cout << "**************************************************" << endl; diff --git a/Software/Tools/FindStrip.C b/Software/Tools/FindStrip.C index 570fe08..af71a13 100644 --- a/Software/Tools/FindStrip.C +++ b/Software/Tools/FindStrip.C @@ -80,7 +80,7 @@ // TH1F *hmap = new TH1F("hmap","",N,0,N); - TH1F *hmapConnected = new TH1F("hmapConnected","",N/4,0,N); + TH1F *hmapConnected = new TH1F("hmapConnected","",N/NSkip,0,N); InitHist(hmap,"Hit map - all Beetle channels","Beetle channel",""); InitHist(hmapConnected,"Hit map - Beetle channels connected to Si","Beetle channel",""); @@ -106,20 +106,38 @@ hmap->Scale(1./EventsEventInfo); hmapConnected->Scale(1./EventsEventInfo); - *strip = hmap->GetMaximumBin()-1; - cout << "Beetle channel with the maximum ADC count: " << *strip << endl; - int max = hmap->GetMaximum(); - cout << "Maximum ADC count: " << max << endl; + if ((sensorID == "Hans410") || (sensorID == "Hans320")) + { + *strip = hmap->GetMaximumBin()-1; + int max = hmap->GetMaximum(); + cout << "Beetle channel with the maximum ADC count: " << *strip << endl; + cout << "Maximum ADC count: " << max << endl; + } + else if (sensorID == "ATLAS") + { + *strip = hmap->GetMinimumBin()-1; + int max = hmap->GetMinimum(); + cout << "Beetle channel with the minimum ADC count: " << *strip << endl; + cout << "Minimum ADC count: " << max << endl; + } int stripLeft = *strip-NSkip; int left = hmap->GetBinContent(stripLeft+1); // The +1 is necessary to take the number scheme of the histogram into account. int stripRight = *strip+NSkip; int right = hmap->GetBinContent(stripRight+1); // The +1 is necessary to take the number scheme of the histogram into account. cout << "Adjacent Beetle channel on the left: " << stripLeft << ", " << left << endl; cout << "Adjacent Beetle channel on the right: " << stripRight << ", " << right << endl; - if (left <= right) - *direction = "right"; - else - *direction = "left"; + if ((sensorID == "Hans410") || (sensorID == "Hans320")) + { + if (left <= right) + *direction = "right"; + else + *direction = "left"; + } + else if (sensorID == "ATLAS") + if (left >= right) + *direction = "right"; + else + *direction = "left"; cout << "More signal on the " << *direction << endl; //================================================================== diff --git a/Software/Tools/Par.C b/Software/Tools/Par.C index 764678d..bda289a 100644 --- a/Software/Tools/Par.C +++ b/Software/Tools/Par.C @@ -17,8 +17,16 @@ // Number of Beetle channels per chip. const int NBeetle = 128; +// Type of sensor under test. +// string sensor = "Hans410"; +// string sensor = "Hans320"; +string sensorID = "ATLAS"; + // Number of Beetle channels to skip to find the next connected Beetle channel + 1. If Beetle channel 0 and Beeetle channel 4 are connected, NSkip = 4. -const int NSkip = 4; +// The Hans410 and Hans320 sensors have NSkip = 4. +// const int NSkip = 4; +// The ATLAS sensor has NSkip = 1. +const int NSkip = 1; // Left and right strings. string l = "left"; diff --git a/Software/Tools/SCurve.C b/Software/Tools/SCurve.C index b02ee31..24a1d35 100644 --- a/Software/Tools/SCurve.C +++ b/Software/Tools/SCurve.C @@ -4,17 +4,17 @@ //************************************************ /* -SCurve contains some useful functions related to s-curves: -- fLeft describes the falling s-curve; -- fRight describes the rising s-curve; -- fSigma describes the sigma as a function of the z position; -- assignParInfoSCurves sets the starting values and the limits of the parameters of the two erf functions describing the s-curves according to the filename of the measurement; -- assignParInfoSigma sets the starting values and the limits of the parameters of the two sigma functions according to the filename of the measurement; -- assignParInfoEta sets the starting values and the limits of the parameters of the erf function describing the charge sharing coefficient according to the filename of the measurement; -- fitSCurve fits the s-curve and returns the result of the fit; -- fitMu fits the mu as a function of the z position and returns the result of the fit. -- fitSigma fits the sigma as a function of the z position and returns the result of the fit. -*/ + SCurve contains some useful functions related to s-curves: + - fLeft describes the falling s-curve; + - fRight describes the rising s-curve; + - fSigma describes the sigma as a function of the z position; + - assignParInfoSCurves sets the starting values and the limits of the parameters of the two erf functions describing the s-curves according to the filename of the measurement; + - assignParInfoSigma sets the starting values and the limits of the parameters of the two sigma functions according to the filename of the measurement; + - assignParInfoEta sets the starting values and the limits of the parameters of the erf function describing the charge sharing coefficient according to the filename of the measurement; + - fitSCurve fits the s-curve and returns the result of the fit; + - fitMu fits the mu as a function of the z position and returns the result of the fit. + - fitSigma fits the sigma as a function of the z position and returns the result of the fit. + */ // Header guard. #ifndef __SCURVE_C_INCLUDED__ @@ -54,7 +54,7 @@ // - par[3] is the y-coordinate of the middle of the curve. Double_t fLeft(Double_t *x, Double_t *par) { - return par[0]*(1.-erf((x[0]-par[1])/(sqrt(2.)*par[2])))+par[3]; + return par[0]*(1.-erf((x[0]-par[1])/(sqrt(2.)*par[2])))+par[3]; } // fRight has four parameters: @@ -64,7 +64,7 @@ // - par[3] is the y-coordinate of the middle of the curve. Double_t fRight(Double_t *x, Double_t *par) { -return par[0]*erf((x[0]-par[1])/(sqrt(2.)*par[2]))+par[3]; + return par[0]*erf((x[0]-par[1])/(sqrt(2.)*par[2]))+par[3]; } // fSigma is used to fit the sigma as a function of the z position and has three parameters: @@ -73,7 +73,7 @@ // - par[2] is the y-coordinate of the lowest point. Double_t fSigma(Double_t *x, Double_t *par) { - return par[0]*abs(x[0]-par[1])+par[2]; + return par[0]*abs(x[0]-par[1])+par[2]; } // assignParInfoSCurves has the following parameters: @@ -87,497 +87,570 @@ // - Float_t lengthSCurves, the length of the array containing the parameters of the s-curves. void assignParInfoSCurves(string filename, Float_t zvalue, Float_t *minRight, Float_t *maxRight, Float_t *minLeft, Float_t *maxLeft, Float_t parSCurves[], Int_t lengthParSCurves) { - if (filename == "ProcessRawData-201501093-216") { - // Right. - if (zvalue < 120.) - { - *minRight = 70.; - *maxRight = 180.; - } - else - { - *minRight = 60.; - *maxRight = 140.; - } - - // Left. - if (zvalue < 40.) - { - *minLeft = 180.; - *maxLeft = 280.; - } - else if (zvalue < 120.) - { - *minLeft = 180.; - *maxLeft = 270.; - } - else - { - *minLeft = 180.; - *maxLeft = 260.; - } + if (filename == "ProcessRawData-201501093-216") { + // Right. + if (zvalue < 120.) + { + *minRight = 70.; + *maxRight = 180.; + } + else + { + *minRight = 60.; + *maxRight = 140.; + } - // Right. - if (zvalue < 120.) - parSCurves[0] = 125.; - else - parSCurves[0] = 140.; - parSCurves[1] = 95.; - parSCurves[2] = 10.; - parSCurves[3] = 200.; + // Left. + if (zvalue < 40.) + { + *minLeft = 180.; + *maxLeft = 280.; + } + else if (zvalue < 120.) + { + *minLeft = 180.; + *maxLeft = 270.; + } + else + { + *minLeft = 180.; + *maxLeft = 260.; + } - parSCurves[4] = 90.; - parSCurves[5] = 170.; - parSCurves[6] = 70.; - parSCurves[7] = 120.; - parSCurves[8] = 3.; - parSCurves[9] = 20.; - parSCurves[10] = 150.; - parSCurves[11] = 220.; + // Right. + if (zvalue < 120.) + parSCurves[0] = 125.; + else + parSCurves[0] = 140.; + parSCurves[1] = 95.; + parSCurves[2] = 10.; + parSCurves[3] = 200.; - // Left. - if (zvalue < 120.) - parSCurves[12] = 125.; - else - parSCurves[12] = 140.; - parSCurves[13] = 230.; - parSCurves[14] = 10.; - parSCurves[15] = 200.; + parSCurves[4] = 90.; + parSCurves[5] = 170.; + parSCurves[6] = 70.; + parSCurves[7] = 120.; + parSCurves[8] = 3.; + parSCurves[9] = 20.; + parSCurves[10] = 150.; + parSCurves[11] = 220.; - // fitLeft->SetParLimits(0,90.,170.); - parSCurves[18] = 215.; - parSCurves[19] = 250.; - parSCurves[20] = 3.; - parSCurves[21] = 20.; - // fitLeft->SetParLimits(3,150.,220.); - } + // Left. + if (zvalue < 120.) + parSCurves[12] = 125.; + else + parSCurves[12] = 140.; + parSCurves[13] = 230.; + parSCurves[14] = 10.; + parSCurves[15] = 200.; + + // fitLeft->SetParLimits(0,90.,170.); + parSCurves[18] = 215.; + parSCurves[19] = 250.; + parSCurves[20] = 3.; + parSCurves[21] = 20.; + // fitLeft->SetParLimits(3,150.,220.); + } - // It does not look very nice. - else if (filename == "ProcessRawData-20150111-216") { - // Right. - if (zvalue < 105.) - { - *minRight = 60.; - *maxRight = 120.; - } - else - { - *minRight = 50.; - *maxRight = 120.; - } - - // Left. - *minLeft = 180.; - *maxLeft = 250.; + // It does not look very nice. + else if (filename == "ProcessRawData-20150111-216") { + // Right. + if (zvalue < 105.) + { + *minRight = 60.; + *maxRight = 120.; + } + else + { + *minRight = 50.; + *maxRight = 120.; + } - // Right. - parSCurves[0] = 140.; - parSCurves[1] = 85.; - parSCurves[2] = 6.; - parSCurves[3] = 175.; + // Left. + *minLeft = 180.; + *maxLeft = 250.; - parSCurves[4] = 110.; - parSCurves[5] = 170.; - parSCurves[6] = 70.; - parSCurves[7] = 100.; - parSCurves[8] = 3.; - parSCurves[9] = 10.; - parSCurves[10] = 150.; - parSCurves[11] = 200.; + // Right. + parSCurves[0] = 140.; + parSCurves[1] = 85.; + parSCurves[2] = 6.; + parSCurves[3] = 175.; - // Left. - parSCurves[12] = 140.; - parSCurves[13] = 220.; - parSCurves[14] = 6.; - parSCurves[15] = 175.; + parSCurves[4] = 110.; + parSCurves[5] = 170.; + parSCurves[6] = 70.; + parSCurves[7] = 100.; + parSCurves[8] = 3.; + parSCurves[9] = 10.; + parSCurves[10] = 150.; + parSCurves[11] = 200.; - // fitLeft->SetParLimits(0,90.,170.); - parSCurves[18] = 210.; - parSCurves[19] = 230.; - parSCurves[20] = 3.; - parSCurves[21] = 10.; - // fitLeft->SetParLimits(3,150.,220.); - } + // Left. + parSCurves[12] = 140.; + parSCurves[13] = 220.; + parSCurves[14] = 6.; + parSCurves[15] = 175.; + + // fitLeft->SetParLimits(0,90.,170.); + parSCurves[18] = 210.; + parSCurves[19] = 230.; + parSCurves[20] = 3.; + parSCurves[21] = 10.; + // fitLeft->SetParLimits(3,150.,220.); + } - else if (filename == "ProcessRawData-201501124-216") { - // Right. - if (zvalue < 80.) - { - *minRight = -8440.; - *maxRight = -8350.; - } - else if (zvalue < 180.) - { - *minRight = -8450.; - *maxRight = -8370.; - } - else - { - *minRight = -8460.; - *maxRight = -8370.; - } - - // Left. - if (zvalue == 100.) - { - *minLeft = -8320.; - *maxLeft = -8240.; - } - else if (zvalue < 120.) - { - *minLeft = -8350.; - *maxLeft = -8240.; - } - else if (zvalue < 180.) - { - *minLeft = -8350.; - *maxLeft = -8250.; - } - else - { - *minLeft = -8360.; - *maxLeft = -8260.; - } + else if (filename == "ProcessRawData-201501124-216") { + // Right. + if (zvalue < 80.) + { + *minRight = -8440.; + *maxRight = -8350.; + } + else if (zvalue < 180.) + { + *minRight = -8450.; + *maxRight = -8370.; + } + else + { + *minRight = -8460.; + *maxRight = -8370.; + } - // Right. - if (zvalue < 100.) - parSCurves[0] = 100.; - else - parSCurves[0] = 130.; - if (zvalue < 100.) - parSCurves[1] = -8400.; - else - parSCurves[1] = -8420.; - parSCurves[2] = 10.; - if (zvalue < 100.) - parSCurves[3] = 200.; - else - parSCurves[3] = 170.; + // Left. + if (zvalue == 100.) + { + *minLeft = -8320.; + *maxLeft = -8240.; + } + else if (zvalue < 120.) + { + *minLeft = -8350.; + *maxLeft = -8240.; + } + else if (zvalue < 180.) + { + *minLeft = -8350.; + *maxLeft = -8250.; + } + else + { + *minLeft = -8360.; + *maxLeft = -8260.; + } - parSCurves[4] = 80.; - parSCurves[5] = 140.; - parSCurves[6] = -8450.; - parSCurves[7] = -8370.; - parSCurves[8] = 3.; - parSCurves[9] = 20.; - parSCurves[10] = 150.; - parSCurves[11] = 250.; + // Right. + if (zvalue < 100.) + parSCurves[0] = 100.; + else + parSCurves[0] = 130.; + if (zvalue < 100.) + parSCurves[1] = -8400.; + else + parSCurves[1] = -8420.; + parSCurves[2] = 10.; + if (zvalue < 100.) + parSCurves[3] = 200.; + else + parSCurves[3] = 170.; - // Left. - if (zvalue < 100.) - parSCurves[12] = 100.; - else - parSCurves[12] = 135.; - parSCurves[13] = -8280.; - parSCurves[14] = 10.; - if (zvalue < 100.) - parSCurves[15] = 200.; - else - parSCurves[15] = 180.; + parSCurves[4] = 80.; + parSCurves[5] = 140.; + parSCurves[6] = -8450.; + parSCurves[7] = -8370.; + parSCurves[8] = 3.; + parSCurves[9] = 20.; + parSCurves[10] = 150.; + parSCurves[11] = 250.; - // fitLeft->SetParLimits(0,90.,170.); - parSCurves[18] = -8300.; - parSCurves[19] = -8250.; - parSCurves[20] = 3.; - parSCurves[21] = 20.; - // fitLeft->SetParLimits(3,150.,220.); - } + // Left. + if (zvalue < 100.) + parSCurves[12] = 100.; + else + parSCurves[12] = 135.; + parSCurves[13] = -8280.; + parSCurves[14] = 10.; + if (zvalue < 100.) + parSCurves[15] = 200.; + else + parSCurves[15] = 180.; + + // fitLeft->SetParLimits(0,90.,170.); + parSCurves[18] = -8300.; + parSCurves[19] = -8250.; + parSCurves[20] = 3.; + parSCurves[21] = 20.; + // fitLeft->SetParLimits(3,150.,220.); + } - else if (filename == "ProcessRawData-20150221-216") { - // Right. - if (zvalue < 180.) - { - *minRight = 60.; - *maxRight = 160.; - } - else - { - *minRight = 50.; - *maxRight = 160.; - } - - // Left. - if (zvalue < 180.) - { - *minLeft = 160.; - *maxLeft = 260.; - } - else - { - *minLeft = 160.; - *maxLeft = 250.; - } + else if (filename == "ProcessRawData-20150221-216") { + // Right. + if (zvalue < 180.) + { + *minRight = 60.; + *maxRight = 160.; + } + else + { + *minRight = 50.; + *maxRight = 160.; + } - // Right. - parSCurves[0] = 15.; - parSCurves[1] = 100.; - parSCurves[2] = 6.; - parSCurves[3] = 12.; + // Left. + if (zvalue < 180.) + { + *minLeft = 160.; + *maxLeft = 260.; + } + else + { + *minLeft = 160.; + *maxLeft = 250.; + } - // parSCurves[4] = 10.; - // parSCurves[5] = 20.; - parSCurves[6] = 70.; - parSCurves[7] = 110.; - parSCurves[8] = 3.; - parSCurves[9] = 15.; - // parSCurves[10] = 8.; - // parSCurves[11] = 18.; + // Right. + parSCurves[0] = 15.; + parSCurves[1] = 100.; + parSCurves[2] = 6.; + parSCurves[3] = 12.; - // Left. - parSCurves[12] = 17.; - parSCurves[13] = 220.; - parSCurves[14] = 6.; - parSCurves[15] = 10.; + // parSCurves[4] = 10.; + // parSCurves[5] = 20.; + parSCurves[6] = 70.; + parSCurves[7] = 110.; + parSCurves[8] = 3.; + parSCurves[9] = 15.; + // parSCurves[10] = 8.; + // parSCurves[11] = 18.; - // fitLeft->SetParLimits(0,90.,170.); - parSCurves[18] = 200.; - parSCurves[19] = 230.; - parSCurves[20] = 3.; - parSCurves[21] = 15.; - // fitLeft->SetParLimits(3,150.,220.); - } + // Left. + parSCurves[12] = 17.; + parSCurves[13] = 220.; + parSCurves[14] = 6.; + parSCurves[15] = 10.; + + // fitLeft->SetParLimits(0,90.,170.); + parSCurves[18] = 200.; + parSCurves[19] = 230.; + parSCurves[20] = 3.; + parSCurves[21] = 15.; + // fitLeft->SetParLimits(3,150.,220.); + } - else if (filename == "ProcessRawData-201502235-216") { - // Right. - if (zvalue < 80.) - { - *minRight = 120.; - *maxRight = 240.; - } - else - { - *minRight = 100.; - *maxRight = 230.; - } - - // Left. - if (zvalue < 80.) - { - *minLeft = 240.; - *maxLeft = 330.; - } - else - { - *minLeft = 230.; - *maxLeft = 320.; - } + else if (filename == "ProcessRawData-201502235-216") { + // Right. + if (zvalue < 80.) + { + *minRight = 120.; + *maxRight = 240.; + } + else + { + *minRight = 100.; + *maxRight = 230.; + } - // Right. - parSCurves[0] = 16.; - parSCurves[1] = 160.; - parSCurves[2] = 6.; - if (zvalue < 60.) - parSCurves[3] = 12.; - else - parSCurves[3] = 10.; + // Left. + if (zvalue < 80.) + { + *minLeft = 240.; + *maxLeft = 330.; + } + else + { + *minLeft = 230.; + *maxLeft = 320.; + } - // parSCurves[4] = 10.; - // parSCurves[5] = 20.; - parSCurves[6] = 120.; - parSCurves[7] = 200.; - parSCurves[8] = 3.; - parSCurves[9] = 15.; - // parSCurves[10] = 8.; - // parSCurves[11] = 18.; + // Right. + parSCurves[0] = 16.; + parSCurves[1] = 160.; + parSCurves[2] = 6.; + if (zvalue < 60.) + parSCurves[3] = 12.; + else + parSCurves[3] = 10.; - // Left. - parSCurves[12] = 16.; - parSCurves[13] = 280.; - parSCurves[14] = 6.; - parSCurves[15] = 12.; + // parSCurves[4] = 10.; + // parSCurves[5] = 20.; + parSCurves[6] = 120.; + parSCurves[7] = 200.; + parSCurves[8] = 3.; + parSCurves[9] = 15.; + // parSCurves[10] = 8.; + // parSCurves[11] = 18.; - // fitLeft->SetParLimits(0,90.,170.); - parSCurves[18] = 260.; - parSCurves[19] = 300.; - parSCurves[20] = 3.; - parSCurves[21] = 15.; - // fitLeft->SetParLimits(3,150.,220.); - } + // Left. + parSCurves[12] = 16.; + parSCurves[13] = 280.; + parSCurves[14] = 6.; + parSCurves[15] = 12.; + + // fitLeft->SetParLimits(0,90.,170.); + parSCurves[18] = 260.; + parSCurves[19] = 300.; + parSCurves[20] = 3.; + parSCurves[21] = 15.; + // fitLeft->SetParLimits(3,150.,220.); + } - else if ((filename == "ProcessRawData-201502253-216") || (filename == "ProcessRawData-20150226-216") || (filename == "ProcessRawData-201502262-216") || (filename == "ProcessRawData-20150226-100V-216") || (filename == "ProcessRawData-20150226-120V-216") || (filename == "ProcessRawData-20150226-140V-216") || (filename == "ProcessRawData-20150226-160V-216") || (filename == "ProcessRawData-20150226-180V-216") || (filename == "ProcessRawData-20150226-200V-216") || (filename == "ProcessRawData-20150227-21.0dB-216") || (filename == "ProcessRawData-20150227-21.5dB-216") || (filename == "ProcessRawData-20150227-22.0dB-216") || (filename == "ProcessRawData-20150227-22.5dB-216") || (filename == "ProcessRawData-20150227-23.0dB-216") || (filename == "ProcessRawData-20150227-23.5dB-216") || (filename == "ProcessRawData-20150227-24.0dB-216") || (filename == "ProcessRawData-20150227-24.5dB-216") || (filename == "ProcessRawData-20150227-25.0dB-216") || (filename == "ProcessRawData-20150309-67ns-216") || (filename == "ProcessRawData-20150309-68ns-216") || (filename == "ProcessRawData-20150309-69ns-216") ||(filename == "ProcessRawData-20150309-70ns-216") || (filename == "ProcessRawData-20150309-71ns-216") || (filename == "ProcessRawData-20150309-72ns-216") || (filename == "ProcessRawData-20150309-73ns-216") || (filename == "ProcessRawData-20150309-74ns-216") || (filename == "ProcessRawData-20150309-75ns-216") || (filename == "ProcessRawData-20150315-67ns-216") || (filename == "ProcessRawData-20150315-68ns-216") || (filename == "ProcessRawData-20150315-69ns-216") ||(filename == "ProcessRawData-20150315-70ns-216") || (filename == "ProcessRawData-20150315-71ns-216") || (filename == "ProcessRawData-20150315-72ns-216") || (filename == "ProcessRawData-20150315-73ns-216") || (filename == "ProcessRawData-20150315-74ns-216") || (filename == "ProcessRawData-20150315-75ns-216") || (filename == "ProcessRawData-20150317-216")) { - // Right. - *minRight = 30.; - *maxRight = 140.; - - // Left. - if (zvalue < 150.) { - *minLeft = 140.; - *maxLeft = 235; - } - else if (zvalue < 230.) { - *minLeft = 140.; - *maxLeft = 240.; - } - else { - *minLeft = 140.; - *maxLeft = 230.; - } + else if ((filename == "ProcessRawData-201502253-216") || (filename == "ProcessRawData-20150226-216") || (filename == "ProcessRawData-201502262-216") || (filename == "ProcessRawData-20150226-100V-216") || (filename == "ProcessRawData-20150226-120V-216") || (filename == "ProcessRawData-20150226-140V-216") || (filename == "ProcessRawData-20150226-160V-216") || (filename == "ProcessRawData-20150226-180V-216") || (filename == "ProcessRawData-20150226-200V-216") || (filename == "ProcessRawData-20150227-21.0dB-216") || (filename == "ProcessRawData-20150227-21.5dB-216") || (filename == "ProcessRawData-20150227-22.0dB-216") || (filename == "ProcessRawData-20150227-22.5dB-216") || (filename == "ProcessRawData-20150227-23.0dB-216") || (filename == "ProcessRawData-20150227-23.5dB-216") || (filename == "ProcessRawData-20150227-24.0dB-216") || (filename == "ProcessRawData-20150227-24.5dB-216") || (filename == "ProcessRawData-20150227-25.0dB-216") || (filename == "ProcessRawData-20150309-67ns-216") || (filename == "ProcessRawData-20150309-68ns-216") || (filename == "ProcessRawData-20150309-69ns-216") ||(filename == "ProcessRawData-20150309-70ns-216") || (filename == "ProcessRawData-20150309-71ns-216") || (filename == "ProcessRawData-20150309-72ns-216") || (filename == "ProcessRawData-20150309-73ns-216") || (filename == "ProcessRawData-20150309-74ns-216") || (filename == "ProcessRawData-20150309-75ns-216") || (filename == "ProcessRawData-20150315-67ns-216") || (filename == "ProcessRawData-20150315-68ns-216") || (filename == "ProcessRawData-20150315-69ns-216") ||(filename == "ProcessRawData-20150315-70ns-216") || (filename == "ProcessRawData-20150315-71ns-216") || (filename == "ProcessRawData-20150315-72ns-216") || (filename == "ProcessRawData-20150315-73ns-216") || (filename == "ProcessRawData-20150315-74ns-216") || (filename == "ProcessRawData-20150315-75ns-216") || (filename == "ProcessRawData-20150317-216")) { + // Right. + *minRight = 30.; + *maxRight = 140.; - // Right. - if (zvalue < 130.) - parSCurves[0] = 11.; - else - parSCurves[0] = 16.; - if (zvalue < 110.) - parSCurves[1] = 80.; - else if (zvalue < 150.) - parSCurves[1] = 70.; - else - parSCurves[1] = 60.; - if (zvalue<130.) - parSCurves[2] = 10.; - else - parSCurves[2] = 6.; - parSCurves[3] = 10.; + // Left. + if (zvalue < 150.) { + *minLeft = 140.; + *maxLeft = 235; + } + else if (zvalue < 230.) { + *minLeft = 140.; + *maxLeft = 240.; + } + else { + *minLeft = 140.; + *maxLeft = 230.; + } - // parSCurves[4] = 10.; - // parSCurves[5] = 20.; - parSCurves[6] = 20.; - parSCurves[7] = 100.; - parSCurves[8] = 3.; - parSCurves[9] = 20.; - // parSCurves[10] = 8.; - // parSCurves[11] = 18.; + // Right. + if (zvalue < 130.) + parSCurves[0] = 11.; + else + parSCurves[0] = 16.; + if (zvalue < 110.) + parSCurves[1] = 80.; + else if (zvalue < 150.) + parSCurves[1] = 70.; + else + parSCurves[1] = 60.; + if (zvalue<130.) + parSCurves[2] = 10.; + else + parSCurves[2] = 6.; + parSCurves[3] = 10.; - // Left. - if (zvalue < 130.) - parSCurves[12] = 11.; - else - parSCurves[12] = 16.; - parSCurves[13] = 190.; - if (zvalue < 130.) - parSCurves[14] = 10.; - else - parSCurves[14] = 6.; - parSCurves[15] = 10.; + // parSCurves[4] = 10.; + // parSCurves[5] = 20.; + parSCurves[6] = 20.; + parSCurves[7] = 100.; + parSCurves[8] = 3.; + parSCurves[9] = 20.; + // parSCurves[10] = 8.; + // parSCurves[11] = 18.; - // fitLeft->SetParLimits(0,90.,170.); - parSCurves[18] = 170.; - parSCurves[19] = 210.; - parSCurves[20] = 3.; - parSCurves[21] = 20.; - // fitLeft->SetParLimits(3,150.,220.); - } + // Left. + if (zvalue < 130.) + parSCurves[12] = 11.; + else + parSCurves[12] = 16.; + parSCurves[13] = 190.; + if (zvalue < 130.) + parSCurves[14] = 10.; + else + parSCurves[14] = 6.; + parSCurves[15] = 10.; - else if ((filename == "ProcessRawData-201503232-216") || (filename == "ProcessRawData-20150325-216") || (filename == "ProcessRawData-201503252-67ns-216") || (filename == "ProcessRawData-201503252-68ns-216") || (filename == "ProcessRawData-201503252-69ns-216") || (filename == "ProcessRawData-201503252-70ns-216") || (filename == "ProcessRawData-201503252-71ns-216") || (filename == "ProcessRawData-201503252-72ns-216") || (filename == "ProcessRawData-201503252-73ns-216") || (filename == "ProcessRawData-201503252-74ns-216") || (filename == "ProcessRawData-201503252-75ns-216") || (filename == "ProcessRawData-201503253-150V-216") || (filename == "ProcessRawData-201503253-170V-216") || (filename == "ProcessRawData-201503253-190V-216") || (filename == "ProcessRawData-201503253-210V-216") || (filename == "ProcessRawData-201503253-230V-216") || (filename == "ProcessRawData-201503253-250V-216") || (filename == "ProcessRawData-20150326-24.5dB-216") || (filename == "ProcessRawData-20150326-25.0dB-216") || (filename == "ProcessRawData-20150326-25.5dB-216") || (filename == "ProcessRawData-20150326-26.0dB-216") || (filename == "ProcessRawData-20150326-26.5dB-216") || (filename == "ProcessRawData-20150326-27.0dB-216") || (filename == "ProcessRawData-20150326-27.5dB-216") || (filename == "ProcessRawData-20150326-28.0dB-216") || (filename == "ProcessRawData-20150326-28.5dB-216")) { - // Right. - if (zvalue < 150.) { - *minRight = 120.; - *maxRight = 200.; - } - else { - *minRight = 110.; - *maxRight = 200.; - } + // fitLeft->SetParLimits(0,90.,170.); + parSCurves[18] = 170.; + parSCurves[19] = 210.; + parSCurves[20] = 3.; + parSCurves[21] = 20.; + // fitLeft->SetParLimits(3,150.,220.); + } - // Left. - if (zvalue < 170.) { - *minLeft = 240.; - *maxLeft = 320.; - } - else if (zvalue < 250.) { - *minLeft = 220.; - *maxLeft = 310.; - } - else { - *minLeft = 220.; - *maxLeft = 300.; - } + else if ((filename == "ProcessRawData-201503232-216") || (filename == "ProcessRawData-20150325-216") || (filename == "ProcessRawData-201503252-67ns-216") || (filename == "ProcessRawData-201503252-68ns-216") || (filename == "ProcessRawData-201503252-69ns-216") || (filename == "ProcessRawData-201503252-70ns-216") || (filename == "ProcessRawData-201503252-71ns-216") || (filename == "ProcessRawData-201503252-72ns-216") || (filename == "ProcessRawData-201503252-73ns-216") || (filename == "ProcessRawData-201503252-74ns-216") || (filename == "ProcessRawData-201503252-75ns-216") || (filename == "ProcessRawData-201503253-150V-216") || (filename == "ProcessRawData-201503253-170V-216") || (filename == "ProcessRawData-201503253-190V-216") || (filename == "ProcessRawData-201503253-210V-216") || (filename == "ProcessRawData-201503253-230V-216") || (filename == "ProcessRawData-201503253-250V-216") || (filename == "ProcessRawData-20150326-24.5dB-216") || (filename == "ProcessRawData-20150326-25.0dB-216") || (filename == "ProcessRawData-20150326-25.5dB-216") || (filename == "ProcessRawData-20150326-26.0dB-216") || (filename == "ProcessRawData-20150326-26.5dB-216") || (filename == "ProcessRawData-20150326-27.0dB-216") || (filename == "ProcessRawData-20150326-27.5dB-216") || (filename == "ProcessRawData-20150326-28.0dB-216") || (filename == "ProcessRawData-20150326-28.5dB-216")) { + // Right. + if (zvalue < 150.) { + *minRight = 120.; + *maxRight = 200.; + } + else { + *minRight = 110.; + *maxRight = 200.; + } - // Right. - parSCurves[0] = 2.5; - parSCurves[1] = 150.; - parSCurves[2] = 10.; - parSCurves[3] = 3.; - - // parSCurves[4] = 10.; - // parSCurves[5] = 20.; - parSCurves[6] = 120.; - parSCurves[7] = 180.; - parSCurves[8] = 3.; - parSCurves[9] = 20.; - // parSCurves[10] = 8.; - // parSCurves[11] = 18.; - - // Left. - parSCurves[12] = 2.5; - parSCurves[13] = 275.; - parSCurves[14] = 10.; - parSCurves[15] = 3.; - - // fitLeft->SetParLimits(0,90.,170.); - parSCurves[18] = 250.; - parSCurves[19] = 300.; - parSCurves[20] = 3.; - parSCurves[21] = 20.; - // fitLeft->SetParLimits(3,150.,220.); - } - - else if (filename == "ProcessRawData-201503273-216"){ - // Right. - if (zvalue < 210.) { - *minRight = 90.; - *maxRight = 170.; - } - else { - *minRight = 80.; - *maxRight = 170.; - } + // Left. + if (zvalue < 170.) { + *minLeft = 240.; + *maxLeft = 320.; + } + else if (zvalue < 250.) { + *minLeft = 220.; + *maxLeft = 310.; + } + else { + *minLeft = 220.; + *maxLeft = 300.; + } - // Left. - if (zvalue < 90.) { - *minLeft = 200.; - *maxLeft = 300.; - } - else if (zvalue < 210.) { - *minLeft = 200.; - *maxLeft = 290.; - } - else { - *minLeft = 200.; - *maxLeft = 280.; - } + // Right. + parSCurves[0] = 2.5; + parSCurves[1] = 150.; + parSCurves[2] = 10.; + parSCurves[3] = 3.; - // Right. - parSCurves[0] = 2.5; - parSCurves[1] = 120.; - parSCurves[2] = 10.; - parSCurves[3] = 3.; - - // parSCurves[4] = 10.; - // parSCurves[5] = 20.; - parSCurves[6] = 100.; - parSCurves[7] = 150.; - parSCurves[8] = 3.; - parSCurves[9] = 20.; - // parSCurves[10] = 8.; - // parSCurves[11] = 18.; - - // Left. - parSCurves[12] = 2.5; - parSCurves[13] = 275.; - parSCurves[14] = 10.; - parSCurves[15] = 3.; - - // fitLeft->SetParLimits(0,90.,170.); - parSCurves[18] = 250.; - parSCurves[19] = 300.; - parSCurves[20] = 3.; - parSCurves[21] = 20.; - // fitLeft->SetParLimits(3,150.,220.); - } + // parSCurves[4] = 10.; + // parSCurves[5] = 20.; + parSCurves[6] = 120.; + parSCurves[7] = 180.; + parSCurves[8] = 3.; + parSCurves[9] = 20.; + // parSCurves[10] = 8.; + // parSCurves[11] = 18.; - return; + // Left. + parSCurves[12] = 2.5; + parSCurves[13] = 275.; + parSCurves[14] = 10.; + parSCurves[15] = 3.; + + // fitLeft->SetParLimits(0,90.,170.); + parSCurves[18] = 250.; + parSCurves[19] = 300.; + parSCurves[20] = 3.; + parSCurves[21] = 20.; + // fitLeft->SetParLimits(3,150.,220.); + } + + else if (filename == "ProcessRawData-201503273-216"){ + // Right. + if (zvalue < 210.) { + *minRight = 90.; + *maxRight = 170.; + } + else { + *minRight = 80.; + *maxRight = 170.; + } + + // Left. + if (zvalue < 90.) { + *minLeft = 200.; + *maxLeft = 300.; + } + else if (zvalue < 210.) { + *minLeft = 200.; + *maxLeft = 290.; + } + else { + *minLeft = 200.; + *maxLeft = 280.; + } + + // Right. + parSCurves[0] = 2.5; + parSCurves[1] = 120.; + parSCurves[2] = 10.; + parSCurves[3] = 3.; + + // parSCurves[4] = 10.; + // parSCurves[5] = 20.; + parSCurves[6] = 100.; + parSCurves[7] = 150.; + parSCurves[8] = 3.; + parSCurves[9] = 20.; + // parSCurves[10] = 8.; + // parSCurves[11] = 18.; + + // Left. + parSCurves[12] = 2.5; + parSCurves[13] = 275.; + parSCurves[14] = 10.; + parSCurves[15] = 3.; + + // fitLeft->SetParLimits(0,90.,170.); + parSCurves[18] = 250.; + parSCurves[19] = 300.; + parSCurves[20] = 3.; + parSCurves[21] = 20.; + // fitLeft->SetParLimits(3,150.,220.); + } + + else if (filename == "ProcessRawData-201507248-216"){ + // Right. + if (zvalue < -20.) { + *minRight = 35.; + *maxRight = 75.; + } + else if (zvalue < 0.) { + *minRight = 40.; + *maxRight = 70.; + } + else if (zvalue < 40.) { + *minRight = 30.; + *maxRight = 70.; + } + else { + *minRight = 30.; + *maxRight = 65.; + } + + // Left. + if (zvalue < -40.) { + *minLeft = 0.; + *maxLeft = 40.; + } + else if (zvalue < 0.) { + *minLeft = -5.; + *maxLeft = 35.; + } + else if (zvalue < 20.) { + *minLeft = -5.; + *maxLeft = 30.; + } + else if (zvalue < 80.) { + *minLeft = -10.; + *maxLeft = 31.; + } + else { + *minLeft = -15.; + *maxLeft = 35.; + } + + // Right. + parSCurves[0] = 15; + parSCurves[1] = 60.; + parSCurves[2] = 10.; + parSCurves[3] = -45.; + + // parSCurves[4] = 10.; + // parSCurves[5] = 20.; + parSCurves[6] = 50.; + parSCurves[7] = 60.; + parSCurves[8] = 3.; + parSCurves[9] = 20.; + // parSCurves[10] = 8.; + // parSCurves[11] = 18.; + + // Left. + parSCurves[12] = 20.; // 15. + parSCurves[13] = 5.; + parSCurves[14] = 10.; + if (zvalue < 80.) + parSCurves[15] = -45.; + else + parSCurves[15] = -53.; + + // fitLeft->SetParLimits(0,90.,170.); + parSCurves[18] = -10.; + parSCurves[19] = 20.; + parSCurves[20] = 3.; + parSCurves[21] = 20.; + // fitLeft->SetParLimits(3,150.,220.); + } + + return; } // assignParInfoSigma has the following parameters: @@ -586,127 +659,157 @@ // - Float_t lengthParSigma, the length of the array containing the parameters of the sigma function. void assignParInfoSigma(string filename, Float_t parSigma[], Int_t lengthParSigma) { - if ((filename == "ProcessRawData-201501093-216") || (filename == "ProcessRawData-20150111-216") || (filename == "ProcessRawData-201501124-216") || (filename == "ProcessRawData-20150221-216")) { - // Sigma left. - parSigma[0] = 5.; - parSigma[1] = 600.; - parSigma[2] = 0.025; - - parSigma[3] = 0.; - parSigma[4] = 10.; - - parSigma[5] = 500.; - parSigma[6] = 700.; - - // parSigma[7] = ?.; - // parSigma[8] = ?.; + if ((filename == "ProcessRawData-201501093-216") || (filename == "ProcessRawData-20150111-216") || (filename == "ProcessRawData-201501124-216") || (filename == "ProcessRawData-20150221-216")) { + // Sigma left. + parSigma[0] = 5.; + parSigma[1] = 600.; + parSigma[2] = 0.025; - // Sigma right. - parSigma[9] = 5.; - parSigma[10] = 600.; - parSigma[11] = 0.025; - - parSigma[12] = 0.; - parSigma[13] = 10.; - - parSigma[14] = 500.; - parSigma[15] = 700.; - - // parSigma[16] = ?.; - // parSigma[17] = ?.; - } + parSigma[3] = 0.; + parSigma[4] = 10.; - else if (filename == "ProcessRawData-201502235-216") { - // Sigma left. - parSigma[0] = 5.; - parSigma[1] = 100.; - parSigma[2] = 6.; - - parSigma[3] = 0.; - parSigma[4] = 10.; - - parSigma[5] = 0.; - parSigma[6] = 200.; - - // parSigma[7] = ?.; - // parSigma[8] = ?.; + parSigma[5] = 500.; + parSigma[6] = 700.; - // Sigma right. - parSigma[9] = 5.; - parSigma[10] = 100.; - parSigma[11] = 6.; - - parSigma[12] = 0.; - parSigma[13] = 10.; - - parSigma[14] = 0.; - parSigma[15] = 200.; - - // parSigma[16] = ?.; - // parSigma[17] = ?.; - } + // parSigma[7] = ?.; + // parSigma[8] = ?.; - else if ((filename == "ProcessRawData-201502253-216") || (filename == "ProcessRawData-20150226-216") || (filename == "ProcessRawData-20150317-216")) { - // Sigma left. - parSigma[0] = 0.01; - parSigma[1] = 850.; - parSigma[2] = 5.; - - parSigma[3] = 0.001; - parSigma[4] = 1.; - - parSigma[5] = 800.; - parSigma[6] = 900.; - - // parSigma[7] = ?.; - // parSigma[8] = ?.; + // Sigma right. + parSigma[9] = 5.; + parSigma[10] = 600.; + parSigma[11] = 0.025; - // Sigma right. - parSigma[9] = 0.01; - parSigma[10] = 850.; - parSigma[11] = 5.; - - parSigma[12] = 0.001; - parSigma[13] = 1.; - - parSigma[14] = 800.; - parSigma[15] = 900.; - - // parSigma[16] = ?.; - // parSigma[17] = ?.; - } + parSigma[12] = 0.; + parSigma[13] = 10.; - else if ((filename == "ProcessRawData-201503232-216") || (filename == "ProcessRawData-201503273-216")) { - // Sigma left. - parSigma[0] = 0.01; - parSigma[1] = 550.; - parSigma[2] = 5.; - - parSigma[3] = 0.001; - parSigma[4] = 1.; - - parSigma[5] = 500.; - parSigma[6] = 700.; - - // parSigma[7] = ?.; - // parSigma[8] = ?.; + parSigma[14] = 500.; + parSigma[15] = 700.; - // Sigma right. - parSigma[9] = 0.01; - parSigma[10] = 580.; - parSigma[11] = 5.; - - parSigma[12] = 0.001; - parSigma[13] = 1.; - - parSigma[14] = 500.; - parSigma[15] = 700.; - - // parSigma[16] = ?.; - // parSigma[17] = ?.; - } + // parSigma[16] = ?.; + // parSigma[17] = ?.; + } - return; + else if (filename == "ProcessRawData-201502235-216") { + // Sigma left. + parSigma[0] = 5.; + parSigma[1] = 100.; + parSigma[2] = 6.; + + parSigma[3] = 0.; + parSigma[4] = 10.; + + parSigma[5] = 0.; + parSigma[6] = 200.; + + // parSigma[7] = ?.; + // parSigma[8] = ?.; + + // Sigma right. + parSigma[9] = 5.; + parSigma[10] = 100.; + parSigma[11] = 6.; + + parSigma[12] = 0.; + parSigma[13] = 10.; + + parSigma[14] = 0.; + parSigma[15] = 200.; + + // parSigma[16] = ?.; + // parSigma[17] = ?.; + } + + else if ((filename == "ProcessRawData-201502253-216") || (filename == "ProcessRawData-20150226-216") || (filename == "ProcessRawData-20150317-216")) { + // Sigma left. + parSigma[0] = 0.01; + parSigma[1] = 850.; + parSigma[2] = 5.; + + parSigma[3] = 0.001; + parSigma[4] = 1.; + + parSigma[5] = 800.; + parSigma[6] = 900.; + + // parSigma[7] = ?.; + // parSigma[8] = ?.; + + // Sigma right. + parSigma[9] = 0.01; + parSigma[10] = 850.; + parSigma[11] = 5.; + + parSigma[12] = 0.001; + parSigma[13] = 1.; + + parSigma[14] = 800.; + parSigma[15] = 900.; + + // parSigma[16] = ?.; + // parSigma[17] = ?.; + } + + else if ((filename == "ProcessRawData-201503232-216") || (filename == "ProcessRawData-201503273-216")) { + // Sigma left. + parSigma[0] = 0.01; + parSigma[1] = 550.; + parSigma[2] = 5.; + + parSigma[3] = 0.001; + parSigma[4] = 1.; + + parSigma[5] = 500.; + parSigma[6] = 700.; + + // parSigma[7] = ?.; + // parSigma[8] = ?.; + + // Sigma right. + parSigma[9] = 0.01; + parSigma[10] = 580.; + parSigma[11] = 5.; + + parSigma[12] = 0.001; + parSigma[13] = 1.; + + parSigma[14] = 500.; + parSigma[15] = 700.; + + // parSigma[16] = ?.; + // parSigma[17] = ?.; + } + + else if (filename == "ProcessRawData-201507248-216") { + // Sigma left. + parSigma[0] = 0.05; + parSigma[1] = 100.; + parSigma[2] = 5.; + + parSigma[3] = 0.; + parSigma[4] = 10.; + + parSigma[5] = 0.; + parSigma[6] = 200.; + + // parSigma[7] = ?.; + // parSigma[8] = ?.; + + // Sigma right. + parSigma[9] = 0.02; + parSigma[10] = 100.; + parSigma[11] = 3.; + + parSigma[12] = 0.; + parSigma[13] = 10.; + + parSigma[14] = 0.; + parSigma[15] = 200.; + + // parSigma[16] = ?.; + // parSigma[17] = ?.; + } + + return; } // assignParInfoEta has the following parameters: @@ -714,154 +817,154 @@ // - Float_t parEta[], the array containing the parameters of the erf function; // - Float_t lengthParEta, the length of the array containing the parameters of the erf function. void assignParInfoEta(string filename, Float_t parEta[], Int_t lengthParEta) { - if ((filename == "ProcessRawData-201502262-216") || (filename == "ProcessRawData-20150226-100V-216") || (filename == "ProcessRawData-20150226-120V-216") || (filename == "ProcessRawData-20150226-140V-216") || (filename == "ProcessRawData-20150226-160V-216") || (filename == "ProcessRawData-20150226-180V-216") || (filename == "ProcessRawData-20150226-200V-216") || (filename == "ProcessRawData-20150227-21.0dB-216") || (filename == "ProcessRawData-20150227-21.5dB-216") || (filename == "ProcessRawData-20150227-22.0dB-216") || (filename == "ProcessRawData-20150227-22.5dB-216") || (filename == "ProcessRawData-20150227-23.0dB-216") || (filename == "ProcessRawData-20150227-23.5dB-216") || (filename == "ProcessRawData-20150227-24.0dB-216") || (filename == "ProcessRawData-20150227-24.5dB-216") || (filename == "ProcessRawData-20150227-25.0dB-216") || (filename == "ProcessRawData-20150309-67ns-216") || (filename == "ProcessRawData-20150309-68ns-216") || (filename == "ProcessRawData-20150309-69ns-216") ||(filename == "ProcessRawData-20150309-70ns-216") || (filename == "ProcessRawData-20150309-71ns-216") || (filename == "ProcessRawData-20150309-72ns-216") || (filename == "ProcessRawData-20150309-73ns-216") || (filename == "ProcessRawData-20150309-74ns-216") || (filename == "ProcessRawData-20150309-75ns-216") || (filename == "ProcessRawData-20150315-67ns-216") || (filename == "ProcessRawData-20150315-68ns-216") || (filename == "ProcessRawData-20150315-69ns-216") ||(filename == "ProcessRawData-20150315-70ns-216") || (filename == "ProcessRawData-20150315-71ns-216") || (filename == "ProcessRawData-20150315-72ns-216") || (filename == "ProcessRawData-20150315-73ns-216") || (filename == "ProcessRawData-20150315-74ns-216") || (filename == "ProcessRawData-20150315-75ns-216")) { - parEta[0] = 1.5; - parEta[1] = 140.; - parEta[2] = 5.; - parEta[3] = 0.; + if ((filename == "ProcessRawData-201502262-216") || (filename == "ProcessRawData-20150226-100V-216") || (filename == "ProcessRawData-20150226-120V-216") || (filename == "ProcessRawData-20150226-140V-216") || (filename == "ProcessRawData-20150226-160V-216") || (filename == "ProcessRawData-20150226-180V-216") || (filename == "ProcessRawData-20150226-200V-216") || (filename == "ProcessRawData-20150227-21.0dB-216") || (filename == "ProcessRawData-20150227-21.5dB-216") || (filename == "ProcessRawData-20150227-22.0dB-216") || (filename == "ProcessRawData-20150227-22.5dB-216") || (filename == "ProcessRawData-20150227-23.0dB-216") || (filename == "ProcessRawData-20150227-23.5dB-216") || (filename == "ProcessRawData-20150227-24.0dB-216") || (filename == "ProcessRawData-20150227-24.5dB-216") || (filename == "ProcessRawData-20150227-25.0dB-216") || (filename == "ProcessRawData-20150309-67ns-216") || (filename == "ProcessRawData-20150309-68ns-216") || (filename == "ProcessRawData-20150309-69ns-216") ||(filename == "ProcessRawData-20150309-70ns-216") || (filename == "ProcessRawData-20150309-71ns-216") || (filename == "ProcessRawData-20150309-72ns-216") || (filename == "ProcessRawData-20150309-73ns-216") || (filename == "ProcessRawData-20150309-74ns-216") || (filename == "ProcessRawData-20150309-75ns-216") || (filename == "ProcessRawData-20150315-67ns-216") || (filename == "ProcessRawData-20150315-68ns-216") || (filename == "ProcessRawData-20150315-69ns-216") ||(filename == "ProcessRawData-20150315-70ns-216") || (filename == "ProcessRawData-20150315-71ns-216") || (filename == "ProcessRawData-20150315-72ns-216") || (filename == "ProcessRawData-20150315-73ns-216") || (filename == "ProcessRawData-20150315-74ns-216") || (filename == "ProcessRawData-20150315-75ns-216")) { + parEta[0] = 1.5; + parEta[1] = 140.; + parEta[2] = 5.; + parEta[3] = 0.; - /* - parEta[4] = ; - parEta[5] = ; + /* + parEta[4] = ; + parEta[5] = ; - parEta[6] = ; - parEta[7] = ; - - parEta[8] = ; - parEta[9] = ; - - parEta[10] = ; - parEta[11] = ; - */ - } + parEta[6] = ; + parEta[7] = ; - else if ((filename == "ProcessRawData-20150325-216") || (filename == "ProcessRawData-201503252-67ns-216") || (filename == "ProcessRawData-201503252-68ns-216") || (filename == "ProcessRawData-201503252-69ns-216") || (filename == "ProcessRawData-201503252-70ns-216") || (filename == "ProcessRawData-201503252-71ns-216") || (filename == "ProcessRawData-201503252-72ns-216") || (filename == "ProcessRawData-201503252-73ns-216") || (filename == "ProcessRawData-201503252-74ns-216") || (filename == "ProcessRawData-201503252-75ns-216")|| (filename == "ProcessRawData-201503253-150V-216") || (filename == "ProcessRawData-201503253-170V-216") || (filename == "ProcessRawData-201503253-190V-216") || (filename == "ProcessRawData-201503253-210V-216") || (filename == "ProcessRawData-201503253-230V-216") || (filename == "ProcessRawData-201503253-250V-216") || (filename == "ProcessRawData-20150326-24.5dB-216") || (filename == "ProcessRawData-20150326-25.0dB-216") || (filename == "ProcessRawData-20150326-25.5dB-216") || (filename == "ProcessRawData-20150326-26.0dB-216") || (filename == "ProcessRawData-20150326-26.5dB-216") || (filename == "ProcessRawData-20150326-27.0dB-216") || (filename == "ProcessRawData-20150326-27.5dB-216") || (filename == "ProcessRawData-20150326-28.0dB-216") || (filename == "ProcessRawData-20150326-28.5dB-216")) { - parEta[0] = 1.; - parEta[1] = 200.; - parEta[2] = 6.; - parEta[3] = 0.; + parEta[8] = ; + parEta[9] = ; - // parEta[4] = 0.5; - // parEta[5] = 2.5; + parEta[10] = ; + parEta[11] = ; + */ + } - parEta[6] = 180.; - parEta[7] = 220.; - - parEta[8] = 2.; - parEta[9] = 10.; - - // parEta[10] = -0.2; - // parEta[11] = 0.2; - } + else if ((filename == "ProcessRawData-20150325-216") || (filename == "ProcessRawData-201503252-67ns-216") || (filename == "ProcessRawData-201503252-68ns-216") || (filename == "ProcessRawData-201503252-69ns-216") || (filename == "ProcessRawData-201503252-70ns-216") || (filename == "ProcessRawData-201503252-71ns-216") || (filename == "ProcessRawData-201503252-72ns-216") || (filename == "ProcessRawData-201503252-73ns-216") || (filename == "ProcessRawData-201503252-74ns-216") || (filename == "ProcessRawData-201503252-75ns-216")|| (filename == "ProcessRawData-201503253-150V-216") || (filename == "ProcessRawData-201503253-170V-216") || (filename == "ProcessRawData-201503253-190V-216") || (filename == "ProcessRawData-201503253-210V-216") || (filename == "ProcessRawData-201503253-230V-216") || (filename == "ProcessRawData-201503253-250V-216") || (filename == "ProcessRawData-20150326-24.5dB-216") || (filename == "ProcessRawData-20150326-25.0dB-216") || (filename == "ProcessRawData-20150326-25.5dB-216") || (filename == "ProcessRawData-20150326-26.0dB-216") || (filename == "ProcessRawData-20150326-26.5dB-216") || (filename == "ProcessRawData-20150326-27.0dB-216") || (filename == "ProcessRawData-20150326-27.5dB-216") || (filename == "ProcessRawData-20150326-28.0dB-216") || (filename == "ProcessRawData-20150326-28.5dB-216")) { + parEta[0] = 1.; + parEta[1] = 200.; + parEta[2] = 6.; + parEta[3] = 0.; - return; + // parEta[4] = 0.5; + // parEta[5] = 2.5; + + parEta[6] = 180.; + parEta[7] = 220.; + + parEta[8] = 2.; + parEta[9] = 10.; + + // parEta[10] = -0.2; + // parEta[11] = 0.2; + } + + return; } void fitSCurve(string edge, TGraph *graph, TF1 *f, Float_t parSCurves[], Int_t lengthParSCurves, Float_t *a, Float_t *mu, Float_t *sigma, Float_t *b, Float_t *ua, Float_t *umu, Float_t *usigma, Float_t *ub) { - // Set parameter names. - f->SetParName(0,"a"); - f->SetParName(1,"#mu"); - f->SetParName(2,"#sigma"); - f->SetParName(3,"b"); + // Set parameter names. + f->SetParName(0,"a"); + f->SetParName(1,"#mu"); + f->SetParName(2,"#sigma"); + f->SetParName(3,"b"); - // Set parameters and parameter limits. - if (edge == "right") { - f->SetParameter(0,parSCurves[0]); - f->SetParameter(1,parSCurves[1]); - f->SetParameter(2,parSCurves[2]); - f->SetParameter(3,parSCurves[3]); - // f->SetParLimits(0,parSCurves[4],parSCurves[5]); - f->SetParLimits(1,parSCurves[6],parSCurves[7]); - f->SetParLimits(2,parSCurves[8],parSCurves[9]); - // f->SetParLimits(3,parSCurves[10],parSCurves[11]); - } - else if ((edge == "left") && (lengthParSCurves>12)) { - f->SetParameter(0,parSCurves[12]); - f->SetParameter(1,parSCurves[13]); - f->SetParameter(2,parSCurves[14]); - f->SetParameter(3,parSCurves[15]); - // f->SetParLimits(0,parSCurves[16],parSCurves[17]); - f->SetParLimits(1,parSCurves[18],parSCurves[19]); - f->SetParLimits(2,parSCurves[20],parSCurves[21]); - // f->SetParLimits(3,parSCurves[22],parSCurves[23]); - } + // Set parameters and parameter limits. + if (edge == "right") { + f->SetParameter(0,parSCurves[0]); + f->SetParameter(1,parSCurves[1]); + f->SetParameter(2,parSCurves[2]); + f->SetParameter(3,parSCurves[3]); + // f->SetParLimits(0,parSCurves[4],parSCurves[5]); + f->SetParLimits(1,parSCurves[6],parSCurves[7]); + f->SetParLimits(2,parSCurves[8],parSCurves[9]); + // f->SetParLimits(3,parSCurves[10],parSCurves[11]); + } + else if ((edge == "left") && (lengthParSCurves>12)) { + f->SetParameter(0,parSCurves[12]); + f->SetParameter(1,parSCurves[13]); + f->SetParameter(2,parSCurves[14]); + f->SetParameter(3,parSCurves[15]); + // f->SetParLimits(0,parSCurves[16],parSCurves[17]); + f->SetParLimits(1,parSCurves[18],parSCurves[19]); + f->SetParLimits(2,parSCurves[20],parSCurves[21]); + // f->SetParLimits(3,parSCurves[22],parSCurves[23]); + } - // Fit. - graph->Fit(f,"BR"); - - // Get parameters and parameter uncertainties. - *a = f->GetParameter(0); - *mu = f->GetParameter(1); - *sigma = f->GetParameter(2); - *b = f->GetParameter(3); - - *ua = f->GetParError(0); - *umu = f->GetParError(1); - *usigma = f->GetParError(2); - *ub = f->GetParError(3); - - cout << edge << " side, a = " << *a << ", mu = " << *mu << ", sigma = " << *sigma << ", b = " << *b << endl; - - return; + // Fit. + graph->Fit(f,"BR"); + + // Get parameters and parameter uncertainties. + *a = f->GetParameter(0); + *mu = f->GetParameter(1); + *sigma = f->GetParameter(2); + *b = f->GetParameter(3); + + *ua = f->GetParError(0); + *umu = f->GetParError(1); + *usigma = f->GetParError(2); + *ub = f->GetParError(3); + + cout << edge << " side, a = " << *a << ", mu = " << *mu << ", sigma = " << *sigma << ", b = " << *b << endl; + + return; } void fitMu(string edge, TGraph *graph, TF1 *f, Float_t *p0, Float_t *p1, Float_t *up0, Float_t *up1) { - // Set parameter names. - f->SetParName(0,"p_{0}"); - f->SetParName(1,"p_{1}"); + // Set parameter names. + f->SetParName(0,"p_{0}"); + f->SetParName(1,"p_{1}"); - // Fit. - f->SetLineColor(kRed); - graph->Fit(f,"BR"); - - // Get parameters and parameter uncertainties. - *p0 = f->GetParameter(0); - *p1 = f->GetParameter(1); + // Fit. + f->SetLineColor(kRed); + graph->Fit(f,"BR"); - *up0 = f->GetParError(0); - *up1 = f->GetParError(1); + // Get parameters and parameter uncertainties. + *p0 = f->GetParameter(0); + *p1 = f->GetParameter(1); - return; + *up0 = f->GetParError(0); + *up1 = f->GetParError(1); + + return; } void fitSigma(string edge, TGraph *graph, TF1 *f, Float_t parSigma[], Int_t lengthParSigma, Float_t *q0, Float_t *q1, Float_t *q2, Float_t *uq0, Float_t *uq1, Float_t *uq2) { - // Set parameter names. - f->SetParName(0,"q_{0}"); - f->SetParName(1,"q_{1}"); - f->SetParName(2,"q_{2}"); + // Set parameter names. + f->SetParName(0,"q_{0}"); + f->SetParName(1,"q_{1}"); + f->SetParName(2,"q_{2}"); - // Set parameters and parameter limits. - if (edge == "left") { - f->SetParameter(0,parSigma[0]); - f->SetParameter(1,parSigma[1]); - f->SetParameter(2,parSigma[2]); - f->SetParLimits(0,parSigma[3],parSigma[4]); - f->SetParLimits(1,parSigma[5],parSigma[6]); - // f->SetParLimits(2,parSigma[7],parSigma[8]); - } - else if (edge == "right") { - f->SetParameter(0,parSigma[9]); - f->SetParameter(1,parSigma[10]); - f->SetParameter(2,parSigma[11]); - f->SetParLimits(0,parSigma[12],parSigma[13]); - f->SetParLimits(1,parSigma[14],parSigma[15]); - // f->SetParLimits(2,parSigma[16],parSigma[17]); - } + // Set parameters and parameter limits. + if (edge == "left") { + f->SetParameter(0,parSigma[0]); + f->SetParameter(1,parSigma[1]); + f->SetParameter(2,parSigma[2]); + f->SetParLimits(0,parSigma[3],parSigma[4]); + f->SetParLimits(1,parSigma[5],parSigma[6]); + // f->SetParLimits(2,parSigma[7],parSigma[8]); + } + else if (edge == "right") { + f->SetParameter(0,parSigma[9]); + f->SetParameter(1,parSigma[10]); + f->SetParameter(2,parSigma[11]); + f->SetParLimits(0,parSigma[12],parSigma[13]); + f->SetParLimits(1,parSigma[14],parSigma[15]); + // f->SetParLimits(2,parSigma[16],parSigma[17]); + } - // Fit. - f->SetLineColor(kRed); - graph->Fit(f,"BR"); - - // Get parameters and parameter uncertainties. - *q0 = f->GetParameter(0); - *q1 = f->GetParameter(1); - *q2 = f->GetParameter(2); + // Fit. + f->SetLineColor(kRed); + graph->Fit(f,"BR"); - *uq0 = f->GetParError(0); - *uq1 = f->GetParError(1); - *uq2 = f->GetParError(2); + // Get parameters and parameter uncertainties. + *q0 = f->GetParameter(0); + *q1 = f->GetParameter(1); + *q2 = f->GetParameter(2); - return; + *uq0 = f->GetParError(0); + *uq1 = f->GetParError(1); + *uq2 = f->GetParError(2); + + return; } #endif