6.5.2011 Kamil Sedlak
1) Adding/improving the simulation of light signals and APD 2) Many small changes and improvements 3) Adding manual to musrSimAna to the svn repository 4) Adding some example files for musrSim
This commit is contained in:
160
musrSimAna/201.v1190
Normal file
160
musrSimAna/201.v1190
Normal file
@ -0,0 +1,160 @@
|
||||
# TDC V1190 Set up file generated by Deltat : 16-Apr-2008 10:30:27
|
||||
# bins are always in TDC channel units (195.3125 ps/channel)
|
||||
|
||||
INSTRUMENT=GPS
|
||||
|
||||
DESCRIPTION=No Veto -- 1port
|
||||
TYPE=TDCV1190
|
||||
RESOLUTION=100
|
||||
|
||||
MDELAY=0
|
||||
PDELAY=2000
|
||||
#REWINDTIMEBINS=10000000
|
||||
|
||||
MCOINCIDENCEW=50
|
||||
PCOINCIDENCEW=50
|
||||
VCOINCIDENCEW=100
|
||||
|
||||
# 30000 mu/s
|
||||
MUONRATEFACTOR=0.0965819
|
||||
#INFINITELYLOWMUONRATE
|
||||
|
||||
DATAWINDOWMIN=-2.
|
||||
DATAWINDOWMAX=10.0
|
||||
PILEUPWINDOWMIN=-10.0
|
||||
PILEUPWINDOWMAX=10.0
|
||||
|
||||
102; "M up"; M; 0.4; 2005; ;
|
||||
1; "B1"; P; 0.4; 2005; ; B1; 1485; 1515; 50995;
|
||||
2; "B2"; P; 0.4; 2005; ; B2; 1485; 1515; 50995;
|
||||
11; "F1"; P; 0.4; 2005; ; F11; 1485; 1515; 50995;
|
||||
12; "F2"; P; 0.4; 2005; ; F12; 1485; 1515; 50995;
|
||||
13; "F3"; P; 0.4; 2005; ; F13; 1485; 1515; 50995;
|
||||
! 21; "Coinc B1" K; 0.4; 2005;
|
||||
! 22; "Coinc B2" K; 0.4; 2005;
|
||||
!401; "Act Veto" V; 0.1; 2005;
|
||||
! 3; "F right"; K; 0.4; 1263;
|
||||
! 4; "B left"; P; 0.2; 1311; 5 -10 -11 -12 -13; Back; 1485; 1515; 50995;
|
||||
! 5; "B right"; K; 0.2; 1262;
|
||||
! 6; Up; P; 0.2; 1306; -10 -11 -12 -13; Up; 1490; 1520; 51000;
|
||||
! 7; Down; P; 0.2; 1264; -10 -11 -12 -13; Down; 1525; 1555; 51035;
|
||||
! 8; "R int"; P; 0.2; 1309; -10 -11 -12 -13; R_int; 1480; 1510; 50990;
|
||||
! 9; "R ext"; P; 0.3; 1267; -10 -11 -12 -13; R_ext; 1520; 1550; 51020; 8; Rite
|
||||
!10; "Bveto up"; V; 0.3; 2085;
|
||||
!11; "Bveto down"; V; 0.3; 2089;
|
||||
!12; "Bveto left"; V; 0.3; 2080;
|
||||
!13; "Bveto right"; V; 0.3; 2079;
|
||||
!14; "F center"; P; 0.2; 2073; -10 -11 -12 -13; F_cntr; 720; 750; 50230; 2; Forw
|
||||
!15; Clock; C;
|
||||
!16; Rejected; R;
|
||||
!17; Ch17; N;
|
||||
!18; Ch18; N;
|
||||
!19; Ch19; N;
|
||||
!20; Ch20; N;
|
||||
!21; Ch21; N;
|
||||
!22; Ch22; N;
|
||||
!23; Ch23; N;
|
||||
!24; Ch24; N;
|
||||
!25; Ch25; N;
|
||||
!26; Ch26; N;
|
||||
!27; Ch27; N;
|
||||
!28; Ch28; N;
|
||||
!29; Ch29; N;
|
||||
!30; Ch30; N;
|
||||
!31; Ch31; N;
|
||||
|
||||
#DEBUGEVENT 704 10
|
||||
#DEBUGEVENT 1427 10
|
||||
#DEBUGEVENT 3222 10
|
||||
#DEBUGEVENT 5223 10
|
||||
#DEBUGEVENT 8351 10
|
||||
#DEBUGEVENT 8581 10
|
||||
#DEBUGEVENT 9041 10
|
||||
#DEBUGEVENT 9645 10
|
||||
|
||||
|
||||
|
||||
counterPhaseShifts 1 0 2 0 11 180 12 180 13 180
|
||||
counterGrouping B 1 2
|
||||
counterGrouping F 11 12 13
|
||||
|
||||
musrTH2D hMuDecayMap "Muon decay map;z [mm]; r[mm]" 100 -80. 20. 40 0. 20. muDecayPosZ muDecayPosR
|
||||
musrTH2D hMuDecayMap_a "Muon decay map;z (mm); x (mm)" 400 -300. 100. 400 -200. 200. muDecayPosZ muDecayPosX
|
||||
musrTH2D hMuDecayMappileup "Pileup muon decay map;z (mm); r (mm)" 400 -300. 100. 200 0. 200. pileup_muDecayPosZ pileup_muDecayPosR
|
||||
musrTH2D hMuDecayMappileup_a "Pileup muon decay map;z (mm); x (mm)" 400 -300. 100. 400 -200. 200. pileup_muDecayPosZ pileup_muDecayPosX
|
||||
musrTH1D hMuDecayPosZ "Penetration of muons into the sample;z (mm);N" 100 -5.0 5. muDecayPosZ
|
||||
musrTH1D hMuDecayPosZpileup "Decay of the muons contributing to pileup bgr.;z[mm];N" 400 -300 100 pileup_muDecayPosZ
|
||||
musrTH1D hMuDecayPosX "X of decayed muons;x[mm];N" 100 -5.0 5. muDecayPosX
|
||||
musrTH1D hdet_m0edep "Energy deposited in the trigger;E[MeV];N" 100 0. 2 det_m0edep
|
||||
musrTH1D hdet_posEdep "Energy deposited in the positron Counters;E[MeV];N" 100 0. 2 det_posEdep
|
||||
#musrTH1D hdet_time0 "detected muSR spectra;time[#mus];N" 220 -11. 11. det_time0
|
||||
#musrTH1D hdet_time1 "detected muSR spectra;time[#mus];N" 220 -11. 11. det_time1
|
||||
#musrTH1D hdet_time10 "detected muSR spectra;time[#mus];N" 220 -11. 11. det_time10
|
||||
musrTH1D hgen_time10 "generated muSR spectra;time[#mus];N" 220 -11. 11. gen_time10
|
||||
musrTH1D hdet_time10_MINUS_gen_time10 "detected - generated ;time_{det}-time_{gen} [ps];N" 100 -500. 500. det_time10_MINUS_gen_time10
|
||||
#musrTH1D hMuDecayDetID "Detector ID where the muons decay;Detector ID; N" 4000 -2000. 2000. muDecayDetID
|
||||
musrTH1D hdet_time10 "detected muSR spectra (phase shifted);time[#mus];N" 700 -2.0 12.0 det_time10
|
||||
musrTH1D hdet_time10_Bgr "detected muSR spectra (phase shifted);time[#mus];N" 700 -2.0 12.0 det_time10
|
||||
musrTH1D hdet_time20 "detected muSR spectra (phase shifted);time[#mus];N" 700 -2.0 12.0 det_time20
|
||||
musrTH1D hdet_time20_Bgr "detected muSR spectra (phase shifted);time[#mus];N" 700 -2.0 12.0 det_time20
|
||||
musrTH1D hMuDecayDetID "Detector ID where the muons decay;Detector ID; N" 2002 -1001. 1001. muDecayDetID
|
||||
musrTH1D hMuDecayDetIDpileup "Detector ID where the pileup muons decay;Detector ID; N" 2002 -1001. 1001. pileup_muDecayDetID
|
||||
humanDecayHistograms hMuDecayDetID hMuDecayDetIDpileup 201 Sample 211 SampleCell 300 Holder 301 Holder 302 Holder 303 Holder 304 Holder 305 Holder 306 Holder 307 Holder 308 Holder 309 Holder 310 Holder 313 Holder 314 Holder 315 Holder 316 Holder 251 Col_Cu 255 Col_1 257 Col_1 261 Col_2 263 Col_2 265 Al_Plate 102 M0 103 M0Holder 1 BC 2 BC 11 FC 12 FC 13 FC -1 World 291 Magnet 292 Magnet 293 Al_Uprof 230 Elsewhere 231 Elsewhere 232 Elsewhere 233 Elsewhere 256 Elsewhere 262 Elsewhere 267 Elsewhere -1000 Escaped
|
||||
|
||||
condition 0 alwaysTrue
|
||||
condition 1 oncePerEvent
|
||||
condition 2 muonDecayedInSample_gen
|
||||
condition 3 muonTriggered_gen
|
||||
condition 4 muonTriggered_det
|
||||
condition 5 positronHit_det
|
||||
condition 6 goodEvent_det
|
||||
condition 7 goodEvent_gen
|
||||
condition 8 goodEvent_det_AND_goodEvent_gen
|
||||
condition 9 pileupEvent
|
||||
condition 10 goodEvent_F_det
|
||||
condition 11 goodEvent_B_det
|
||||
condition 12 goodEvent_F_det_AND_pileupEvent
|
||||
condition 13 goodEvent_B_det_AND_pileupEvent
|
||||
|
||||
fit hdet_time20_Bgr pol0 WW -1.9 -0.1 0
|
||||
fit hdet_time20 funct4 "" 0.2 9.8 0 0 0.3 100 0
|
||||
fit hdet_time10 funct4 "" 0.05 9.95 0 0 0.3 100 0
|
||||
fit hdet_time10_Bgr pol0 WW -1.95 -0.05 0
|
||||
|
||||
#draw hMuDecayPosZ 0
|
||||
draw hMuDecayPosZ 1
|
||||
#draw hMuDecayPosZ 2
|
||||
#draw hMuDecayPosZ 3
|
||||
#draw hMuDecayPosZ 4
|
||||
###draw hMuDecayMap 0
|
||||
###draw hMuDecayMap 1
|
||||
draw hdet_m0edep 0
|
||||
draw hdet_m0edep 1
|
||||
draw hdet_m0edep 2
|
||||
draw hdet_m0edep 3
|
||||
draw hdet_m0edep 4
|
||||
draw hdet_m0edep 5
|
||||
draw hdet_m0edep 6
|
||||
draw hdet_time10 6
|
||||
#draw hdet_time20 10
|
||||
#draw hdet_time20 11
|
||||
#draw hdet_time20_Bgr 10
|
||||
#draw hdet_time20_Bgr 11
|
||||
draw hgen_time10 7
|
||||
draw hdet_time10_MINUS_gen_time10 8
|
||||
draw hdet_posEdep 5
|
||||
draw hMuDecayDetID 1
|
||||
draw hdet_m0edep 9
|
||||
draw hdet_time10 9
|
||||
draw hMuDecayDetIDpileup 1
|
||||
draw hMuDecayDetIDpileup 6
|
||||
draw hMuDecayDetIDpileup 9
|
||||
draw humanDecayHistograms 1
|
||||
draw humanDecayHistograms 6
|
||||
draw humanDecayHistograms 9
|
||||
draw humanDecayPileupHistograms 1
|
||||
draw humanDecayPileupHistograms 6
|
||||
draw humanDecayPileupHistograms 9
|
||||
draw hdet_time20 4
|
||||
draw hdet_time20 6
|
||||
$
|
158
musrSimAna/201a.v1190
Normal file
158
musrSimAna/201a.v1190
Normal file
@ -0,0 +1,158 @@
|
||||
# TDC V1190 Set up file generated by Deltat : 16-Apr-2008 10:30:27
|
||||
# bins are always in TDC channel units (195.3125 ps/channel)
|
||||
|
||||
INSTRUMENT=GPS
|
||||
|
||||
DESCRIPTION=No Veto -- 1port
|
||||
TYPE=TDCV1190
|
||||
RESOLUTION=100
|
||||
|
||||
MDELAY=0
|
||||
PDELAY=2000
|
||||
#REWINDTIMEBINS=10000000
|
||||
|
||||
MCOINCIDENCEW=50
|
||||
PCOINCIDENCEW=50
|
||||
VCOINCIDENCEW=100
|
||||
|
||||
# 30000 mu/s
|
||||
#MUONRATEFACTOR=0.0965819
|
||||
INFINITELYLOWMUONRATE
|
||||
|
||||
DATAWINDOWMIN=-2.
|
||||
DATAWINDOWMAX=10.0
|
||||
PILEUPWINDOWMIN=-10.0
|
||||
PILEUPWINDOWMAX=10.0
|
||||
|
||||
102; "M up"; M; 0.4; 2005; ;
|
||||
1; "B1"; P; 0.4; 2005; ; B1; 1485; 1515; 50995;
|
||||
2; "B2"; P; 0.4; 2005; ; B2; 1485; 1515; 50995;
|
||||
11; "F1"; P; 0.4; 2005; ; F11; 1485; 1515; 50995;
|
||||
12; "F2"; P; 0.4; 2005; ; F12; 1485; 1515; 50995;
|
||||
13; "F3"; P; 0.4; 2005; ; F13; 1485; 1515; 50995;
|
||||
! 21; "Coinc B1" K; 0.4; 2005;
|
||||
! 22; "Coinc B2" K; 0.4; 2005;
|
||||
!401; "Act Veto" V; 0.1; 2005;
|
||||
! 3; "F right"; K; 0.4; 1263;
|
||||
! 4; "B left"; P; 0.2; 1311; 5 -10 -11 -12 -13; Back; 1485; 1515; 50995;
|
||||
! 5; "B right"; K; 0.2; 1262;
|
||||
! 6; Up; P; 0.2; 1306; -10 -11 -12 -13; Up; 1490; 1520; 51000;
|
||||
! 7; Down; P; 0.2; 1264; -10 -11 -12 -13; Down; 1525; 1555; 51035;
|
||||
! 8; "R int"; P; 0.2; 1309; -10 -11 -12 -13; R_int; 1480; 1510; 50990;
|
||||
! 9; "R ext"; P; 0.3; 1267; -10 -11 -12 -13; R_ext; 1520; 1550; 51020; 8; Rite
|
||||
!10; "Bveto up"; V; 0.3; 2085;
|
||||
!11; "Bveto down"; V; 0.3; 2089;
|
||||
!12; "Bveto left"; V; 0.3; 2080;
|
||||
!13; "Bveto right"; V; 0.3; 2079;
|
||||
!14; "F center"; P; 0.2; 2073; -10 -11 -12 -13; F_cntr; 720; 750; 50230; 2; Forw
|
||||
!15; Clock; C;
|
||||
!16; Rejected; R;
|
||||
!17; Ch17; N;
|
||||
!18; Ch18; N;
|
||||
!19; Ch19; N;
|
||||
!20; Ch20; N;
|
||||
!21; Ch21; N;
|
||||
!22; Ch22; N;
|
||||
!23; Ch23; N;
|
||||
!24; Ch24; N;
|
||||
!25; Ch25; N;
|
||||
!26; Ch26; N;
|
||||
!27; Ch27; N;
|
||||
!28; Ch28; N;
|
||||
!29; Ch29; N;
|
||||
!30; Ch30; N;
|
||||
!31; Ch31; N;
|
||||
|
||||
#DEBUGEVENT 704 10
|
||||
#DEBUGEVENT 1427 10
|
||||
#DEBUGEVENT 3222 10
|
||||
#DEBUGEVENT 5223 10
|
||||
#DEBUGEVENT 8351 10
|
||||
#DEBUGEVENT 8581 10
|
||||
#DEBUGEVENT 9041 10
|
||||
#DEBUGEVENT 9645 10
|
||||
|
||||
|
||||
|
||||
counterPhaseShifts 1 0 2 0 11 180 12 180 13 180
|
||||
counterGrouping B 1 2
|
||||
counterGrouping F 11 12 13
|
||||
|
||||
musrTH2D hMuDecayMap "Muon decay map;z [mm]; r[mm]" 100 -80. 20. 40 0. 20. muDecayPosZ muDecayPosR
|
||||
musrTH2D hMuDecayMappileup "Pileup muon decay map;z [mm]; r[mm]" 400 -300. 100. 200 0. 200. pileup_muDecayPosZ pileup_muDecayPosR
|
||||
musrTH1D hMuDecayPosZ "Penetration of muons into the sample;z[mm];N" 100 -5.0 5. muDecayPosZ
|
||||
musrTH1D hMuDecayPosZpileup "Decay of the muons contributing to pileup bgr.;z[mm];N" 400 -300 100 pileup_muDecayPosZ
|
||||
musrTH1D hMuDecayPosX "X of decayed muons;x[mm];N" 100 -5.0 5. muDecayPosX
|
||||
musrTH1D hdet_m0edep "Energy deposited in the trigger;E[MeV];N" 100 0. 2 det_m0edep
|
||||
musrTH1D hdet_posEdep "Energy deposited in the positron Counters;E[MeV];N" 100 0. 2 det_posEdep
|
||||
#musrTH1D hdet_time0 "detected muSR spectra;time[#mus];N" 220 -11. 11. det_time0
|
||||
#musrTH1D hdet_time1 "detected muSR spectra;time[#mus];N" 220 -11. 11. det_time1
|
||||
#musrTH1D hdet_time10 "detected muSR spectra;time[#mus];N" 220 -11. 11. det_time10
|
||||
musrTH1D hgen_time10 "generated muSR spectra;time[#mus];N" 220 -11. 11. gen_time10
|
||||
musrTH1D hdet_time10_MINUS_gen_time10 "detected - generated ;time_{det}-time_{gen} [ps];N" 100 -500. 500. det_time10_MINUS_gen_time10
|
||||
#musrTH1D hMuDecayDetID "Detector ID where the muons decay;Detector ID; N" 4000 -2000. 2000. muDecayDetID
|
||||
musrTH1D hdet_time10 "detected muSR spectra (phase shifted);time[#mus];N" 700 -2.0 12.0 det_time10
|
||||
musrTH1D hdet_time10_Bgr "detected muSR spectra (phase shifted);time[#mus];N" 700 -2.0 12.0 det_time10
|
||||
musrTH1D hdet_time20 "detected muSR spectra (phase shifted);time[#mus];N" 700 -2.0 12.0 det_time20
|
||||
musrTH1D hdet_time20_Bgr "detected muSR spectra (phase shifted);time[#mus];N" 700 -2.0 12.0 det_time20
|
||||
musrTH1D hMuDecayDetID "Detector ID where the muons decay;Detector ID; N" 2002 -1001. 1001. muDecayDetID
|
||||
musrTH1D hMuDecayDetIDpileup "Detector ID where the pileup muons decay;Detector ID; N" 2002 -1001. 1001. pileup_muDecayDetID
|
||||
humanDecayHistograms hMuDecayDetID hMuDecayDetIDpileup 201 Sample 211 SampleCell 300 Holder 301 Holder 302 Holder 303 Holder 304 Holder 305 Holder 306 Holder 307 Holder 308 Holder 309 Holder 310 Holder 313 Holder 314 Holder 315 Holder 316 Holder 251 Col_Cu 255 Col_1 257 Col_1 261 Col_2 263 Col_2 265 Al_Plate 102 M0 103 M0Holder 1 BC 2 BC 11 FC 12 FC 13 FC -1 World 291 Magnet 292 Magnet 293 Al_Uprof 230 Elsewhere 231 Elsewhere 232 Elsewhere 233 Elsewhere 256 Elsewhere 262 Elsewhere 267 Elsewhere -1000 Escaped
|
||||
|
||||
condition 0 alwaysTrue
|
||||
condition 1 oncePerEvent
|
||||
condition 2 muonDecayedInSample_gen
|
||||
condition 3 muonTriggered_gen
|
||||
condition 4 muonTriggered_det
|
||||
condition 5 positronHit_det
|
||||
condition 6 goodEvent_det
|
||||
condition 7 goodEvent_gen
|
||||
condition 8 goodEvent_det_AND_goodEvent_gen
|
||||
condition 9 pileupEvent
|
||||
condition 10 goodEvent_F_det
|
||||
condition 11 goodEvent_B_det
|
||||
condition 12 goodEvent_F_det_AND_pileupEvent
|
||||
condition 13 goodEvent_B_det_AND_pileupEvent
|
||||
|
||||
fit hdet_time20_Bgr pol0 WW -1.9 -0.1 0
|
||||
fit hdet_time20 funct4 "" 0.2 9.8 0 0 0.3 100 0
|
||||
fit hdet_time10 funct4 "" 0.05 9.95 0 0 0.3 100 0
|
||||
fit hdet_time10_Bgr pol0 WW -1.95 -0.05 0
|
||||
|
||||
#draw hMuDecayPosZ 0
|
||||
draw hMuDecayPosZ 1
|
||||
#draw hMuDecayPosZ 2
|
||||
#draw hMuDecayPosZ 3
|
||||
#draw hMuDecayPosZ 4
|
||||
###draw hMuDecayMap 0
|
||||
###draw hMuDecayMap 1
|
||||
draw hdet_m0edep 0
|
||||
draw hdet_m0edep 1
|
||||
draw hdet_m0edep 2
|
||||
draw hdet_m0edep 3
|
||||
draw hdet_m0edep 4
|
||||
draw hdet_m0edep 5
|
||||
draw hdet_m0edep 6
|
||||
draw hdet_time10 6
|
||||
#draw hdet_time20 10
|
||||
#draw hdet_time20 11
|
||||
#draw hdet_time20_Bgr 10
|
||||
#draw hdet_time20_Bgr 11
|
||||
draw hgen_time10 7
|
||||
draw hdet_time10_MINUS_gen_time10 8
|
||||
draw hdet_posEdep 5
|
||||
draw hMuDecayDetID 1
|
||||
draw hdet_m0edep 9
|
||||
draw hdet_time10 9
|
||||
draw hMuDecayDetIDpileup 1
|
||||
draw hMuDecayDetIDpileup 6
|
||||
draw hMuDecayDetIDpileup 9
|
||||
draw humanDecayHistograms 1
|
||||
draw humanDecayHistograms 6
|
||||
draw humanDecayHistograms 9
|
||||
draw humanDecayPileupHistograms 1
|
||||
draw humanDecayPileupHistograms 6
|
||||
draw humanDecayPileupHistograms 9
|
||||
draw hdet_time20 4
|
||||
draw hdet_time20 6
|
||||
$
|
@ -503,8 +503,9 @@ void musrAnalysis::ReadInInputParameters(char* charV1190FileName) {
|
||||
}
|
||||
}
|
||||
else if (strcmp(tmpString0,"fit")==0) {
|
||||
char histoName[100]; char functionName[100]; float xMin; float xMax; float p0, p1, p2, p3, p4, p5, p6;
|
||||
sscanf(&line[0],"%*s %s %s %g %g %g %g %g %g %g",histoName,functionName,&xMin,&xMax,&p0,&p1,&p2,&p3,&p4,&p5,&p6);
|
||||
char histoName[100]; char functionName[100]; char functOption[100]; float xMin; float xMax; float p0, p1, p2, p3, p4, p5, p6;
|
||||
sscanf(&line[0],"%*s %s %s %s %g %g %g %g %g %g %g",histoName,functionName,functOption,&xMin,&xMax,&p0,&p1,&p2,&p3,&p4,&p5,&p6);
|
||||
if (strcmp(functOption,"\"\"")==0) strcpy(functOption,"");
|
||||
|
||||
TF1 *funct;
|
||||
|
||||
@ -576,7 +577,7 @@ void musrAnalysis::ReadInInputParameters(char* charV1190FileName) {
|
||||
exit(1);
|
||||
}
|
||||
|
||||
tmpHistograms->AssignFunction(funct, xMin, xMax);
|
||||
tmpHistograms->AssignFunction(funct, functOption, xMin, xMax);
|
||||
}
|
||||
|
||||
else {
|
||||
@ -957,6 +958,8 @@ void musrAnalysis::FillHistograms(Int_t iiiEntry) {
|
||||
// Long64_t dataBinMax = (mCounterHitExistsForThisEventID) ? timeBin0+dataWindowBinMax : timeBinOfThePreviouslyProcessedHit+100000000;
|
||||
pileup_eventID = -1001;
|
||||
pileup_muDecayDetID_double = -1001;
|
||||
pileup_muDecayPosX = -1000000000;
|
||||
pileup_muDecayPosY = -1000000000;
|
||||
pileup_muDecayPosZ = -1000000000;
|
||||
pileup_muDecayPosR = -1000000000;
|
||||
if (mCounterHitExistsForThisEventID) {
|
||||
@ -970,6 +973,8 @@ void musrAnalysis::FillHistograms(Int_t iiiEntry) {
|
||||
fChain->GetEntry(posEntry);
|
||||
pileup_eventID = eventID;
|
||||
pileup_muDecayDetID_double = muDecayDetID;
|
||||
pileup_muDecayPosX = muDecayPosX;
|
||||
pileup_muDecayPosY = muDecayPosY;
|
||||
pileup_muDecayPosZ = muDecayPosZ;
|
||||
pileup_muDecayPosR = sqrt(muDecayPosX*muDecayPosX+muDecayPosY*muDecayPosY);
|
||||
// if (pileup_muDecayDetID_double==-1000) {
|
||||
|
@ -208,6 +208,8 @@ public :
|
||||
Double_t det_time20;
|
||||
Double_t pileup_eventID;
|
||||
Double_t pileup_muDecayDetID_double;
|
||||
Double_t pileup_muDecayPosX;
|
||||
Double_t pileup_muDecayPosY;
|
||||
Double_t pileup_muDecayPosZ;
|
||||
Double_t pileup_muDecayPosR;
|
||||
|
||||
@ -443,6 +445,8 @@ musrAnalysis::musrAnalysis(TTree *tree)
|
||||
variableMap["det_time10_MINUS_gen_time10"]=&det_time10_MINUS_gen_time10;
|
||||
variableMap["pileup_eventID"]=&pileup_eventID;
|
||||
variableMap["pileup_muDecayDetID"]=&pileup_muDecayDetID_double;
|
||||
variableMap["pileup_muDecayPosX"]=&pileup_muDecayPosX;
|
||||
variableMap["pileup_muDecayPosY"]=&pileup_muDecayPosY;
|
||||
variableMap["pileup_muDecayPosZ"]=&pileup_muDecayPosZ;
|
||||
variableMap["pileup_muDecayPosR"]=&pileup_muDecayPosR;
|
||||
variableMap["det_time20"]=&det_time20;
|
||||
|
@ -16,6 +16,7 @@ musrTH::musrTH(char* dimension, char* histoName, char* histoTitle, Int_t nrOfBin
|
||||
bool_rotating_reference_frame=false;
|
||||
rot_ref_frequency=0;
|
||||
rot_ref_phase=0;
|
||||
strcpy(funct_option,"");
|
||||
// std::cout<<"hojhoj variableName1="<<variableName1<<" variableToBeFilled_X="<<variableToBeFilled_X<<std::endl;
|
||||
|
||||
char nameHist[500];
|
||||
@ -189,10 +190,12 @@ void musrTH::FillHumanDecayArray(musrTH* decayMapHistos, humanDecayMapType myMap
|
||||
}
|
||||
}
|
||||
//==============================================================================================
|
||||
void musrTH::AssignFunction(TF1* function, Double_t xMin, Double_t xMax) {
|
||||
void musrTH::AssignFunction(TF1* function, char* functOption, Double_t xMin, Double_t xMax) {
|
||||
funct = function;
|
||||
strcpy(funct_option,functOption);
|
||||
funct_xMin = xMin;
|
||||
funct_xMax = xMax;
|
||||
std::cout<<"musrTH::AssignFunction: "<<funct->GetName()<<", option="<<funct_option<<", xMin="<<xMin<<", xMax="<<xMax<<std::endl;
|
||||
|
||||
}
|
||||
//==============================================================================================
|
||||
@ -218,13 +221,16 @@ void musrTH::FitHistogramsIfRequired(Double_t omega) {
|
||||
}
|
||||
}
|
||||
|
||||
Double_t ppp[100];
|
||||
std::cout<<" Initial parameter setting: ";
|
||||
for (Int_t i=0; i<(funct->GetNumberFreeParameters()); i++) std::cout<<funct->GetParameter(i)<<", ";
|
||||
Int_t n_ppp = funct->GetNumberFreeParameters();
|
||||
for (Int_t i=0; i<n_ppp; i++) {ppp[i]=funct->GetParameter(i); std::cout<<ppp[i]<<", ";}
|
||||
std::cout<<std::endl;
|
||||
|
||||
for (Int_t i=0; i<musrAnalysis::nrConditions; i++) {
|
||||
// std::cout<<"fitted histogram pointer="<<histArray1D[i]<<std::endl;
|
||||
histArray1D[i]->Fit(funct,"WW","",funct_xMin,funct_xMax);
|
||||
for (Int_t j=0; j<n_ppp; j++) {funct->SetParameter(j,ppp[j]);}
|
||||
histArray1D[i]->Fit(funct,funct_option,"",funct_xMin,funct_xMax);
|
||||
// histArray1D[i]->Fit(funct,"LL","",funct_xMin,funct_xMax);
|
||||
}
|
||||
// if (strcmp(funct->GetName(),"simpleExpoPLUSconst")==0) {
|
||||
|
@ -37,7 +37,7 @@ public:
|
||||
Int_t GetNbinsX1D();
|
||||
Int_t GetNbinsX2D();
|
||||
Int_t GetNbinsY2D();
|
||||
void AssignFunction(TF1* function, Double_t xMin, Double_t xMax);
|
||||
void AssignFunction(TF1* function, char* functOption, Double_t xMin, Double_t xMax);
|
||||
void FitHistogramsIfRequired(Double_t omega);
|
||||
void SetRotatingReferenceFrame(Double_t frequency, Double_t phase) {bool_rotating_reference_frame=true;
|
||||
rot_ref_frequency=frequency; rot_ref_phase=phase;}
|
||||
@ -52,6 +52,7 @@ private:
|
||||
std::list<int> drawList;
|
||||
TF1* funct;
|
||||
Double_t funct_xMin, funct_xMax;
|
||||
char funct_option[100];
|
||||
Bool_t bool_rotating_reference_frame;
|
||||
Double_t rot_ref_frequency, rot_ref_phase;
|
||||
// Double_t N0_FromLastFit;
|
||||
|
Reference in New Issue
Block a user