MUST2 SAMURAI_2018 S3-LEB-LPC SUPERNEMO MUGAST EXPAND SCALP GALATRON HiCARI VELO
  MUST2, Page 28 of 48  Not logged in MUST2
Statusdown ExpNbr Date Author Type Category Target-Source Subject
Fixede744 Fri May 25 21:37:45 2018 iulian nicolas valérieRUNGeneralN/Arun 1012 all triggers 14O beam in D4
Attachment 1: Run1012_E1_TcatsHF.png
Run1012_E1_TcatsHF.png
Attachment 2: Run1012_E1_T1HF_D6.png
Run1012_E1_T1HF_D6.png
Fixede744 Fri May 25 22:03:12 2018 e744 Must2+LISE teamsRUNGeneralCH2RUNS 2000, 2001
Beam 14O
Run 2000 start with all triggers, including LISE trigger, during 1 minute for tests.
start 22:00:58; stop

Run 2001 start 25-05-18_22h01m19s ; stop 22h15
Run 2002 start 25-05-18_22h16m01s ;stop 22h30 problem
Run 2003 start at 22:16 stop 22:30 DAQ blocked
No Lise trigger; All trigger MUST2, CatsDiv, Div =3.10**4
EXL div 300; PPT div 100
CATS from 440-500 pps
opening FH31 slits

Target n°6 CH2

signed by the LISE Jean-Charles, Luc, and MUST2 teams, Iulan, Valérian, Fairouz, Nicolas, Valérie, Valdir

NB the MMimpact plot showed that T4 was not counting. Ord 4 was not counting in the scalers.
>>>>>>>>>>>>>>>Telescope T4 Dssd has tripped during run 2002-2003 cf MMimpactRun2003.png
Thne HT on T4 was put on for next runs, see Run 2005,... in the next entries.
Attachment 1: ProblemStartStop2002Narval.png
ProblemStartStop2002Narval.png
Attachment 2: MMimpactRun2003.png
MMimpactRun2003.png
Attachment 3: Run2001_MMimpact14O.png
Run2001_MMimpact14O.png
Attachment 4: Scalers_duringRun2002.png
Scalers_duringRun2002.png
Attachment 5: Scalers_duringRun2003.png
Scalers_duringRun2003.png
Attachment 6: HT_MUST2afterSettingT4ON.png
HT_MUST2afterSettingT4ON.png
Fixede744 Fri May 25 22:46:26 2018 e744 Must2+LISE teams, edit ValérieRUNGeneralCH2RUN 2004

Run 2004 Date : 25/05/2018 22:45:58 25/05/2018 23:17:39
End of Run, error Narval see snapshot ProblemNarvalRCCEndRun2004.png

14O beam ; Target n°6 CH2
trig MUST2, CATS, EXL, PPT
T4 ON HT after trip>>>>>>>>>>cf PLOT HT ON
No Lise trigger; All trigger MUST2, CatsDiv, Div =3.10**4
EXL div 300; PPT div 100
CATS 2 10**5 pps

MUST2 thresholds at 1 MeV for all Telescopes
ConfigDASThresTel5at1MeV.png ConfigDASThresMUST2at1MeV.png
NB: problem on EXL ch17 and ch18 cf EXLCsIRawPROBLEMCh17and18Run2004.png

signed by the LISE Jean-Charles, Luc, and MUST2 teams, Iulan, Valérian, Fairouz, Nicolas, Valérie, Valdir

Attachment 1: ConfigDASThresTel5at1MeV.png
ConfigDASThresTel5at1MeV.png
Attachment 2: ConfigDASThresMUST2at1MeV.png
ConfigDASThresMUST2at1MeV.png
Attachment 3: scalersDuringRun2004.png
scalersDuringRun2004.png
Attachment 4: EXLCsIRawPROBLEMCh17and18Run2004.png
EXLCsIRawPROBLEMCh17and18Run2004.png
Attachment 5: ProblemNarvalRCCEndRun2004.png
ProblemNarvalRCCEndRun2004.png
Attachment 6: HT_MUST2afterSettingT4ON.png
HT_MUST2afterSettingT4ON.png
Fixede744 Fri May 25 23:26:23 2018 e744 Must2+LISE teams, edit ValérieRUNGeneralCH2START NARVAL, new version
the NARVAL version is now reinstalled by Fred Saillant.
see plot ResolProblemNarvalEndofRun25may23h.png
Attachment 1: ResolProblemNarvalEndofRun25may23h.png
ResolProblemNarvalEndofRun25may23h.png
Fixede744 Fri May 25 23:33:27 2018 iulianOTHERHardwareCH2changes after run 2004
Target was changed to target number 5 (CH2 100 um GOODFELLOW)
The T_EXL1718 ok

NB: Tcats delay is 300ns (since this afternoon)
Attachment 1: impact_matrix_run_2005.png
impact_matrix_run_2005.png
Fixede744 Sat May 26 00:24:50 2018 e744 valérieDAQGeneralCH2change of trigger and division
TRIGGER entry for CATS, presently IN8, seems to be not running. We put it on IN7(Gatconf =64).
divisions EXL 10**4
PPT 3000
CATS 3 10**4
Attachment 1: TRIGGERgmtChangedForCATS.png
TRIGGERgmtChangedForCATS.png
Fixede744 Sat May 26 00:38:38 2018 e744 all night shift teams, (edit) ValérieRUNGeneralCH2Run 2010
RUN 2010
Date : 26/05/2018 00:37:44
Target n°5 CH2 100 µm
140 all triggers except LISE
TRIGGER entry for CATS IN7 (Gatconf =64).
divisions EXL 10**4
PPT 3000
CATS 3 10**4
--------------------------------------------------
thresholds on all MUST2 : 1 MeV
pedestals CsI (high thr, haut seuil) 8210 ; (low thr, bas seuil) 8160
check GMT chronogramme GMT Master Val 2.5 µs.
- - - - - - - - - -
cf MM impacts at 00h53:Run2010_impactMM_14O_26may.png
1h18 Run2010MMimpactStatat1h18.pngand at 1h53 Run2010MMimpactStatat1h53.png

Signed by shift team, Iulan, Valérian, Valérie
-----------------------------
Missing strips:
x
MM1 1
MM2 5
MM3 0
MM4 2
MM5 0
y:
MM1 3
MM2 1
MM3 0
MM4 6
MM5 3
Attachment 1: scalersDuringRun2010.png
scalersDuringRun2010.png
Attachment 2: Run2010_impactMM_14O_26may.png
Run2010_impactMM_14O_26may.png
Attachment 3: Run2010_allTAC.png
Run2010_allTAC.png
Attachment 4: Run2010_MM5allstrXEYT.png
Run2010_MM5allstrXEYT.png
Attachment 5: Run2010_MMstrYT.png
Run2010_MMstrYT.png
Attachment 6: Run2010_MMstrXT.png
Run2010_MMstrXT.png
Attachment 7: Run2010_MMstrYE.png
Run2010_MMstrYE.png
Attachment 8: Run2010_MMstrxE.png
Run2010_MMstrxE.png
Attachment 9: Run2010_refTACpptHF.png
Run2010_refTACpptHF.png
Attachment 10: Run2010_impactMM_14O_26may.png
Run2010_impactMM_14O_26may.png
Attachment 11: Run2010MMimpactStatat1h53.png
Run2010MMimpactStatat1h53.png
Attachment 12: Run2010MMimpactStatat1h18.png
Run2010MMimpactStatat1h18.png
Attachment 13: Run2010MM_IMPACT2h32.png
Run2010MM_IMPACT2h32.png
Attachment 14: Run2010MMstrYT2h31.png
Run2010MMstrYT2h31.png
Attachment 15: Run2010MMstrXT2h30.png
Run2010MMstrXT2h30.png
Attachment 16: Run2010MMstrYE2h29.png
Run2010MMstrYE2h29.png
Attachment 17: Run2010MMstrX2h28.png
Run2010MMstrX2h28.png
Attachment 18: Run2010MM5allstr2h27.png
Run2010MM5allstr2h27.png
Attachment 19: Run2010TAC2h26.png
Run2010TAC2h26.png
Attachment 20: GATCONF_run2010.png
GATCONF_run2010.png
Fixede744 Sat May 26 01:41:19 2018 e744 night shift team, edit valérieDAQGeneralCH2summary GMT, DAS config since run2005
Triggers: all except LISE

IN1 to IN5 : MM1 to MM5;
IN7: CATS
IN10: PPt; IN11: EXL
(IN13:LISE not in the trigger)
DIV CATS = 3. 10**4
DIV EXL = 10**4
DIV PPT= 3000
divisions EXL
PPT
CATS 3 10**4
--------------------------------------------------
thresholds on all MUST2 : 1 MeV
pedestals CsI (high thr, haut seuil) 8210 ; (low thr, bas seuil) 8160
Run 14O check GMT chronogramme GMT Master Val 2.5 µs. chronoGMTmasterRun14O.png
GMT slave chronogramGMTslave_Run14O.png
Attachment 1: chronoGMTmasterRun14O.png
chronoGMTmasterRun14O.png
Attachment 2: chronogramGMTslave_Run14O.png
chronogramGMTslave_Run14O.png
Attachment 3: ConfigDASThresMUST2at1MeV.png
ConfigDASThresMUST2at1MeV.png
Attachment 4: ConfigTDCTestParamInpectch0.png
ConfigTDCTestParamInpectch0.png
Fixede744 Sat May 26 02:39:18 2018 Mihai, PedjaRUNGeneralCH2Run 2011, Target n°5
RUN 2011
Date : 26/05/2018
Beam used: 14O
Start: 2h26
Stop: 4h21


-----------------------------
Missing strips:
x
MM1 1
MM2 6
MM3 0
MM4 2
MM5 0
y:
MM1 3
MM2 1
MM3 0
MM4 7
MM5 3.5
Attachment 1: Scqlers_start_run2011.png
Scqlers_start_run2011.png
Attachment 2: Run2011MM_IMPACT3h51.png
Run2011MM_IMPACT3h51.png
Attachment 3: Run2011MMstrYT3h50.png
Run2011MMstrYT3h50.png
Attachment 4: Run2011MMstrXT3h50.png
Run2011MMstrXT3h50.png
Attachment 5: Run2011MMstrYE3h49.png
Run2011MMstrYE3h49.png
Attachment 6: Run2011MMstrX3h48.png
Run2011MMstrX3h48.png
Attachment 7: Run2011MM5allstr3h46.png
Run2011MM5allstr3h46.png
Attachment 8: Run2011TAC3h45.png
Run2011TAC3h45.png
Attachment 9: Scalers_stop_run2011.png
Scalers_stop_run2011.png
Fixede744 Sat May 26 04:24:16 2018 Mihai, PedjaRUNGeneralCH2Run 2012, Target n°5
RUN 2012
Date : 26/05/2018
Beam used: 14O
Start: 4h23
Stop: 4h57

suspect the target is too thick, low resonances seen... run stopped in order to check it.


-----------------------------
Missing strips:
x
MM1 1
MM2 6
MM3 0
MM4 2
MM5 0
y:
MM1 3
MM2 1
MM3 0
MM4 7
MM5 3
Attachment 1: Scalers_start_run2012.png
Scalers_start_run2012.png
Fixede744 Sat May 26 05:16:12 2018 Iulian Valerian, pedja, mihaiTARGETGeneralCH2Target change
Target No 4 is placed in-beam 5h15.
Fixede744 Sat May 26 05:23:12 2018 Mihai, PedjaRUNGeneralCH2Run 2013, Target n°4
RUN 2013
Date : 26/05/2018
Beam used: 14O
Start: 5h18
Stop: 5h48




-----------------------------
Missing strips:
x
MM1 1
MM2 6
MM3 0
MM4 2
MM5 0
y:
MM1 3
MM2 1
MM3 0
MM4 7
MM5 3
Attachment 1: Scalers_start_run2013.png
Scalers_start_run2013.png
Attachment 2: Run2014MM_IMPACT5h53.png
Run2014MM_IMPACT5h53.png
Fixede744 Sat May 26 05:51:00 2018 Mihai, PedjaRUNGeneralCH2Run 2014, Target n°4
RUN 2014
Date : 26/05/2018
Beam used: 14O
Start: 5h50
Stop: 7h19

Stopped, because no beam due to a vacuum problem on CSS1



-----------------------------
Missing strips:
x
MM1 1
MM2 6
MM3 0
MM4 2
MM5 0
y:
MM1 3
MM2 1
MM3 0
MM4 7
MM5 3
Attachment 1: Scalers_start_run2014.png
Scalers_start_run2014.png
Attachment 2: Run2014MM_IMPACT6h12.png
Run2014MM_IMPACT6h12.png
Attachment 3: GATCONF_run2014.png
GATCONF_run2014.png
Attachment 4: Run2014TAC6h13.png
Run2014TAC6h13.png
Attachment 5: Run2014MM5allstr6h14.png
Run2014MM5allstr6h14.png
Attachment 6: Run2014MMstrX6h15.png
Run2014MMstrX6h15.png
Attachment 7: Run2014MMstrYE6h16.png
Run2014MMstrYE6h16.png
Attachment 8: Run2014MMstrXT6h17.png
Run2014MMstrXT6h17.png
Attachment 9: Run2014MMstrYT6h17.png
Run2014MMstrYT6h17.png
Fixede744 Sat May 26 06:05:13 2018 Iulian Valerian PedjiaTARGETGeneralCH2Target issue No5
In the attached figure it could be seen that with the target No5 (run 2010) lower energy resonances were visible (lower part of the figure), which is not the case with the target No4 (upper part)from run 2013.

GOODFELLOW or mounting error?
Attachment 1: Target_Issue_2004_2010_corrected_withGeorgesTarget.png
Target_Issue_2004_2010_corrected_withGeorgesTarget.png
Fixede744 Sat May 26 09:33:48 2018 Giuseppe, DieterRUNGeneralCH2run 2015
Missing strips:
x
MM1 1
MM2 6
MM3 0
MM4 2
MM5 0
y:
MM1 3
MM2 1
MM3 0
MM4 7
MM5 3

Attachment 2: Scalers_stop_run2015.png
Scalers_stop_run2015.png
Attachment 3: MUST2_y_ongoing_run2018.png
MUST2_y_ongoing_run2018.png
Fixede744 Sat May 26 10:03:37 2018 Giuseppe, DieterRUNGeneral run 2016& 2017


Problems with the ACQ (merger), they were solved by making Breakup and Init
run2016 start@9:45 stop @9:47 (bad run)
run2017 start@9:48 stop @9:49 (bad run)
Fixede744 Sat May 26 11:19:37 2018 Giuseppe, DieterRUNGeneralCH2interruption due to to waterleak ibn CSS1
10:50 h Water leak at CSS1
cryo pumps have to be regenerated
continuation until the expert intervention starts is possible
presently waiting for resubmission of the beam

11:40 h started new run (run2019 - see next entry)

11:43 h another leak occurred and it was decided to stop the beam, data taking continues
Fixede744 Sat May 26 11:42:03 2018 Giuseppe, DieterRUNGeneralCH2run 2019
Run 2019


start@ 11:40 26/05/2018
stop @ 11:52

the beam intensity dropped to 22 pps so we stopped
Attachment 1: scalers_start_run2019.png
scalers_start_run2019.png
Attachment 2: scalers_stop_run2019.png
scalers_stop_run2019.png
Fixede744 Sat May 26 14:03:27 2018 Giuseppe, Dieter, J. EricRUNGeneralCH2Run 2020
run 2020


start@ 14:02 26/05/2018
stop @ 15:20 26/05/2018
Missing strips:
x
MM1 1
MM2 6
MM3 0
MM4 2
MM5 0
y:
MM1 3
MM2 1
MM3 0
MM4 7
MM5 3
Attachment 1: scalers_start_run2020.png
scalers_start_run2020.png
Attachment 2: scalers_stop_run2020.png
scalers_stop_run2020.png
Attachment 3: MM_STRX_RAW_stop_run2020.png
MM_STRX_RAW_stop_run2020.png
Attachment 4: MM_STRY_RAW_stop_run2020.png
MM_STRY_RAW_stop_run2020.png
Attachment 5: MM1_RAW_stop_run2020.png
MM1_RAW_stop_run2020.png
Attachment 6: MM5_RAW_stop_run2020.png
MM5_RAW_stop_run2020.png
Attachment 7: MM_IMPACT_MATRIX_stop_run2020.png
MM_IMPACT_MATRIX_stop_run2020.png
Attachment 8: EXL_stop_run2020.png
EXL_stop_run2020.png
Attachment 9: T_stop_run2020.png
T_stop_run2020.png
Fixede744 Sat May 26 16:31:53 2018 Jaromir, GiuseppeEXL-PPTSoftwareN/AEXL calibration, light leak
Selector.C can be used to adjust energy bad reconstruction in the EXL detectors due to energy leak (see the PDF attached for more information about it) once we already have the coefficients for the energy on EXL crystals. To operate with it, for first calibration coefficient must be deduced. Once it is done the slopes and offset of the calibration have to be inserted in Selector.C file at lines 41 (a[19]) and at line 49 (b[19]). After thqt thresholds must be fixed (line 58, tr[19]) and also gains on the pairs. We deduced gains as the ratio between x-axis and y-axis of each uncalibrated matrix: for each pair (1-2,3-4,5-6,...,17-18) we took the ratio between x=2000;4000;6000 and the respective y value, and y=2000;4000;6000 and the respective x values. taking the averages of those ratios; those were than used as the coefficients R1ex[9] and R2ex[9] in Selector.C (all information on those values and how are used are in EXL.pdf).
Once the variables are set, the program can be executed using the batch file in attachement by typing the line root rootdir/run_number.root -b batch -q from terminal. Here "run_number" is the name of the run to use. It will generate then a .root file (in attachement some output file for run 0430.root). Now the name is "whatever_output.root", and can be changed from "Selector.C"
The program also provides randomization of bins for the operation of sym between contiguous crystals
Attachment 1: batch
{

AutoTree->Process("Selector.C")
}
Attachment 2: Selector.C
#define Selector_cxx
// The class definition in Selector.h has been generated automatically
// by the ROOT utility TTree::MakeSelector(). This class is derived
// from the ROOT class TSelector. For more information on the TSelector
// framework see $ROOTSYS/README/README.SELECTOR or the ROOT User Manual.


// The following methods are defined in this file:
//    Begin():        called every time a loop on the tree starts,
//                    a convenient place to create your histograms.
//    SlaveBegin():   called after Begin(), when on PROOF called only on the
//                    slave servers.
//    Process():      called for each event, in this function you decide what
//                    to read and fill your histograms.
//    SlaveTerminate: called at the end of the loop on the tree, when on PROOF
//                    called only on the slave servers.
//    Terminate():    called at the end of the loop on the tree,
//                    a convenient place to draw/fit your histograms.
//
// To use this file, try the following session on your Tree T:
//
// root> T->Process("Selector.C")
// root> T->Process("Selector.C","some options")
// root> T->Process("Selector.C+")
//


#include "Selector.h"
#include <TH2.h>
#include <TStyle.h>

//================================SETTINGS ========
const int chanmax=8000;
const int bins2d=800;

//const long eventsmax=2e+10;
const long eventsmax=1e+6;

//calibration-------------EXL   19 - 1st is zero

double a[19]={0.,
0.668983,0.519247,0.5649,
0.600488,0.579928,0.598377,
0.540216,0.488096,0.610848,
0.560869, 0.503247,0.464832,
0.848081,0.792648,0.799,	
0.426236,0.485055,0.492694};

double b[19]={0.,
 -71.1150, 132.36, 71.2,
 -58.9582, 72.8547, -56.2703,
 91.2014, 95.1007, 9.26351,
 -2.42136, 86.8976,  105.457,
 45.8667, 68.9514,2.84729,
 18.4952, 18.7380, 116.032};

//thresholds EXL
double tr[19]={0,
140.,140.,140.,
140.,140.,140.,
140.,140.,140.,
140.,140.,140.,
140.,140.,140.,
140.,140.,140.
};


// Experimental factor R1ex from MTX: includes gain G1
//  the theoretical factor R1 should be used in correction

// higher positive slope line - like exl1,3,5 signals
double R1ex[9]={
 0.14,0.18,0.15,
 0.16,0.18,0.16, 
 0.15,0.42,0.17
};
// lower positive slope line - like exl2,4,6 signal
double R2ex[9]={
 0.16,0.15,0.14,
 0.15,0.15,0.16, 
 0.16,0.15,0.16
};

//--- we compute gain ratio later
double G1comp[9];


// arbitrarym good around 1.0
// we recalculate later
double G2gain[9]={
  2616., 2368., 2639.,
  2717.,  2728., 4308., 
  1822.,  3168., 2796.
};
double G2gain_factor=3000.;

//=============================SETTTING   END _-------



void Selector::Begin(TTree * /*tree*/)
{
   // The Begin() function is called at the start of the query.
   // When running with PROOF Begin() is only called on the client.
   // The tree argument is deprecated (on PROOF 0 is passed).

  char ch1[100];
  char ch2[100];
   TString option = GetOption();
   printf("beginning the process\n%s","");

   //  HISTO DEFINITIONS-------------------

   for (int i=0;i<18;i++){
     //  SINGLES
     sprintf(ch1, "exl%02d", i+1 );
     sprintf(ch2, "%s   SINGLES", ch1 );
     exl[i]=new TH1F(ch1,ch2,chanmax,0,chanmax);
   }
   for (int i=0;i<18;i++){
     //  SINGLES CALIB
     sprintf(ch1, "exlcal%02d", i+1 );
     sprintf(ch2, "%s   SINGLES CALIB", ch1 );
     exlcal[i]=new TH1F(ch1,ch2,chanmax,0,chanmax);
   }

   exl_singlesum=new TH1F("exlcalSUM","TOTAL SUM of SINGLES / useful4 online",chanmax,0,chanmax);   
   exl_pairsum=new TH1F("pairSUM","TOTAL SUM of summed pairs/ wrong concept",chanmax,0,chanmax);

   complete_pairs=new TH1F("complpairs","pair hits in the matrix",18,0,18);
   incomplete_pairs=new TH1F("cincomppairs","single hits in pairs in the matrix",18,0,18);

   // BIDIM--------------------------------------


   for (int i=0;i<9;i++){
     //  PAIRS
     int j1=i*2+1;
     int j2=i*2+2;
     sprintf(ch1, "pair%02d%02d",  j1, j2);
     sprintf(ch2, "%s   PAIRS", ch1 );
     expair[i]=new TH2F(ch1,ch2,bins2d,0,chanmax,bins2d,0,chanmax);
   }
   for (int i=0;i<9;i++){
     //  PAIRS  CALIB
     int j1=i*2+1;
     int j2=i*2+2;
     sprintf(ch1, "paircal%02d%02d",  j1, j2);
     sprintf(ch2, "%s   PAIRS CALIB", ch1 );
     expaircal[i]=new TH2F(ch1,ch2,bins2d,0,chanmax,bins2d,0,chanmax);
   }
   for (int i=0;i<9;i++){
     //  SUMPAIRS SINGLE 
     int j1=i*2+1;
     int j2=i*2+2;
     sprintf(ch1, "paircalsum%02d%02d",  j1, j2);
     sprintf(ch2, "%s   SINGLES = PAIRS CALIBrated AND SUMMED, energy restored", ch1 );
     exlsumpair[i]=new TH1F(ch1,ch2,chanmax,0,chanmax);
   }




   for (int i=0;i<6;i++){
     //  HNEIGH
     int j1=i*2+2;
     if (j1>=6){ j1=j1+2;}
     if (j1>=12){ j1=j1+2;}
     sprintf(ch1, "hneig%02d%02d", j1,j1+1 );
     sprintf(ch2, "%s   HNEIGHBOR", ch1 );
     exhneig[i]=new TH2F(ch1,ch2,bins2d,0,chanmax,bins2d,0,chanmax);
   }
   for (int i=0;i<12;i++){
     //  VNEIGH
     int j1=i+1;
     sprintf(ch1, "vneigh%02d%02d", j1,j1+6 );
     sprintf(ch2, "%s   VNEIGHBOR", ch1 );
     exvneig[i]=new TH2F(ch1,ch2,bins2d,0,chanmax,bins2d,0,chanmax);
   }


   //compensation for GAIN1 - odd crystals
   for (int i=0;i<9;i++){
     // 2/1 bad sums
     G1comp[i]=TMath::Sqrt( R2ex[i]/R1ex[i] )*1.;  // G2==1
     //     G1comp[i]=TMath::Sqrt( R1ex[i]/R2ex[i] )*1.;  // G2==1 wrong

     printf("%d   %f\n",i,G1comp[i] );
   }

} //==========BEGIN END-------------------------------------------











void Selector::SlaveBegin(TTree * /*tree*/)
{
   // The SlaveBegin() function is called after the Begin() function.
   // When running with PROOF SlaveBegin() is called on each slave server.
   // The tree argument is deprecated (on PROOF 0 is passed).

   TString option = GetOption();

}







// invert matrix
//  for every event from PAIR matrix :  restore the energy
//-------------------------
//    
//
Bool_t Selector::inverse_mtx(  int i9 ){
  // i take raw channel
  int ii=2*i9+1;
  int jj=2*i9+2;
  double e1=EXL->GetEnergyCrystalNumber( ii );
  double e2=EXL->GetEnergyCrystalNumber( jj );
  if (e1<=tr[ii]) return kFALSE;
  if (e2<=tr[jj]) return kFALSE;

  // we try to substract the offset first
  //   a*k+b     c*(k-d) =>  b/a=d
  e1=e1-b[ii]/a[ii];
  e2=e2-b[jj]/a[jj];

  // determine Gain1 from alpha=beta
  double G2=G2gain[i9]/G2gain_factor;
  double G1=TMath::Sqrt( R2ex[i9]/R1ex[i9] )* G2;
  double R= R2ex[i9]*G2/G1; // get to the R1==R2 (alpha==beta)
  double alpha=R/(R+1.0);// from Zamoram /easy
  double beta=alpha;     // both axes have the same leak
  double fact=G1*(1-alpha)*G2*(1-beta)-G1*G2*alpha*beta;
  fact=1.0/fact;
  //matrix"
  double N1=fact*(G2*(1-beta)*e1 - G1*alpha *e2);
  double N2=fact*(G1*(1-alpha)*e2 - G2*beta *e1);

  expaircal[i9]->Fill( N1,N2 );

  return kTRUE;
}





Bool_t Selector::is_in_pair(  int ii, int jj ){
  double e1=EXL->GetEnergyCrystalNumber( ii );
  double e2=EXL->GetEnergyCrystalNumber( jj );
  if (e1<=tr[ii]) return kFALSE;
  if (e2<=tr[jj]) return kFALSE;

  // e1=a[ii]+b[ii];
  // e2=a[jj]+b[jj];

  return kTRUE;
}



Bool_t Selector::Process(Long64_t entry)
{
   // The Process() function is called for each entry in the tree (or possibly
   // keyed object in the case of PROOF) to be processed. The entry argument
   // specifies which entry in the currently loaded tree is to be processed.
   // When processing keyed objects with PROOF, the object is already loaded
   // and is available via the fObject pointer.
   //
   // This function should contain the \"body\" of the analysis. It can contain
   // simple or elaborate selection criteria, run algorithms on the data
   // of the event and typically fill histograms.
   //
   // The processing can be stopped by calling Abort().
   //
   // Use fStatus to set the return value of TTree::Process().
   //
   // The return value is currently not used.


  double e,e1,e2, f,g;


   fReader.SetEntry(entry);
   count=count+1;	
  if (count> eventsmax){
    if (count==eventsmax+1)printf("Free ride now%s\n","");
    //Abort("just abort");
 
... 170 more lines ...
Attachment 3: EXL.pdf
EXL.pdf EXL.pdf EXL.pdf EXL.pdf EXL.pdf EXL.pdf EXL.pdf
Attachment 4: pairs0102_0910.pdf
pairs0102_0910.pdf
Attachment 5: pairs1112_1718.pdf
pairs1112_1718.pdf

ELOG Home Page