22.6.2012 - Kamil Sedlak
1) Small changes of the musrSimAna documentation 2) A new type of condition added to musrSimAna 3) A few more examples of macro files added
This commit is contained in:
parent
8a787cf4a0
commit
d191e96ca0
Binary file not shown.
@ -1,5 +1,5 @@
|
||||
\documentclass[twoside]{dis04}
|
||||
\usepackage{epsfig}
|
||||
\usepackage{epsfig}
|
||||
\def\runauthor{PSI}
|
||||
\def\shorttitle{musrSimAna}
|
||||
\begin{document}
|
||||
@ -328,7 +328,7 @@ All events should/have to be (?) saved in the Root tree
|
||||
This is just a technical thing serving to test the analysis software -- it should not
|
||||
have any effect on the analysis results.
|
||||
\item{\bf musrTH1D \emph{histoName} \emph{histoTitle} \emph{nBins} \emph{min} \emph{max} \emph{variable}
|
||||
[{\tt rotreference} $\nu_{\rm RRF}$ $\phi_{\rm RRF}$]} \\
|
||||
[{\tt rotreference} $\nu_{\rm RRF}$ $\phi_{\rm RRF}$] $|$ [correctexpdecay]} \\
|
||||
Defines a histogram (or more precisely an array of histograms, where the number of histograms
|
||||
in the array is given by the number of conditions, see section~\ref{howToAnalyse}).
|
||||
The name of the histogram is defined by \emph{histoName} + the number of the condition.
|
||||
@ -338,6 +338,10 @@ All events should/have to be (?) saved in the Root tree
|
||||
The optional keyword ``{\tt rotreference}'' signals that the given histogram will be filled in
|
||||
rotating reference frame (RRF) with the frequency of $\nu_{\rm RRF}$ and a phase shift of $\phi_{\rm RRF}$.
|
||||
\\
|
||||
The optional keyword ``{\tt correctexpdecay}'' signals that the given histogram will be corrected
|
||||
for the muon exponential decay (i.e. multiplied by a factor $\exp(t/2.19703)$. It is meaningful
|
||||
only for time variables.
|
||||
\\
|
||||
The \emph{variable} stands for the variable that will be
|
||||
filled into the histogram. The \emph{variable} can be any variable from the output Root tree
|
||||
of musrSim (see ``Manual of musrSim'') (except for the array variables like
|
||||
@ -461,9 +465,10 @@ All events should/have to be (?) saved in the Root tree
|
||||
the M-counter for the whole pile-up time window of $\sim$\,10\,$\mu s$.
|
||||
Unlike in the case of {\tt VCOINCIDENCEW}, here the \emph{units} are not TDC bins, but
|
||||
rather time in ``nanosecond'' or ``microsecond''.
|
||||
\item{\bf fit \emph{histogramName} \emph{function} \emph{min} \emph{max} \emph{p$_1$} \ldots \emph{p$_n$}} \\
|
||||
\item{\bf fit \emph{histogramName} \emph{function} \emph{option} \emph{min} \emph{max} \emph{p$_1$} \ldots \emph{p$_n$}} \\
|
||||
Fits the histogram by a given function, where \emph{min}, \emph{max} define the range of the fit
|
||||
on the $x$-axis of the histogram, and \emph{p$_1$} \ldots \emph{p$_n$} are (typically, with some exceptions)
|
||||
on the $x$-axis of the histogram, \emph{option} is a string defining fit options (see Root manual for details),
|
||||
and \emph{p$_1$} \ldots \emph{p$_n$} are (typically, with some exceptions)
|
||||
the initial values of the function parameters. The following functions are currently predefined:
|
||||
\begin{description}
|
||||
\item[pol0] $=p_0$ \ldots a constant (1 parameter) - typically used to fit background.
|
||||
@ -473,6 +478,10 @@ All events should/have to be (?) saved in the Root tree
|
||||
\item[funct2] $=p_3 \exp((p_4 - x)/2.19703) \cdot (1+p_2 \cos(p_0 x+p_1)) + p_5$
|
||||
% \item[funct3] the same as {\tt funct2}
|
||||
\item[funct4] $=p_3 \exp((- x)/2.19703) \cdot (1+p_2 \cos(p_0 x+p_1)) + p_4$
|
||||
\item[TFieldCos] $=p_3 (1+p_2 \cos(p_0 x + p_1))$ \hspace{1cm} (this function is useful when the histogram is filled with {\tt ``correctexpdecay''} keyword.)
|
||||
\item[TFieldCosPLUSbg] $=p_3 (1+p_2 \cos(p_0 x + p_1)) + p_4 \exp(x/2.19703)$
|
||||
\hspace{1cm} (this function is useful when the histogram is filled with {\tt ``correctexpdecay''} keyword.)
|
||||
\item[gaus] ... Gauss distribution
|
||||
\end{description}
|
||||
|
||||
|
||||
|
188
musrSimAna/14410b.v1190
Normal file
188
musrSimAna/14410b.v1190
Normal file
@ -0,0 +1,188 @@
|
||||
# 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=HighField
|
||||
|
||||
DESCRIPTION=No Veto -- 1port
|
||||
TYPE=TDCV1190
|
||||
RESOLUTION=100
|
||||
|
||||
MDELAY=0
|
||||
PDELAY=2000
|
||||
#REWINDTIMEBINS=10000000
|
||||
|
||||
MCOINCIDENCEW=50
|
||||
PCOINCIDENCEW=50
|
||||
VCOINCIDENCEW=100
|
||||
|
||||
MUONRATEFACTOR=0.954732
|
||||
#MUONRATEFACTOR=1000
|
||||
INFINITELYLOWMUONRATE
|
||||
|
||||
DATAWINDOWMIN=-2
|
||||
DATAWINDOWMAX=10.0
|
||||
PILEUPWINDOWMIN=-10.2
|
||||
PILEUPWINDOWMAX=10.2
|
||||
|
||||
102; "M up"; M; 0.4; 2005; -51 ;
|
||||
1; "B1"; P; 0.4; 2005; ; B1; 1485; 1515; 50995;
|
||||
2; "B2"; P; 0.4; 2005; ; B2; 1485; 1515; 50995;
|
||||
3; "B3"; P; 0.4; 2005; ; B3; 1485; 1515; 50995;
|
||||
4; "B4"; P; 0.4; 2005; ; B4; 1485; 1515; 50995;
|
||||
5; "B5"; P; 0.4; 2005; ; B5; 1485; 1515; 50995;
|
||||
6; "B6"; P; 0.4; 2005; ; B6; 1485; 1515; 50995;
|
||||
7; "B7"; P; 0.4; 2005; ; B7; 1485; 1515; 50995;
|
||||
8; "B8"; P; 0.4; 2005; ; B8; 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;
|
||||
14; "F4"; P; 0.4; 2005; ; F14; 1485; 1515; 50995;
|
||||
15; "F5"; P; 0.4; 2005; ; F15; 1485; 1515; 50995;
|
||||
16; "F6"; P; 0.4; 2005; ; F16; 1485; 1515; 50995;
|
||||
17; "F7"; P; 0.4; 2005; ; F17; 1485; 1515; 50995;
|
||||
18; "F8"; P; 0.4; 2005; ; F18; 1485; 1515; 50995;
|
||||
51; "Mveto"; V; 0.8; 2005; ; MV; 1485; 1515; 50995;
|
||||
! 61; "PB1"; V; 0.1; 2005; ; PB1; 1485; 1515; 50995;
|
||||
! 62; "PB2"; V; 0.1; 2005; ; PB2; 1485; 1515; 50995;
|
||||
! 63; "PB3"; V; 0.1; 2005; ; PB3; 1485; 1515; 50995;
|
||||
! 64; "PB4"; V; 0.1; 2005; ; PB4; 1485; 1515; 50995;
|
||||
! 65; "PB5"; V; 0.1; 2005; ; PB5; 1485; 1515; 50995;
|
||||
! 66; "PB6"; V; 0.1; 2005; ; PB6; 1485; 1515; 50995;
|
||||
! 67; "PB7"; V; 0.1; 2005; ; PB7; 1485; 1515; 50995;
|
||||
! 68; "PB8"; V; 0.1; 2005; ; PB8; 1485; 1515; 50995;
|
||||
! 71; "PF1"; V; 0.1; 2005; ; PF1; 1485; 1515; 50995;
|
||||
! 72; "PF2"; V; 0.1; 2005; ; PF2; 1485; 1515; 50995;
|
||||
! 73; "PF3"; V; 0.1; 2005; ; PF3; 1485; 1515; 50995;
|
||||
! 74; "PF4"; V; 0.1; 2005; ; PF4; 1485; 1515; 50995;
|
||||
! 75; "PF5"; V; 0.1; 2005; ; PF5; 1485; 1515; 50995;
|
||||
! 76; "PF6"; V; 0.1; 2005; ; PF6; 1485; 1515; 50995;
|
||||
! 77; "PF7"; V; 0.1; 2005; ; PF7; 1485; 1515; 50995;
|
||||
! 78; "PF8"; V; 0.1; 2005; ; PF8; 1485; 1515; 50995;
|
||||
!30; Ch30; N;
|
||||
!31; Ch31; N;
|
||||
|
||||
counterPhaseShifts 1 0 2 45 3 90 4 135 5 180 6 225 7 270 8 315
|
||||
counterPhaseShifts 11 0 12 45 13 90 14 135 15 180 16 225 17 270 18 315
|
||||
#counterPhaseShifts 1 0 8 45 7 90 6 135 5 180 4 225 3 270 2 315
|
||||
#counterPhaseShifts 11 0 18 45 17 90 16 135 15 180 14 225 13 270 12 315
|
||||
|
||||
counterGrouping B 1 2 3 4 5 6 7 8
|
||||
counterGrouping F 11 12 13 14 15 16 17 18
|
||||
counterGrouping U 1 11
|
||||
counterGrouping D 5 15
|
||||
counterGrouping L 3 13
|
||||
counterGrouping R 7 17
|
||||
|
||||
sampleID 201 202
|
||||
|
||||
musrTH1D hMuTargetPol_Theta "Muon polarisation in the sample;#theta (deg);N" 300 60. 120. muTargetPol_Theta
|
||||
musrTH1D hMuTargetPol_Phi "Muon polarisation in the sample;#phi (deg);N" 1800 -180. 180. muTargetPol_Phi
|
||||
musrTH1D hMuTargetPol_Phi360 "Muon polarisation in the sample;#phi+360 (deg);N" 1800 0. 360. muTargetPol_Phi360
|
||||
musrTH1D hPos_Phi_MINUS_muDecayPol_Phi ";#phi_{e ini} - #phi_{#mu decay spin} (deg);N" 360 -180. 180. pos_Phi_MINUS_muDecayPol_Phi
|
||||
musrTH1D hPos_Phi_MINUS_muDecayPol_Phi360 ";#phi_{e ini} - #phi_{#mu decay spin} (deg);N" 360 0. 360. pos_Phi_MINUS_muDecayPol_Phi360
|
||||
musrTH1D hdetP_phi_MINUS_pos_Phi ";#phi_{det} - #phi_{e ini} (deg);N" 360 -180. 180. detP_phi_MINUS_pos_Phi
|
||||
musrTH1D hdetP_phi_MINUS_pos_Phi360 ";#phi_{det} - #phi_{e ini} (deg);N" 360 0. 360. detP_phi_MINUS_pos_Phi360
|
||||
musrTH1D hdet_time1_MINUS_muDecayTime ";TOF_{e} + TDC smearing;N" 500 0. 500. det_time1_MINUS_muDecayTime
|
||||
musrTH1D hdetP_time_start_MINUS_muDecayTime ";TOF_{e};N" 500 0. 500. detP_time_start_MINUS_muDecayTime
|
||||
musrTH2D hMuDecayMap "Muon decay map;z [mm]; r[mm]" 100 -80. 20. 40 0. 20. muDecayPosZ muDecayPosR
|
||||
musrTH1D hMuDecayPosZall "Z of muons when they decay;z[mm];N" 4002 -2001 2001 muDecayPosZ
|
||||
musrTH1D hMuDecayPosZ "Penetration of muons into the sample;z[mm];N" 100 -5.0 5. muDecayPosZ
|
||||
musrTH1D hMuDecayPosX "X of decayed muons;x[mm];N" 100 -5.0 5. muDecayPosX
|
||||
musrTH1D hPosMom "Momentum of the produced positrons;P [MeV];N" 55 0. 55. pos_Momentum
|
||||
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 hdet_time10 "detected muSR spectra;time[#mus];N" 240 -1. 11. det_time10
|
||||
musrTH1D hdet_time10 "detected muSR spectra;time[#mus];N" 120 0.386 0.398 det_time10
|
||||
musrTH1D hdet_time20 "detected muSR spectra (phase shifted);time[#mus];N" 120 0.386 0.398 det_time20
|
||||
musrTH1D hdet_time10_bgr1 "detected muSR spectra (phase shifted);time[#mus];N" 280 -3. 11. det_time10
|
||||
musrTH1D hdet_time10_bgr3 "detected muSR spectra (phase shifted);time[#mus];N" 280 -3. 11. det_time10
|
||||
#musrTH1D hdet_time20 "detected muSR spectra (phase shifted);time[#mus];N" 240 -1. 11. det_time20
|
||||
musrTH1D hgen_time10 "generated muSR spectra;time[#mus];N" 240 -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 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 202 Sample 165 Holder 166 Holder 245 CollimB 246 CollimB 241 CollimA 242 CollimA 102 M0 109 M0hold 1 BC 2 BC 3 BC 4 BC 5 BC 6 BC 7 BC 8 BC 11 FC 12 FC 13 FC 14 FC 15 FC 16 FC 17 FC 18 FC 511 Shield1 512 Shield1 513 Shield1 515 Shield1 516 Shield1 521 Shield2 522 Shield2 523 Shield2 525 Shield2 526 Shield2 531 Shield3 532 Shield3 533 Shield3 535 Shield3 536 Shield3 541 Shield4 542 Shield4 543 Shield4 545 Shield4 546 Shield4 51 Veto0 61 Veto1 62 Veto1 63 Veto1 64 Veto1 -1 World 231 World 233 World -1000 Escaped
|
||||
musrTH1D hdet_time20_rotref "rot ref frame;time[#mus];N" 240 -1.0 11. det_time20 rotreference 1354 0
|
||||
#musrTH1D hdet_time20_rotrefTwo "rot ref frame 2;time[#mus];N" 240 -1.0 11. det_time20 rotreference -1353 0
|
||||
musrTH1D hdet_time10_exp "hdet_time10_exp;time[#mus];N" 240 -1.0 11. det_time10 correctexpdecay
|
||||
musrTH2D hMuTargetPolPhi_pInit ";#phi_{#mu spin} (deg); p_{#mu init} (MeV/c)" 100 0. 360. 100 25.7 28.9 muTargetPol_Phi360 muIniMomZ
|
||||
musrTH2D hMuTargetPolPhi_RInit ";#phi_{#mu spin} (deg); R_{#mu init} (mm)" 100 0. 360. 100 0. 40. muTargetPol_Phi360 muIniPosR
|
||||
|
||||
|
||||
|
||||
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_det_AND_muonDecayedInSample_gen
|
||||
condition 11 goodEvent_F_det
|
||||
condition 12 goodEvent_B_det
|
||||
condition 13 goodEvent_U_det
|
||||
condition 14 goodEvent_D_det
|
||||
condition 15 goodEvent_L_det
|
||||
condition 16 goodEvent_R_det
|
||||
condition 17 goodEvent_F_det_AND_pileupEvent
|
||||
condition 18 goodEvent_B_det_AND_pileupEvent
|
||||
condition 19 goodEvent_U_det_AND_pileupEvent
|
||||
condition 20 goodEvent_D_det_AND_pileupEvent
|
||||
condition 21 goodEvent_L_det_AND_pileupEvent
|
||||
condition 22 goodEvent_R_det_AND_pileupEvent
|
||||
condition 29 muonTriggered_gen_AND_muonDecayedInSample_gen
|
||||
fit hMuTargetPol_Phi gaus "" -180. 180. 1000. 0. 10.
|
||||
fit hMuTargetPol_Phi360 gaus "" 0. 360. 1000. 0. 10.
|
||||
fit hMuTargetPol_Theta gaus "" 60. 120. 1000. 0. 10.
|
||||
fit hdet_time20 funct1 "" 0.388 0.3967 0 0 0.3 100
|
||||
#fit hdet_time20 simpleExpoPLUSconst "" 0.1 9.9 100 1
|
||||
fit hdet_time20_rotref rotFrameTime20 "" 0.2 9.8 0 0 100
|
||||
fit hdet_time10 simpleExpoPLUSconst "" 0.2 9.8 100 1
|
||||
fit hdet_time10_exp TFieldCosPLUSbg "" 0.2 9.8 1 0 0.3 300 1
|
||||
fit hdet_time10_bgr1 pol0 "" 0.2 9.8
|
||||
fit hdet_time10_bgr3 pol0 "" -1.9 -0.1
|
||||
#fit hdet_time20_rotrefTwo rotFrameTime20 "" 0.1 9.9 0 0 100
|
||||
|
||||
#draw hMuDecayPosZ 0
|
||||
#draw hMuDecayPosZall 1
|
||||
#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 hgen_time10 7
|
||||
draw hdet_time20 6
|
||||
draw hgen_time20 7
|
||||
draw hdet_time20_rotref 6
|
||||
draw hdet_time20_bgr 6
|
||||
#draw hdet_time20_rotrefTwo 6
|
||||
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 9
|
||||
#draw humanDecayHistograms 1
|
||||
#draw humanDecayHistograms 6
|
||||
#draw humanDecayHistograms 9
|
||||
#draw humanDecayPileupHistograms 1
|
||||
#draw humanDecayPileupHistograms 6
|
||||
#draw humanDecayPileupHistograms 9
|
||||
$
|
188
musrSimAna/14510b.v1190
Normal file
188
musrSimAna/14510b.v1190
Normal file
@ -0,0 +1,188 @@
|
||||
# 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=HighField
|
||||
|
||||
DESCRIPTION=No Veto -- 1port
|
||||
TYPE=TDCV1190
|
||||
RESOLUTION=100
|
||||
|
||||
MDELAY=0
|
||||
PDELAY=2000
|
||||
#REWINDTIMEBINS=10000000
|
||||
|
||||
MCOINCIDENCEW=50
|
||||
PCOINCIDENCEW=50
|
||||
VCOINCIDENCEW=100
|
||||
|
||||
MUONRATEFACTOR=0.954732
|
||||
#MUONRATEFACTOR=1000
|
||||
INFINITELYLOWMUONRATE
|
||||
|
||||
DATAWINDOWMIN=-2
|
||||
DATAWINDOWMAX=10.0
|
||||
PILEUPWINDOWMIN=-10.2
|
||||
PILEUPWINDOWMAX=10.2
|
||||
|
||||
102; "M up"; M; 0.4; 2005; -51 ;
|
||||
1; "B1"; P; 0.4; 2005; ; B1; 1485; 1515; 50995;
|
||||
2; "B2"; P; 0.4; 2005; ; B2; 1485; 1515; 50995;
|
||||
3; "B3"; P; 0.4; 2005; ; B3; 1485; 1515; 50995;
|
||||
4; "B4"; P; 0.4; 2005; ; B4; 1485; 1515; 50995;
|
||||
5; "B5"; P; 0.4; 2005; ; B5; 1485; 1515; 50995;
|
||||
6; "B6"; P; 0.4; 2005; ; B6; 1485; 1515; 50995;
|
||||
7; "B7"; P; 0.4; 2005; ; B7; 1485; 1515; 50995;
|
||||
8; "B8"; P; 0.4; 2005; ; B8; 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;
|
||||
14; "F4"; P; 0.4; 2005; ; F14; 1485; 1515; 50995;
|
||||
15; "F5"; P; 0.4; 2005; ; F15; 1485; 1515; 50995;
|
||||
16; "F6"; P; 0.4; 2005; ; F16; 1485; 1515; 50995;
|
||||
17; "F7"; P; 0.4; 2005; ; F17; 1485; 1515; 50995;
|
||||
18; "F8"; P; 0.4; 2005; ; F18; 1485; 1515; 50995;
|
||||
51; "Mveto"; V; 0.8; 2005; ; MV; 1485; 1515; 50995;
|
||||
! 61; "PB1"; V; 0.1; 2005; ; PB1; 1485; 1515; 50995;
|
||||
! 62; "PB2"; V; 0.1; 2005; ; PB2; 1485; 1515; 50995;
|
||||
! 63; "PB3"; V; 0.1; 2005; ; PB3; 1485; 1515; 50995;
|
||||
! 64; "PB4"; V; 0.1; 2005; ; PB4; 1485; 1515; 50995;
|
||||
! 65; "PB5"; V; 0.1; 2005; ; PB5; 1485; 1515; 50995;
|
||||
! 66; "PB6"; V; 0.1; 2005; ; PB6; 1485; 1515; 50995;
|
||||
! 67; "PB7"; V; 0.1; 2005; ; PB7; 1485; 1515; 50995;
|
||||
! 68; "PB8"; V; 0.1; 2005; ; PB8; 1485; 1515; 50995;
|
||||
! 71; "PF1"; V; 0.1; 2005; ; PF1; 1485; 1515; 50995;
|
||||
! 72; "PF2"; V; 0.1; 2005; ; PF2; 1485; 1515; 50995;
|
||||
! 73; "PF3"; V; 0.1; 2005; ; PF3; 1485; 1515; 50995;
|
||||
! 74; "PF4"; V; 0.1; 2005; ; PF4; 1485; 1515; 50995;
|
||||
! 75; "PF5"; V; 0.1; 2005; ; PF5; 1485; 1515; 50995;
|
||||
! 76; "PF6"; V; 0.1; 2005; ; PF6; 1485; 1515; 50995;
|
||||
! 77; "PF7"; V; 0.1; 2005; ; PF7; 1485; 1515; 50995;
|
||||
! 78; "PF8"; V; 0.1; 2005; ; PF8; 1485; 1515; 50995;
|
||||
!30; Ch30; N;
|
||||
!31; Ch31; N;
|
||||
|
||||
counterPhaseShifts 1 0 2 45 3 90 4 135 5 180 6 225 7 270 8 315
|
||||
counterPhaseShifts 11 0 12 45 13 90 14 135 15 180 16 225 17 270 18 315
|
||||
#counterPhaseShifts 1 0 8 45 7 90 6 135 5 180 4 225 3 270 2 315
|
||||
#counterPhaseShifts 11 0 18 45 17 90 16 135 15 180 14 225 13 270 12 315
|
||||
|
||||
counterGrouping B 1 2 3 4 5 6 7 8
|
||||
counterGrouping F 11 12 13 14 15 16 17 18
|
||||
counterGrouping U 1 11
|
||||
counterGrouping D 5 15
|
||||
counterGrouping L 3 13
|
||||
counterGrouping R 7 17
|
||||
|
||||
sampleID 201 202
|
||||
|
||||
musrTH1D hMuTargetPol_Theta "Muon polarisation in the sample;#theta (deg);N" 300 60. 120. muTargetPol_Theta
|
||||
musrTH1D hMuTargetPol_Phi "Muon polarisation in the sample;#phi (deg);N" 1800 -180. 180. muTargetPol_Phi
|
||||
musrTH1D hMuTargetPol_Phi360 "Muon polarisation in the sample;#phi+360 (deg);N" 1800 0. 360. muTargetPol_Phi360
|
||||
musrTH1D hPos_Phi_MINUS_muDecayPol_Phi ";#phi_{e ini} - #phi_{#mu decay spin} (deg);N" 360 -180. 180. pos_Phi_MINUS_muDecayPol_Phi
|
||||
musrTH1D hPos_Phi_MINUS_muDecayPol_Phi360 ";#phi_{e ini} - #phi_{#mu decay spin} (deg);N" 360 0. 360. pos_Phi_MINUS_muDecayPol_Phi360
|
||||
musrTH1D hdetP_phi_MINUS_pos_Phi ";#phi_{det} - #phi_{e ini} (deg);N" 360 -180. 180. detP_phi_MINUS_pos_Phi
|
||||
musrTH1D hdetP_phi_MINUS_pos_Phi360 ";#phi_{det} - #phi_{e ini} (deg);N" 360 0. 360. detP_phi_MINUS_pos_Phi360
|
||||
musrTH1D hdet_time1_MINUS_muDecayTime ";TOF_{e} + TDC smearing;N" 500 0. 500. det_time1_MINUS_muDecayTime
|
||||
musrTH1D hdetP_time_start_MINUS_muDecayTime ";TOF_{e};N" 500 0. 500. detP_time_start_MINUS_muDecayTime
|
||||
musrTH2D hMuDecayMap "Muon decay map;z [mm]; r[mm]" 100 -80. 20. 40 0. 20. muDecayPosZ muDecayPosR
|
||||
musrTH1D hMuDecayPosZall "Z of muons when they decay;z[mm];N" 4002 -2001 2001 muDecayPosZ
|
||||
musrTH1D hMuDecayPosZ "Penetration of muons into the sample;z[mm];N" 100 -5.0 5. muDecayPosZ
|
||||
musrTH1D hMuDecayPosX "X of decayed muons;x[mm];N" 100 -5.0 5. muDecayPosX
|
||||
musrTH1D hPosMom "Momentum of the produced positrons;P [MeV];N" 55 0. 55. pos_Momentum
|
||||
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 hdet_time10 "detected muSR spectra;time[#mus];N" 240 -1. 11. det_time10
|
||||
musrTH1D hdet_time10 "detected muSR spectra;time[#mus];N" 120 0.386 0.398 det_time10
|
||||
musrTH1D hdet_time20 "detected muSR spectra (phase shifted);time[#mus];N" 120 0.386 0.398 det_time20
|
||||
musrTH1D hdet_time10_bgr1 "detected muSR spectra (phase shifted);time[#mus];N" 280 -3. 11. det_time10
|
||||
musrTH1D hdet_time10_bgr3 "detected muSR spectra (phase shifted);time[#mus];N" 280 -3. 11. det_time10
|
||||
#musrTH1D hdet_time20 "detected muSR spectra (phase shifted);time[#mus];N" 240 -1. 11. det_time20
|
||||
musrTH1D hgen_time10 "generated muSR spectra;time[#mus];N" 240 -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 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 202 Sample 165 Holder 166 Holder 245 CollimB 246 CollimB 241 CollimA 242 CollimA 102 M0 109 M0hold 1 BC 2 BC 3 BC 4 BC 5 BC 6 BC 7 BC 8 BC 11 FC 12 FC 13 FC 14 FC 15 FC 16 FC 17 FC 18 FC 511 Shield1 512 Shield1 513 Shield1 515 Shield1 516 Shield1 521 Shield2 522 Shield2 523 Shield2 525 Shield2 526 Shield2 531 Shield3 532 Shield3 533 Shield3 535 Shield3 536 Shield3 541 Shield4 542 Shield4 543 Shield4 545 Shield4 546 Shield4 51 Veto0 61 Veto1 62 Veto1 63 Veto1 64 Veto1 -1 World 231 World 233 World -1000 Escaped
|
||||
musrTH1D hdet_time20_rotref "rot ref frame;time[#mus];N" 240 -1.0 11. det_time20 rotreference 1354 0
|
||||
#musrTH1D hdet_time20_rotrefTwo "rot ref frame 2;time[#mus];N" 240 -1.0 11. det_time20 rotreference -1353 0
|
||||
musrTH1D hdet_time10_exp "hdet_time10_exp;time[#mus];N" 240 -1.0 11. det_time10 correctexpdecay
|
||||
musrTH2D hMuTargetPolPhi_pInit ";#phi_{#mu spin} (deg); p_{#mu init} (MeV/c)" 100 0. 360. 100 25.7 28.9 muTargetPol_Phi360 muIniMomZ
|
||||
musrTH2D hMuTargetPolPhi_RInit ";#phi_{#mu spin} (deg); R_{#mu init} (mm)" 100 0. 360. 100 0. 40. muTargetPol_Phi360 muIniPosR
|
||||
|
||||
|
||||
|
||||
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_det_AND_muonDecayedInSample_gen
|
||||
condition 11 goodEvent_F_det
|
||||
condition 12 goodEvent_B_det
|
||||
condition 13 goodEvent_U_det
|
||||
condition 14 goodEvent_D_det
|
||||
condition 15 goodEvent_L_det
|
||||
condition 16 goodEvent_R_det
|
||||
condition 17 goodEvent_F_det_AND_pileupEvent
|
||||
condition 18 goodEvent_B_det_AND_pileupEvent
|
||||
condition 19 goodEvent_U_det_AND_pileupEvent
|
||||
condition 20 goodEvent_D_det_AND_pileupEvent
|
||||
condition 21 goodEvent_L_det_AND_pileupEvent
|
||||
condition 22 goodEvent_R_det_AND_pileupEvent
|
||||
condition 29 muonTriggered_gen_AND_muonDecayedInSample_gen
|
||||
fit hMuTargetPol_Phi gaus "" -180. 180. 1000. 0. 10.
|
||||
fit hMuTargetPol_Phi360 gaus "" 0. 360. 1000. 0. 10.
|
||||
fit hMuTargetPol_Theta gaus "" 60. 120. 1000. 0. 10.
|
||||
fit hdet_time20 funct1 "" 0.388 0.3967 0 0 0.3 100
|
||||
#fit hdet_time20 simpleExpoPLUSconst "" 0.1 9.9 100 1
|
||||
fit hdet_time20_rotref rotFrameTime20 "" 0.2 9.8 0 0 100
|
||||
fit hdet_time10 simpleExpoPLUSconst "" 0.2 9.8 100 1
|
||||
fit hdet_time10_exp TFieldCosPLUSbg "" 0.2 9.8 1 0 0.3 300 1
|
||||
fit hdet_time10_bgr1 pol0 "" 0.2 9.8
|
||||
fit hdet_time10_bgr3 pol0 "" -1.9 -0.1
|
||||
#fit hdet_time20_rotrefTwo rotFrameTime20 "" 0.1 9.9 0 0 100
|
||||
|
||||
#draw hMuDecayPosZ 0
|
||||
#draw hMuDecayPosZall 1
|
||||
#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 hgen_time10 7
|
||||
draw hdet_time20 6
|
||||
draw hgen_time20 7
|
||||
draw hdet_time20_rotref 6
|
||||
draw hdet_time20_bgr 6
|
||||
#draw hdet_time20_rotrefTwo 6
|
||||
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 9
|
||||
#draw humanDecayHistograms 1
|
||||
#draw humanDecayHistograms 6
|
||||
#draw humanDecayHistograms 9
|
||||
#draw humanDecayPileupHistograms 1
|
||||
#draw humanDecayPileupHistograms 6
|
||||
#draw humanDecayPileupHistograms 9
|
||||
$
|
@ -89,10 +89,10 @@ condition 7 goodEvent_gen
|
||||
condition 8 goodEvent_det_AND_goodEvent_gen
|
||||
condition 9 pileupEvent
|
||||
|
||||
#fit hdet_time20 pol0 -1.9 -0.1 0
|
||||
#fit hdet_time20 funct1 0.2 9.8 0 0 0.3 100
|
||||
#fit hdet_time20 funct2 0.2 9.8 0 0 0.3 100 0
|
||||
fit hdet_time20 funct4 0.2 9.8 0 0 0.3 100 0
|
||||
#fit hdet_time20 pol0 "" -1.9 -0.1 0
|
||||
#fit hdet_time20 funct1 "" 0.2 9.8 0 0 0.3 100
|
||||
#fit hdet_time20 funct2 "" 0.2 9.8 0 0 0.3 100 0
|
||||
fit hdet_time20 funct4 "" 0.2 9.8 0 0 0.3 100 0
|
||||
|
||||
#draw hMuDecayPosZ 0
|
||||
draw hMuDecayPosZ 1
|
||||
|
@ -89,10 +89,10 @@ condition 7 goodEvent_gen
|
||||
condition 8 goodEvent_det_AND_goodEvent_gen
|
||||
condition 9 pileupEvent
|
||||
|
||||
#fit hdet_time20 pol0 -1.9 -0.1 0
|
||||
#fit hdet_time20 funct1 0.2 9.8 0 0 0.3 100
|
||||
#fit hdet_time20 funct2 0.2 9.8 0 0 0.3 100 0
|
||||
fit hdet_time20 funct4 1.5 9.8 0 0 0.3 100 0
|
||||
#fit hdet_time20 pol0 "" -1.9 -0.1 0
|
||||
#fit hdet_time20 funct1 "" 0.2 9.8 0 0 0.3 100
|
||||
#fit hdet_time20 funct2 "" 0.2 9.8 0 0 0.3 100 0
|
||||
fit hdet_time20 funct4 "" 1.5 9.8 0 0 0.3 100 0
|
||||
|
||||
#draw hMuDecayPosZ 0
|
||||
draw hMuDecayPosZ 1
|
||||
|
@ -412,6 +412,7 @@ void musrAnalysis::ReadInInputParameters(char* charV1190FileName) {
|
||||
else if (strcmp(conditionNameTMP,"oncePerEvent")==0) conditionMap[iConditionTMP]=&oncePerEvent;
|
||||
else if (strcmp(conditionNameTMP,"muonDecayedInSample_gen")==0) conditionMap[iConditionTMP]=&muonDecayedInSample_gen;
|
||||
else if (strcmp(conditionNameTMP,"muonTriggered_gen")==0) conditionMap[iConditionTMP]=&muonTriggered_gen;
|
||||
else if (strcmp(conditionNameTMP,"muonTriggered_gen_AND_muonDecayedInSample_gen")==0) conditionMap[iConditionTMP]=&muonTriggered_gen_AND_muonDecayedInSample_gen;
|
||||
else if (strcmp(conditionNameTMP,"muonTriggered_det")==0) conditionMap[iConditionTMP]=&muonTriggered_det;
|
||||
else if (strcmp(conditionNameTMP,"positronHit_det")==0) conditionMap[iConditionTMP]=&positronHit_det;
|
||||
else if (strcmp(conditionNameTMP,"goodEvent_det")==0) conditionMap[iConditionTMP]=&goodEvent_det;
|
||||
@ -652,12 +653,10 @@ void musrAnalysis::ReadInInputParameters(char* charV1190FileName) {
|
||||
funct -> SetParameter(2,p2);
|
||||
}
|
||||
else if (strcmp(functionName,"gaus")==0) {
|
||||
std::cout<<"Gausssssssss"<<std::endl;
|
||||
funct = new TF1("gaus","gaus");
|
||||
funct -> SetParameter(0,p0);
|
||||
funct -> SetParameter(1,p1);
|
||||
funct -> SetParameter(2,p2);
|
||||
std::cout<<"GausssssssssGausssssssss"<<std::endl;
|
||||
}
|
||||
else {
|
||||
std::cout<<"musrAnalysis::ReadInInputParameters: function \""<<functionName<<"\" not defined! ==> S T O P"<<std::endl;
|
||||
@ -1205,6 +1204,7 @@ void musrAnalysis::FillHistograms(Int_t iiiEntry) {
|
||||
// of the sample volume (or volumes) is defined in the *.v1190 file after the keyword "sampleID":
|
||||
muonDecayedInSample_gen = (find(SampleDetIDList.begin(), SampleDetIDList.end(), muDecayDetID)) != SampleDetIDList.end() ;
|
||||
muonTriggered_gen = muM0Time > -1000;
|
||||
muonTriggered_gen_AND_muonDecayedInSample_gen = muonTriggered_gen && muonDecayedInSample_gen;
|
||||
muonTriggered_det = mCounterHitExistsForThisEventID;
|
||||
positronHit_det = pCounterHitExistsForThisEventID;
|
||||
goodEvent_det = muonTriggered_det && positronHit_det;
|
||||
|
@ -255,6 +255,7 @@ public :
|
||||
Bool_t oncePerEvent;
|
||||
Bool_t muonDecayedInSample_gen;
|
||||
Bool_t muonTriggered_gen;
|
||||
Bool_t muonTriggered_gen_AND_muonDecayedInSample_gen;
|
||||
Bool_t muonTriggered_det;
|
||||
Bool_t positronHit_det;
|
||||
Bool_t goodEvent_det;
|
||||
|
@ -297,5 +297,5 @@
|
||||
######################## B E A M O N #########################################
|
||||
###################################################################################
|
||||
#/run/beamOn 3000000
|
||||
#/run/beamOn 100
|
||||
/run/beamOn 1000000
|
||||
/run/beamOn 1000
|
||||
#/run/beamOn 1000000
|
||||
|
70
run/visDawn14510.mac
Normal file
70
run/visDawn14510.mac
Normal file
@ -0,0 +1,70 @@
|
||||
# This is a macro file for visualizing G4 events.
|
||||
# It can either be included in another macro or called with /control/exec vis.mac
|
||||
|
||||
# Create an OpenGL driver (i.e. a scene handler and viewer)
|
||||
# Some useful choices: VRML2FILE, OGLSX, OGLIX, DAWNFILE, etc.
|
||||
#/vis/open VRML2FILE
|
||||
#*/vis/open OGLIX 600x600-0+0
|
||||
/vis/open DAWNFILE
|
||||
|
||||
# To calculate volumes and masses uncomment the next two lines
|
||||
#*/vis/open ATree
|
||||
#*/vis/ASCIITree/verbose 4
|
||||
|
||||
|
||||
# Create a new empty scene and attach it to handler
|
||||
/vis/scene/create
|
||||
|
||||
# Add world volume, trajectories and hits to the scene
|
||||
/vis/scene/add/volume
|
||||
/vis/scene/add/trajectories
|
||||
/vis/scene/add/hits
|
||||
/vis/sceneHandler/attach
|
||||
|
||||
# Configure the viewer (optional)
|
||||
#/vis/viewer/set/viewpointThetaPhi 235 -45
|
||||
/vis/viewer/set/viewpointThetaPhi 90 180
|
||||
#/vis/viewer/set/lightsThetaPhi 120 60
|
||||
#/vis/viewer/set/hiddenEdge true
|
||||
#/vis/viewer/set/style surface
|
||||
/vis/viewer/zoom 25
|
||||
# Style: s - surface, w - wireframe
|
||||
# Note: "surface style" and "hiddenEdge true" remove transparency!
|
||||
# Other viewpoints (25 55) (235 -45) (125 35)
|
||||
|
||||
|
||||
# Store trajectory information for visualisation (set to 0 if too many tracks cause core dump)
|
||||
/tracking/storeTrajectory 1
|
||||
|
||||
#At the end of each event (default behaviour)
|
||||
#/vis/scene/endOfEventAction refresh
|
||||
#At the end of run of X events - Data from X events will be superimposed
|
||||
#cks
|
||||
#/vis/scene/endOfEventAction accumulate
|
||||
#At the end of Y runs - Data from Y runs will be superimposed
|
||||
#/vis/scene/endOfRunAction accumulate
|
||||
|
||||
# Coloured trajectories for an easier particle identification:
|
||||
# PDG IDs and colours: e- 11 red, e+ -11 blue, nu_e 12 yellow,
|
||||
# mu+ -13 magenta, anti_nu_mu -14 green, gamma 22 grey
|
||||
#
|
||||
#/vis/modeling/trajectories/create/drawByCharge
|
||||
#/vis/modeling/trajectories/drawByCharge-0/set 1 cyan
|
||||
|
||||
/vis/modeling/trajectories/create/drawByParticleID
|
||||
#*/vis/modeling/trajectories/drawByParticleID-0/set gamma grey
|
||||
#/vis/modeling/trajectories/drawByParticleID-0/setRGBA gamma 1 1 1 0
|
||||
/vis/modeling/trajectories/drawByParticleID-0/setRGBA mu+ 1 0 0 1
|
||||
/vis/modeling/trajectories/drawByParticleID-0/setRGBA e+ 0 0 1 1
|
||||
/vis/modeling/trajectories/drawByParticleID-0/setRGBA gamma 0 1 0 1
|
||||
/vis/modeling/trajectories/drawByParticleID-0/setRGBA e- 1 0 1 1
|
||||
/vis/modeling/trajectories/drawByParticleID-0/setRGBA nu_e 1 1 1 0 1
|
||||
/vis/modeling/trajectories/drawByParticleID-0/setRGBA anti_nu_mu 1 1 1 0.5
|
||||
#/vis/modeling/trajectories/drawByParticleID-0/set nu_e white
|
||||
#/vis/modeling/trajectories/drawByParticleID-0/set anti_nu_mu white
|
||||
|
||||
# Verbosity of hits
|
||||
#/hits/verbose 2
|
||||
|
||||
# Output just the detector geometry
|
||||
/vis/viewer/flush
|
63
run/visVRML.mac
Normal file
63
run/visVRML.mac
Normal file
@ -0,0 +1,63 @@
|
||||
# This is a macro file for visualizing G4 events.
|
||||
# It can either be included in another macro or called with /control/exec vis.mac
|
||||
|
||||
# Create an OpenGL driver (i.e. a scene handler and viewer)
|
||||
# Some useful choices: VRML2FILE, OGLSX, OGLIX, DAWNFILE, etc.
|
||||
/vis/open VRML2FILE
|
||||
#*/vis/open OGLIX 600x600-0+0
|
||||
#/vis/open DAWNFILE
|
||||
|
||||
# To calculate volumes and masses uncomment the next two lines
|
||||
#*/vis/open ATree
|
||||
#*/vis/ASCIITree/verbose 4
|
||||
|
||||
|
||||
# Create a new empty scene and attach it to handler
|
||||
/vis/scene/create
|
||||
|
||||
# Add world volume, trajectories and hits to the scene
|
||||
/vis/scene/add/volume
|
||||
/vis/scene/add/trajectories
|
||||
/vis/scene/add/hits
|
||||
/vis/sceneHandler/attach
|
||||
|
||||
# Configure the viewer (optional)
|
||||
/vis/viewer/set/viewpointThetaPhi 235 -45
|
||||
/vis/viewer/set/lightsThetaPhi 120 60
|
||||
#/vis/viewer/set/hiddenEdge true
|
||||
#/vis/viewer/set/style surface
|
||||
#/vis/viewer/zoom 0.5
|
||||
# Style: s - surface, w - wireframe
|
||||
# Note: "surface style" and "hiddenEdge true" remove transparency!
|
||||
# Other viewpoints (25 55) (235 -45) (125 35)
|
||||
|
||||
|
||||
# Store trajectory information for visualisation (set to 0 if too many tracks cause core dump)
|
||||
/tracking/storeTrajectory 1
|
||||
|
||||
#At the end of each event (default behaviour)
|
||||
#/vis/scene/endOfEventAction refresh
|
||||
#At the end of run of X events - Data from X events will be superimposed
|
||||
#cks/vis/scene/endOfEventAction accumulate
|
||||
#At the end of Y runs - Data from Y runs will be superimposed
|
||||
#/vis/scene/endOfRunAction accumulate
|
||||
|
||||
# Coloured trajectories for an easier particle identification:
|
||||
# PDG IDs and colours: e- 11 red, e+ -11 blue, nu_e 12 yellow,
|
||||
# mu+ -13 magenta, anti_nu_mu -14 green, gamma 22 grey
|
||||
#
|
||||
#/vis/modeling/trajectories/create/drawByCharge
|
||||
#/vis/modeling/trajectories/drawByCharge-0/set 1 cyan
|
||||
|
||||
/vis/modeling/trajectories/create/drawByParticleID
|
||||
#*/vis/modeling/trajectories/drawByParticleID-0/set gamma grey
|
||||
/vis/modeling/trajectories/drawByParticleID-0/setRGBA mu+ 1 0 1 1
|
||||
/vis/modeling/trajectories/drawByParticleID-0/setRGBA e+ 0 0 0.8 0.5
|
||||
#*/vis/modeling/trajectories/drawByParticleID-0/setRGBA nu_e 0.7 0.7 0 1
|
||||
#*/vis/modeling/trajectories/drawByParticleID-0/setRGBA anti_nu_mu 0.3 1.0 0 0.5
|
||||
|
||||
# Verbosity of hits
|
||||
#/hits/verbose 2
|
||||
|
||||
# Output just the detector geometry
|
||||
/vis/viewer/flush
|
301
run/vis_14510.mac
Normal file
301
run/vis_14510.mac
Normal file
@ -0,0 +1,301 @@
|
||||
#-----------------------------------------------------------------------
|
||||
# Macro file for muSR instrument simulations
|
||||
# Unless specified otherwises, the default units are mm, ns, MeV, MeV/c.
|
||||
# Lines starting with star "#" are comments.
|
||||
###################################################################################
|
||||
############################# G E O M E T R Y ###################################
|
||||
###################################################################################
|
||||
# ROTATION MATRIXES:
|
||||
/musr/command rotation matrix1 0 0 45
|
||||
/musr/command rotation matrix2 0 180 0
|
||||
# WORLD VOLUME
|
||||
/musr/command construct box World 300 300 2000 G4_Galactic 0 0 0 no_logical_volume norot dead -1
|
||||
# ---- BEAMPIPE ----
|
||||
# Between the face of the last quadrupole and the MANTEL, there is 395 mm distance
|
||||
# = tube with the same diameter as the MANTEL.
|
||||
# MANTEL
|
||||
/musr/command construct tubs mantel_A 159 165 210 0 360 G4_Al 0 0 -1152 log_World norot dead 8301
|
||||
/musr/command construct tubs mantel_B 76.5 159 12.5 0 360 G4_Al 0 0 -954.5 log_World norot dead 8302
|
||||
/musr/command construct tubs mantel_C 165 185 8.5 0 360 G4_Al 0 0 -1353.5 log_World norot dead 8303
|
||||
# NEW HIGH FIELD "ZWICHENROHR" (Gezeichnet 7.2.2011)
|
||||
/musr/command construct tubs zwichenrohr_A 35 41 322 0 360 G4_Al 0 0 -620 log_World norot dead 8201
|
||||
/musr/command construct tubs zwichenrohr_B 0 35 322 0 360 G4_Galactic 0 0 -620 log_World norot dead 8202
|
||||
/musr/command construct tubs zwichenrohr_C 41 90 6 0 360 G4_Al 0 0 -936 log_World norot dead 8203
|
||||
/musr/command construct tubs zwichenrohr_D 25 35 5 0 360 G4_Al 0 0 317 log_zwichenrohr_B norot dead 8204
|
||||
# SECOND COLLIMATOR
|
||||
/musr/command construct tubs collimatorA2 7.5 35 25 0 360 G4_Cu 0 0 287 log_zwichenrohr_B norot dead 341
|
||||
# NOSE EXTENSION
|
||||
/musr/command construct tubs noseExtensionA 15 25 2.0 0 360 G4_Al 0 0 -47 log_World norot dead 300
|
||||
/musr/command construct tubs noseExtensionB 25 28 126.5 0 360 G4_Al 0 0 -171.5 log_World norot dead 302
|
||||
/musr/command construct tubs noseExtensionC 28 41 4.0 0 360 G4_Al 0 0 -294 log_World norot dead 304
|
||||
/musr/command construct tubs noseKaptonWindow 0 15 0.015 0 360 G4_KAPTON 0 0 -45.1 log_World norot dead 309
|
||||
# COLLIMATOR
|
||||
#/musr/command construct tubs collimatorA 2.5 25 15 0 360 G4_Pb 0 0 -49 log_World norot dead 310
|
||||
#/musr/command construct tubs collimatorB 5.0 25 10 0 360 G4_Pb 0 0 -74 log_World norot dead 312
|
||||
#/musr/command construct tubs collimatorC 7.5 25 25 0 360 G4_Pb 0 0 -309 log_World norot dead 312
|
||||
# COLLIMATOR
|
||||
/musr/command construct tubs collimatorA 2.5 25 15 0 360 G4_Pb 0 0 -64 log_World norot dead 310
|
||||
/musr/command construct tubs collimatorB 3.5 25 10 0 360 G4_Pb 0 0 -89 log_World norot dead 312
|
||||
/musr/command construct tubs collimatorC 5.0 25 10 0 360 G4_Pb 0 0 -109 log_World norot dead 314
|
||||
#
|
||||
# ---- MAGNET -----
|
||||
/musr/command construct tubs magnet 44.4 100 150 0 360 G4_Sn 0 0 0 log_World norot dead 221
|
||||
# MAGNET WALL
|
||||
/musr/command construct tubs mag_wall 44.4 46.5 150 0 360 G4_Cu 0 0 0 log_magnet norot dead 222
|
||||
#
|
||||
# ---- CRYOSTAT ----
|
||||
/musr/command construct tubs cryo_1_cyl 7 7.5 13.0 0 360 G4_Al 0 0 2.5 log_World norot dead 511
|
||||
/musr/command construct tubs cryo_1_window 0 7.0 0.005 0 360 G4_MYLAR 0 0 -5.4 log_World norot dead 513
|
||||
/musr/command construct tubs cryo_1_cyl_b 9.8 10.5 16 0 360 G4_Al 0 0 32.5 log_World norot dead 515
|
||||
/musr/command construct tubs cryo_1_flange_b 7 10.5 0.5 0 360 G4_Al 0 0 16 log_World norot dead 516
|
||||
/musr/command construct cons cryo_1_conical 9.8 10.5 13.5 14.2 10 0 360 G4_Al 0 0 58.5 log_World norot dead 517
|
||||
/musr/command construct tubs cryo_1_cyl_c 13.5 14.2 60 0 360 G4_Al 0 0 128.5 log_World norot dead 518
|
||||
#
|
||||
/musr/command construct tubs cryo_2_cyl 15.5 16 33.0 0 360 G4_Al 0 0 13.0 log_World norot dead 521
|
||||
/musr/command construct tubs cryo_2_flange 10 15.5 0.25 0 360 G4_Al 0 0 -19.75 log_World norot dead 522
|
||||
/musr/command construct tubs cryo_2_window 0 11 0.005 0 360 G4_MYLAR 0 0 -20.1 log_World norot dead 523
|
||||
/musr/command construct tubs cryo_2_flange_b 15.5 29.5 0.5 0 360 G4_Al 0 0 46.5 log_World norot dead 525
|
||||
/musr/command construct tubs cryo_2_cyl_b 28.5 29.5 61.25 0 360 G4_Al 0 0 108.25 log_World norot dead 526
|
||||
#
|
||||
/musr/command construct tubs cryo_3_cyl 18.0 18.5 33.0 0 360 G4_Al 0 0 8.5 log_World norot dead 531
|
||||
/musr/command construct tubs cryo_3_flange 8 18.0 0.25 0 360 G4_Al 0 0 -24.25 log_World norot dead 532
|
||||
/musr/command construct tubs cryo_3_window 0 9 0.005 0 360 G4_MYLAR 0 0 -24.6 log_World norot dead 533
|
||||
/musr/command construct tubs cryo_3_flange_b 18.0 34.5 0.5 0 360 G4_Al 0 0 42 log_World norot dead 535
|
||||
/musr/command construct tubs cryo_3_cyl_b 33.5 34.5 61.25 0 360 G4_Al 0 0 103.75 log_World norot dead 536
|
||||
#
|
||||
/musr/command construct tubs cryo_4_cyl 20 21 31.25 0 360 G4_Al 0 0 4.25 log_World norot dead 541
|
||||
/musr/command construct tubs cryo_4_flange 6 20 0.5 0 360 G4_Al 0 0 -26.5 log_World norot dead 542
|
||||
/musr/command construct tubs cryo_4_window 0 7 0.005 0 360 G4_Ti 0 0 -27.1 log_World norot dead 543
|
||||
/musr/command construct tubs cryo_4_flange_b 20 41 1 0 360 G4_Al 0 0 36.5 log_World norot dead 545
|
||||
/musr/command construct tubs cryo_4_cyl_b 39 41 61.25 0 360 G4_Al 0 0 98.75 log_World norot dead 546
|
||||
#
|
||||
# Back Flange 45
|
||||
/musr/command construct tubs backFlangeA 30 34.5 1.5 0 360 G4_Al 0 0 22.75 log_World norot dead 240
|
||||
/musr/command construct tubs backFlangeB 22.5 40.5 1.5 0 360 G4_Al 0 0 25.75 log_World norot dead 241
|
||||
# Main Holder 45
|
||||
/musr/command construct tubs mainHolder 30.19 34.19 21.2 0 360 G4_Al 0 0 0 log_World norot dead 250
|
||||
# SPACER 45
|
||||
/musr/command construct tubs spacer 29.88 34.5 4.9 0 360 G4_Al 0 0 -26.1 log_World norot dead 260
|
||||
# MPPC Holder 45
|
||||
/musr/command construct tubs frontLid1A 16.5 34.5 5.5 0 360 G4_Al 0 0 -36.5 log_World norot dead 270
|
||||
/musr/command construct tubs frontLid1D 6.0 16.5 1.0 0 360 G4_Al 0 0 -32.0 log_World norot dead 277
|
||||
#
|
||||
# Front Flange 45
|
||||
/musr/command construct tubs frontLid2 6.0 34.5 1.5 0 360 G4_Al 0 0 -43.5 log_World norot dead 290
|
||||
#
|
||||
# NOSE EXTENSION
|
||||
#/musr/command construct tubs noseExtensionA 15 25 2.0 0 360 G4_Al 0 0 -47 log_World norot dead 300
|
||||
#/musr/command construct tubs noseExtensionB 25 28 126.5 0 360 G4_Al 0 0 -171.5 log_World norot dead 302
|
||||
#/musr/command construct tubs noseExtensionC 28 41 4.0 0 360 G4_Al 0 0 -294 log_World norot dead 304
|
||||
#
|
||||
#
|
||||
# M COUNTERS AND M COUNTER HOLDER
|
||||
/musr/command construct tubs M0_holder1 5.5 7.5 3.25 0 360 G4_Al 0 0 -36.31 log_World norot dead 330
|
||||
/musr/command construct tubs M0_holder2 3.5 5.5 0.75 0 360 G4_PLEXIGLASS 0 0 -37.06 log_World norot dead 333
|
||||
/musr/command construct tubs M0_holder3 4.0 5.5 0.75 0 360 G4_PLEXIGLASS 0 0 -35.56 log_World norot dead 335
|
||||
/musr/command construct tubs M0 0 4 0.15 0 360 G4_PLASTIC_SC_VINYLTOLUENE 0 0 -36.15 log_World norot musr/ScintSD 102
|
||||
/musr/command construct tubs M0_electronics 4.0 9 0.85 0 360 G4_POLYCARBONATE 0 0 -40.41 log_World norot dead 337
|
||||
|
||||
# TARGET SPACE
|
||||
#/musr/command construct tubs targetspace 0 5 50 0 360 G4_He 0 0 -20 log_cryostat
|
||||
# SCINTILLATOR BEFORE TARGET
|
||||
#/musr/command construct tubs coulombM1 0 3.0 0.1 0 360 G4_PLASTIC_SC_VINYLTOLUENE 0 0 -2 log_World norot musr/ScintSD 101
|
||||
# TARGET
|
||||
/musr/command construct tubs target 0 2.5 0.215 0 360 G4_Ag 0 0 0 log_World norot dead 201
|
||||
/musr/command construct tubs targetFieldVol 0 0.5 0.015 0 360 G4_Ag 0 0 0 log_target norot dead 202
|
||||
#/musr/command construct tubs vetoTarget 0 5.0 1. 0 360 G4_PLASTIC_SC_VINYLTOLUENE 0 0 1.220 log_World norot musr/ScintSD 160
|
||||
#/musr/command construct tubs vetoCyl 5 6.0 3.6 0 360 G4_PLASTIC_SC_VINYLTOLUENE 0 0 -1.39 log_World norot musr/ScintSD 161
|
||||
#/musr/command construct TubeWithTubeHole vetoTarget 7 9 5.1 0 360 8.2 G4_PLASTIC_SC_VINYLTOLUENE 0 0 -2.89 log_World norot musr/ScintSD 160
|
||||
#/musr/command construct TubeWithHoleAndTubeHole vetoTarget 1.5 6 5.1 0 360 4 8.2 G4_PLASTIC_SC_VINYLTOLUENE 0 0 -2.89 log_World norot musr/ScintSD 160
|
||||
/musr/command construct tubs sampleHolder 0 4 31.39 0 360 G4_Ag 0 0 31.61 log_World norot dead 165
|
||||
/musr/command construct tubs sampleHolder2 0 7.5 108.5 0 360 G4_Ag 0 0 171.5 log_World norot dead 166
|
||||
#
|
||||
/musr/command construct box ScintB1 8.75 2.50 8.75 G4_PLASTIC_SC_VINYLTOLUENE 0.00 25.50 -8.75 log_World norot musr/ScintSD 1
|
||||
/musr/command construct box ScintB2 8.75 2.50 8.75 G4_PLASTIC_SC_VINYLTOLUENE -18.03 18.03 -8.75 log_World matrix1 musr/ScintSD 2
|
||||
/musr/command construct box ScintB3 2.50 8.75 8.75 G4_PLASTIC_SC_VINYLTOLUENE -25.50 0.00 -8.75 log_World norot musr/ScintSD 3
|
||||
/musr/command construct box ScintB4 2.50 8.75 8.75 G4_PLASTIC_SC_VINYLTOLUENE -18.03 -18.03 -8.75 log_World matrix1 musr/ScintSD 4
|
||||
/musr/command construct box ScintB5 8.75 2.50 8.75 G4_PLASTIC_SC_VINYLTOLUENE 0.00 -25.50 -8.75 log_World norot musr/ScintSD 5
|
||||
/musr/command construct box ScintB6 8.75 2.50 8.75 G4_PLASTIC_SC_VINYLTOLUENE 18.03 -18.03 -8.75 log_World matrix1 musr/ScintSD 6
|
||||
/musr/command construct box ScintB7 2.50 8.75 8.75 G4_PLASTIC_SC_VINYLTOLUENE 25.50 0.00 -8.75 log_World norot musr/ScintSD 7
|
||||
/musr/command construct box ScintB8 2.50 8.75 8.75 G4_PLASTIC_SC_VINYLTOLUENE 18.03 18.03 -8.75 log_World matrix1 musr/ScintSD 8
|
||||
/musr/command construct box ScintF1 8.75 2.50 8.75 G4_PLASTIC_SC_VINYLTOLUENE 0.00 25.50 8.75 log_World norot musr/ScintSD 11
|
||||
/musr/command construct box ScintF2 8.75 2.50 8.75 G4_PLASTIC_SC_VINYLTOLUENE -18.03 18.03 8.75 log_World matrix1 musr/ScintSD 12
|
||||
/musr/command construct box ScintF3 2.50 8.75 8.75 G4_PLASTIC_SC_VINYLTOLUENE -25.50 0.00 8.75 log_World norot musr/ScintSD 13
|
||||
/musr/command construct box ScintF4 2.50 8.75 8.75 G4_PLASTIC_SC_VINYLTOLUENE -18.03 -18.03 8.75 log_World matrix1 musr/ScintSD 14
|
||||
/musr/command construct box ScintF5 8.75 2.50 8.75 G4_PLASTIC_SC_VINYLTOLUENE 0.00 -25.50 8.75 log_World norot musr/ScintSD 15
|
||||
/musr/command construct box ScintF6 8.75 2.50 8.75 G4_PLASTIC_SC_VINYLTOLUENE 18.03 -18.03 8.75 log_World matrix1 musr/ScintSD 16
|
||||
/musr/command construct box ScintF7 2.50 8.75 8.75 G4_PLASTIC_SC_VINYLTOLUENE 25.50 0.00 8.75 log_World norot musr/ScintSD 17
|
||||
/musr/command construct box ScintF8 2.50 8.75 8.75 G4_PLASTIC_SC_VINYLTOLUENE 18.03 18.03 8.75 log_World matrix1 musr/ScintSD 18
|
||||
#
|
||||
/musr/command construct TubeWithHolePlusTubeHole PlexyCyl1 3.5 12.3 4.5 0 360 7 12.5 5 G4_PLEXIGLASS 0 0 -10. log_World matrix2 dead 45
|
||||
/musr/command construct tubs PlexyCyl2 7.6 12.3 2.5 0 360 G4_PLEXIGLASS 0 0 11.5 log_World norot dead 46
|
||||
/musr/command construct TubeWithHolePlusTubeHole vetoCyl 2.5 12. 5. 0 360 3.5 12 9 G4_PLASTIC_SC_VINYLTOLUENE 0 0 -10.5 log_World matrix2 musr/ScintSD 51
|
||||
/musr/command construct tubs vetoCylB1 8.25 11.25 4 69.5 41 G4_PLASTIC_SC_VINYLTOLUENE 0 0 -4.5 log_World norot musr/ScintSD 61
|
||||
/musr/command construct tubs vetoCylB2 8.25 11.25 4 114.5 41 G4_PLASTIC_SC_VINYLTOLUENE 0 0 -4.5 log_World norot musr/ScintSD 62
|
||||
/musr/command construct tubs vetoCylB3 8.25 11.25 4 159.5 41 G4_PLASTIC_SC_VINYLTOLUENE 0 0 -4.5 log_World norot musr/ScintSD 63
|
||||
/musr/command construct tubs vetoCylB4 8.25 11.25 4 204.5 41 G4_PLASTIC_SC_VINYLTOLUENE 0 0 -4.5 log_World norot musr/ScintSD 64
|
||||
/musr/command construct tubs vetoCylB5 8.25 11.25 4 249.5 41 G4_PLASTIC_SC_VINYLTOLUENE 0 0 -4.5 log_World norot musr/ScintSD 65
|
||||
/musr/command construct tubs vetoCylB6 8.25 11.25 4 294.5 41 G4_PLASTIC_SC_VINYLTOLUENE 0 0 -4.5 log_World norot musr/ScintSD 66
|
||||
/musr/command construct tubs vetoCylB7 8.25 11.25 4 339.5 41 G4_PLASTIC_SC_VINYLTOLUENE 0 0 -4.5 log_World norot musr/ScintSD 67
|
||||
/musr/command construct tubs vetoCylB8 8.25 11.25 4 24.5 41 G4_PLASTIC_SC_VINYLTOLUENE 0 0 -4.5 log_World norot musr/ScintSD 68
|
||||
/musr/command construct tubs vetoCylF1 8.25 11.25 4 69.5 41 G4_PLASTIC_SC_VINYLTOLUENE 0 0 4.5 log_World norot musr/ScintSD 71
|
||||
/musr/command construct tubs vetoCylF2 8.25 11.25 4 114.5 41 G4_PLASTIC_SC_VINYLTOLUENE 0 0 4.5 log_World norot musr/ScintSD 72
|
||||
/musr/command construct tubs vetoCylF3 8.25 11.25 4 159.5 41 G4_PLASTIC_SC_VINYLTOLUENE 0 0 4.5 log_World norot musr/ScintSD 73
|
||||
/musr/command construct tubs vetoCylF4 8.25 11.25 4 204.5 41 G4_PLASTIC_SC_VINYLTOLUENE 0 0 4.5 log_World norot musr/ScintSD 74
|
||||
/musr/command construct tubs vetoCylF5 8.25 11.25 4 249.5 41 G4_PLASTIC_SC_VINYLTOLUENE 0 0 4.5 log_World norot musr/ScintSD 75
|
||||
/musr/command construct tubs vetoCylF6 8.25 11.25 4 294.5 41 G4_PLASTIC_SC_VINYLTOLUENE 0 0 4.5 log_World norot musr/ScintSD 76
|
||||
/musr/command construct tubs vetoCylF7 8.25 11.25 4 339.5 41 G4_PLASTIC_SC_VINYLTOLUENE 0 0 4.5 log_World norot musr/ScintSD 77
|
||||
/musr/command construct tubs vetoCylF8 8.25 11.25 4 24.5 41 G4_PLASTIC_SC_VINYLTOLUENE 0 0 4.5 log_World norot musr/ScintSD 78
|
||||
#
|
||||
#---------------------------------------------------------
|
||||
#
|
||||
/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE red
|
||||
/musr/command visattributes G4_PLEXIGLASS yellow
|
||||
/musr/command visattributes G4_Pb blue
|
||||
#/musr/command visattributes log_beampipe invisible
|
||||
#/musr/command visattributes log_beampipeAshell invisible
|
||||
#/musr/command visattributes log_beampipeBshell invisible
|
||||
/musr/command visattributes log_World invisible
|
||||
/musr/command visattributes log_target yellow
|
||||
/musr/command visattributes log_magnet invisible
|
||||
/musr/command visattributes log_mag_wall invisible
|
||||
#/musr/command visattributes log_magnet yellow
|
||||
#/musr/command visattributes log_mag_wall yellow
|
||||
#/musr/command visattributes log_sh0 invisible
|
||||
#/musr/command visattributes log_sh2 invisible
|
||||
#/musr/command visattributes log_vetoTarget green
|
||||
/musr/command visattributes log_vetoCyl green
|
||||
###################################################################################
|
||||
######################### M A G N E T I C F I E L D #########################
|
||||
###################################################################################
|
||||
# Set magnetic field (set field intensity in T and sigma in mm)
|
||||
# syntax for magneticfield: fromfile filename fieldValue
|
||||
# uniform fieldValue
|
||||
# gaussian fieldValue sigma
|
||||
#
|
||||
/musr/command globalfield centralSolenoidField 0. 0. 0. fromfile 2D x10cm_z2m.table log_targetFieldVol -10.
|
||||
/musr/command globalfield setparameter SetLargestAcceptableStep 2
|
||||
/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5
|
||||
/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001
|
||||
/musr/command globalfield setparameter SetDeltaOneStep 0.1
|
||||
/musr/command globalfield setparameter SetDeltaIntersection 0.01
|
||||
/musr/command globalfield printparameters
|
||||
/musr/command globalfield printFieldValueAtPoint 0 0 0
|
||||
###################################################################################
|
||||
######################### P H Y S I C S P R O C E S S E S ##################
|
||||
###################################################################################
|
||||
# Geant 4.9.5
|
||||
/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect
|
||||
/musr/command process addDiscreteProcess gamma G4ComptonScattering
|
||||
/musr/command process addDiscreteProcess gamma G4GammaConversion
|
||||
/musr/command process addDiscreteProcess gamma G4RayleighScattering
|
||||
/musr/command process addProcess e- G4eMultipleScattering -1 1 1
|
||||
/musr/command process addProcess e- G4eIonisation -1 2 2
|
||||
/musr/command process addProcess e- G4eBremsstrahlung -1 3 3
|
||||
/musr/command process addProcess e+ G4eMultipleScattering -1 1 1
|
||||
/musr/command process addProcess e+ G4eIonisation -1 2 2
|
||||
/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3
|
||||
/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4
|
||||
/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1
|
||||
/musr/command process addProcess mu- G4MuIonisation -1 2 2
|
||||
/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3
|
||||
/musr/command process addProcess mu- G4MuPairProduction -1 4 4
|
||||
/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1
|
||||
/musr/command process addProcess mu+ G4MuIonisation -1 2 2
|
||||
/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3
|
||||
/musr/command process addProcess mu+ G4MuPairProduction -1 4 4
|
||||
#
|
||||
#
|
||||
#/home/install/geant4.9.3/source/processes/electromagnetic/utils/src/G4EnergyLossMessenger.cc
|
||||
######## /process/msc/StepLimit Minimal | UseDistanceToBoundary | UseSafety
|
||||
/process/msc/StepLimit UseSafety
|
||||
#/process/msc/LateralDisplacement
|
||||
/process/msc/RangeFactor 0.04
|
||||
/process/msc/GeomFactor 2.5
|
||||
#/process/msc/FactorForAngleLimit
|
||||
/process/msc/Skin 3.0
|
||||
#/process/msc/ThetaLimit 0.2 rad
|
||||
#
|
||||
###################################################################################
|
||||
################## S O M E O T H E R P A R A M E T E R S ##################
|
||||
###################################################################################
|
||||
# Set the overall range cut
|
||||
#/run/setCut 1 mm
|
||||
# Set the range cut on a particular volumes (in mm)
|
||||
/musr/command SetUserLimits log_target 0.01
|
||||
#/musr/command SetUserLimits log_targetscint 0.01
|
||||
/musr/command SetUserLimits log_M0 0.01
|
||||
# Store all events into the ROOT tree or just the interesting ones ? (true is default)
|
||||
/musr/command storeOnlyEventsWithHits false
|
||||
# Set the minimum time separation between two subsequent signals in the same detector (in ns)
|
||||
/musr/command signalSeparationTime 0.1
|
||||
#
|
||||
/musr/run/howOftenToPrintEvent 100000
|
||||
/musr/command maximumRunTimeAllowed 86000
|
||||
/musr/run/randomOption 2
|
||||
###################################################################################
|
||||
######################### R O O T O U T P U T ##############################
|
||||
###################################################################################
|
||||
/musr/command rootOutput det_VvvKine off
|
||||
/musr/command rootOutput det_VvvX off
|
||||
/musr/command rootOutput det_VvvY off
|
||||
/musr/command rootOutput det_VvvZ off
|
||||
/musr/command rootOutput det_VvvVolID off
|
||||
/musr/command rootOutput det_VvvProcID off
|
||||
/musr/command rootOutput det_VvvTrackID off
|
||||
/musr/command rootOutput det_VvvParticleID off
|
||||
###################################################################################
|
||||
######################### V I S U A L I S A T I O N ##############################
|
||||
###################################################################################
|
||||
#/vis/disable
|
||||
#/control/execute visVRML.mac
|
||||
#/control/execute visFromToni.mac
|
||||
/control/execute visDawn14510.mac
|
||||
#/vis/open VRML2FILE
|
||||
#/vis/open DAWNFILE
|
||||
### (if too many tracks cause core dump => storeTrajectory 0)
|
||||
#/vis/scene/create
|
||||
#
|
||||
#/tracking/storeTrajectory 1
|
||||
#/vis/viewer/set/viewpointThetaPhi 90 0
|
||||
##/vis/viewer/set/globalLineWidthScale 3
|
||||
#/vis/viewer/zoom 30
|
||||
###/vis/scene/add/trajectories
|
||||
#/vis/drawVolume
|
||||
#/vis/viewer/flush
|
||||
####/hits/verbose 2
|
||||
###################################################################################
|
||||
######################### P A R T I C L E G U N #################################
|
||||
###################################################################################
|
||||
/gun/vertex 0 0 -1000 mm
|
||||
# FWHM 10mm ==> sigma = 10/2.354 = 4.2481mm
|
||||
#/gun/vertexsigma 20 20 0 mm
|
||||
#---/gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed
|
||||
/gun/vertexboundary 128 -999999 999999 mm
|
||||
/gun/momentum 27.0 MeV
|
||||
# sigma = 3% ==> sigma 27*0.03 = 0.81
|
||||
/gun/momentumsmearing 0.81 MeV
|
||||
#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy
|
||||
#/gun/momentumboundary 20 40 0 MeV
|
||||
# TURTLE
|
||||
#/gun/turtlefilename FOR061_2008_04_22.DAT
|
||||
#/gun/turtlefilename FOR070_2008_10_17_XXII.DAT
|
||||
#/gun/turtlefilename FOR077_pie3_HiField_d05_x30.dat
|
||||
#/gun/turtlefilename FOR077_reggiani_Jan2010_NEW.dat
|
||||
#/gun/turtlefilename FOR077_reggiani_Feb2010.dat
|
||||
#/gun/turtleZ0position -900 mm
|
||||
#---/gun/tilt: xangle, yangle, dummy
|
||||
#/gun/tilt 0 0.5 0 deg
|
||||
#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree on 1 meter ~ 17mm)
|
||||
#/gun/tiltsigma 0.2 0.2 0 deg
|
||||
#/gun/pitch 0.5 deg
|
||||
/gun/muonPolarizVector 1 0 0
|
||||
#---/gun/decaytimelimits: decayMin, decayMax, decayTime
|
||||
/gun/decaytimelimits 400 410 2197.03 ns
|
||||
#/gun/decaytimelimits -1 -1 2197.03 ns
|
||||
###################################################################################
|
||||
######################## B E A M O N #########################################
|
||||
###################################################################################
|
||||
#/run/beamOn 3000000
|
||||
/run/beamOn 100
|
||||
#/run/beamOn 1000000
|
@ -437,7 +437,7 @@ void musrRootOutput::BeginOfRunAction() {
|
||||
htest5 = new TH1F("htest5","The debugging histogram 5",50,-4.,4.);
|
||||
htest6 = new TH1F("htest6","The debugging histogram 6",50,0.,3.142);
|
||||
htest7 = new TH1F("htest7","The debugging histogram 7",100000,0.,100.);
|
||||
htest8 = new TH1F("htest8","The debugging histogram 8",50,0.,3.142);
|
||||
htest8 = new TH1F("htest8","The debugging histogram 8",100000,0.,100.);
|
||||
|
||||
G4cout << "musrRootOutput::BeginOfRunAction() The Root tree and branches were defined."<<G4endl;
|
||||
}
|
||||
@ -455,9 +455,16 @@ void musrRootOutput::EndOfRunAction() {
|
||||
htest5->Write();
|
||||
htest6->Write();
|
||||
htest7->Write();
|
||||
// Needed for iterative musrSim runs (e.g. when searching for a quadrupole triplet focus using a python script)
|
||||
// std::cout<<"DEBUG: FOCUS TEST: sigma="<<(htest7->GetMean())/(htest7->GetEntries())<<std::endl;
|
||||
htest8->Write();
|
||||
//-----------------------------------------------------------------------------------------
|
||||
// Uncoment for iterative musrSim runs (e.g. when searching for a quadrupole triplet focus using a python script)
|
||||
// // std::cout<<"DEBUG: FOCUS TEST: sigma="<<(htest7->GetMean())/(htest7->GetEntries())<<std::endl;
|
||||
// // std::cout<<"DEBUG: FOCUS TEST: sigma="<<(htest7->GetMean())<<std::endl;
|
||||
// Double_t xRMS_tmp = htest7->GetRMS();
|
||||
// Double_t yRMS_tmp = htest8->GetRMS();
|
||||
// std::cout<<"DEBUG: FOCUS TEST: sigma="<< sqrt(xRMS_tmp*xRMS_tmp + yRMS_tmp*yRMS_tmp) <<std::endl;
|
||||
// htest8->Write();
|
||||
//-----------------------------------------------------------------------------------------
|
||||
//
|
||||
// Variables exported from Geant simulation to the Root output
|
||||
// static const Int_t nGeantParamD=10;
|
||||
TVectorD TVector_GeantParametersD(maxNGeantParameters);
|
||||
|
@ -242,12 +242,13 @@ void musrSteppingAction::UserSteppingAction(const G4Step* aStep) {
|
||||
G4double polz_save=preStepPoint->GetPolarization().z();
|
||||
myRootOutput->SetSaveDetectorInfo(tmpVolumeID,particle_id_save,ke_save,x_save,y_save,z_save,time_save,px_save,py_save,pz_save,polx_save,poly_save,polz_save);
|
||||
//
|
||||
// myRootOutput->htest7->Fill(sqrt(x_save*x_save+y_save*y_save));
|
||||
//
|
||||
// cks: Useful for iterative musrSim runs finding the beam focus (all driven by a python script)
|
||||
// if (sqrt(x_save*x_save+y_save*y_save)<100.)
|
||||
// musrErrorMessage::GetInstance()->musrError(INFO,"musrSteppingAction KAMILTEST: Beam focused",true);
|
||||
|
||||
//-----------------------------------------------------------------------------------------
|
||||
// Uncoment for iterative musrSim runs (e.g. when searching for a quadrupole triplet focus using a python script)
|
||||
// // myRootOutput->htest7->Fill(sqrt(x_save*x_save+y_save*y_save));
|
||||
// // myRootOutput->htest7->Fill(x_save*x_save+y_save*y_save);
|
||||
// myRootOutput->htest7->Fill(x_save);
|
||||
// myRootOutput->htest8->Fill(y_save);
|
||||
//-----------------------------------------------------------------------------------------
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user