Micro1_E_row1=TF->GetMicroGroupEnergy(1,1,1,1,7);// energy sum from the row 1
Micro1_E_row1=TF->GetMicroGroupEnergy(1,1,1,1,7);// energy sum from the row 1
Micro1_E_col4=TF->GetMicroGroupEnergy(1,1,4,4,4);// energy sum from the col 4
//by Shuya 170912
Micro1_E_col4_sum=TF->GetMicroGroupEnergy(1,1,4,4,4);// energy sum from the col 4
//by Shuya 170516. Since Micro2_E is dE detector, we always expect the particles penetrate through the whole rows. That is why you should use GetMicroRowGeomEnergy() instead of GetMicroGroupEnergy().
//by Shuya 170516. Since Micro2_E is dE detector, we always expect the particles penetrate through the whole rows. That is why you should use GetMicroRowGeomEnergy() instead of GetMicroGroupEnergy().
//Micro2_E = TF->GetMicroGroupEnergy(2,1,4,1,7); // energy sum from all the pads
//Micro2_E = TF->GetMicroGroupEnergy(2,1,4,1,7); // energy sum from all the pads
Micro2_E=TF->GetMicroRowGeomEnergy(2,1,4,0);// energy sum from all the pads
Micro2_E=TF->GetMicroRowGeomEnergy(2,1,4,0);// energy sum from all the pads
Micro2_E_row1_2=TF->GetMicroGroupEnergy(2,1,2,1,7);// energy sum from row 3-6
Micro2_E_row1_2=TF->GetMicroGroupEnergy(2,1,2,1,7);// energy sum from row 3-6
//by Shuya 170516. For Micro1's energy sum, you need to choose which of GetMicroGroupEnergy() and GetMicroRowGeomEnergy(). If you're using the particles penetrate the Micro1, better to use GetMicroRowGeomEnergy().
//by Shuya 170516. For Micro1's energy sum, you need to choose which of GetMicroGroupEnergy() and GetMicroRowGeomEnergy(). If you're using the particles penetrate the Micro1, better to use GetMicroRowGeomEnergy().
Micro1_E_col1=TF->GetMicroGroupEnergy(1,1,4,1,1);// energy sum from the col 1
//by Shuya 170912
Micro1_E_col2=TF->GetMicroGroupEnergy(1,1,4,2,2);// energy sum from the col 2
Micro1_E_col1_sum=TF->GetMicroGroupEnergy(1,1,4,1,1);// energy sum from the col 1
Micro1_E_col3=TF->GetMicroGroupEnergy(1,1,4,3,3);// energy sum from the col 3
Micro1_E_col2_sum=TF->GetMicroGroupEnergy(1,1,4,2,2);// energy sum from the col 2
Micro1_E_col5=TF->GetMicroGroupEnergy(1,1,4,5,5);// energy sum from the col 5
Micro1_E_col3_sum=TF->GetMicroGroupEnergy(1,1,4,3,3);// energy sum from the col 3
Micro1_E_col6=TF->GetMicroGroupEnergy(1,1,4,6,6);// energy sum from the col 6
Micro1_E_col5_sum=TF->GetMicroGroupEnergy(1,1,4,5,5);// energy sum from the col 5
Micro1_E_col7=TF->GetMicroGroupEnergy(1,1,4,7,7);// energy sum from the col 7
Micro1_E_col6_sum=TF->GetMicroGroupEnergy(1,1,4,6,6);// energy sum from the col 6
Micro1_E_col7_sum=TF->GetMicroGroupEnergy(1,1,4,7,7);// energy sum from the col 7
Micro2_E_col1=TF->GetMicroRowGeomEnergy(2,1,4,1);// energy sum from the col1.
Micro2_E_col1_mult=TF->GetMicroRowGeomEnergy(2,1,4,1);// energy sum from the col1.
Micro2_E_col2=TF->GetMicroRowGeomEnergy(2,1,4,2);// energy sum from the col2.
Micro2_E_col2_mult=TF->GetMicroRowGeomEnergy(2,1,4,2);// energy sum from the col2.
Micro2_E_col3=TF->GetMicroRowGeomEnergy(2,1,4,3);// energy sum from the col3.
Micro2_E_col3_mult=TF->GetMicroRowGeomEnergy(2,1,4,3);// energy sum from the col3.
Micro2_E_col4=TF->GetMicroRowGeomEnergy(2,1,4,4);// energy sum from the col4.
Micro2_E_col4_mult=TF->GetMicroRowGeomEnergy(2,1,4,4);// energy sum from the col4.
Micro2_E_col5=TF->GetMicroRowGeomEnergy(2,1,4,5);// energy sum from the col5.
Micro2_E_col5_mult=TF->GetMicroRowGeomEnergy(2,1,4,5);// energy sum from the col5.
Micro2_E_col6=TF->GetMicroRowGeomEnergy(2,1,4,6);// energy sum from the col6.
Micro2_E_col6_mult=TF->GetMicroRowGeomEnergy(2,1,4,6);// energy sum from the col6.
Micro2_E_col7=TF->GetMicroRowGeomEnergy(2,1,4,7);// energy sum from the col7.
Micro2_E_col7_mult=TF->GetMicroRowGeomEnergy(2,1,4,7);// energy sum from the col7.
//by Shuya 170912
Micro1_E_col1_mult=TF->GetMicroRowGeomEnergy(1,1,4,1);// energy sum from the col1.
Micro1_E_col2_mult=TF->GetMicroRowGeomEnergy(1,1,4,2);// energy sum from the col2.
Micro1_E_col3_mult=TF->GetMicroRowGeomEnergy(1,1,4,3);// energy sum from the col3.
Micro1_E_col4_mult=TF->GetMicroRowGeomEnergy(1,1,4,4);// energy sum from the col4.
Micro1_E_col5_mult=TF->GetMicroRowGeomEnergy(1,1,4,5);// energy sum from the col5.
Micro1_E_col6_mult=TF->GetMicroRowGeomEnergy(1,1,4,6);// energy sum from the col6.
Micro1_E_col7_mult=TF->GetMicroRowGeomEnergy(1,1,4,7);// energy sum from the col7.
Micro2_E_col1_sum=TF->GetMicroGroupEnergy(2,1,4,1,1);// energy sum from the col 1
Micro2_E_col2_sum=TF->GetMicroGroupEnergy(2,1,4,2,2);// energy sum from the col 2
Micro2_E_col3_sum=TF->GetMicroGroupEnergy(2,1,4,3,3);// energy sum from the col 3
Micro2_E_col4_sum=TF->GetMicroGroupEnergy(2,1,4,4,4);// energy sum from the col 3
Micro2_E_col5_sum=TF->GetMicroGroupEnergy(2,1,4,5,5);// energy sum from the col 5
Micro2_E_col6_sum=TF->GetMicroGroupEnergy(2,1,4,6,6);// energy sum from the col 6
Micro2_E_col7_sum=TF->GetMicroGroupEnergy(2,1,4,7,7);// energy sum from the col 7
}
}
else
else
{
{
Micro1_E_row1=-1000;
Micro1_E_row1=-1000;
Micro1_E_col4=-1000;
//by Shuya 170912
Micro1_E_col4_sum=-1000;
Micro1_E_row1_2=-1000;
Micro1_E_row1_2=-1000;
Micro2_E_row1_2=-1000;
Micro2_E_row1_2=-1000;
Micro2_E=-1000;
Micro2_E=-1000;
//by Shuya 170516
//by Shuya 170516
Micro1_E_col1=-1000;
//by Shuya 170912
Micro1_E_col2=-1000;
Micro1_E_col1_sum=-1000;
Micro1_E_col3=-1000;
Micro1_E_col2_sum=-1000;
Micro1_E_col5=-1000;
Micro1_E_col3_sum=-1000;
Micro1_E_col6=-1000;
Micro1_E_col5_sum=-1000;
Micro1_E_col7=-1000;
Micro1_E_col6_sum=-1000;
Micro2_E_col1=-1000;
Micro1_E_col7_sum=-1000;
Micro2_E_col2=-1000;
Micro2_E_col1_sum=-1000;
Micro2_E_col3=-1000;
Micro2_E_col2_sum=-1000;
Micro2_E_col4=-1000;
Micro2_E_col3_sum=-1000;
Micro2_E_col5=-1000;
Micro2_E_col4_sum=-1000;
Micro2_E_col6=-1000;
Micro2_E_col5_sum=-1000;
Micro2_E_col7=-1000;
Micro2_E_col6_sum=-1000;
Micro2_E_col7_sum=-1000;
//by Shuya 170912
Micro1_E_col1_mult=-1000;
Micro1_E_col2_mult=-1000;
Micro1_E_col3_mult=-1000;
Micro1_E_col4_mult=-1000;
Micro1_E_col5_mult=-1000;
Micro1_E_col6_mult=-1000;
Micro1_E_col7_mult=-1000;
Micro2_E_col1_mult=-1000;
Micro2_E_col2_mult=-1000;
Micro2_E_col3_mult=-1000;
Micro2_E_col4_mult=-1000;
Micro2_E_col5_mult=-1000;
Micro2_E_col6_mult=-1000;
Micro2_E_col7_mult=-1000;
}
}
// Delta E ion chamber
// Delta E ion chamber
...
@@ -423,9 +482,10 @@ void Analysis::TreatEvent(){
...
@@ -423,9 +482,10 @@ void Analysis::TreatEvent(){
for(inti=0;i<kNumAw;++i){
for(inti=0;i<kNumAw;++i){
if(Aw_X[i]!=-1000){++numValid;}
if(Aw_X[i]!=-1000){++numValid;}
if(numValid==2){// at least 2 points to calculate an angle
if(numValid==2){// at least 2 points to calculate an angle
//by Shuya 170905 - uncomment the second one and comment out the first one if you want to have a MicroMegas_dE Timing data in an appropriate Tree (not PlastLeftTime).
//Note with this, you can't get timing data in neither TacSiMicro_dE or TacSiMicro_E. Only TacSiMicro take the data equivalent to TacSiMicro_E, and TacSiMicro_dE goes to PlastLeftTime due to the setting in t40.txt configuration file.