Changeset 8260
- Timestamp:
- 01/16/07 14:16:19 (18 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r8259 r8260 43 43 * msignal/MExtractTimeAndChargeDigitalFilter.cc: 44 44 - simplified the checks in SetWindowSize 45 46 * msignal/MC_cosmics_weights46.dat, msignal/MC_weights46.dat: 47 - added third column with zeros 45 48 46 49 -
trunk/MagicSoft/Mars/msignal/MC_cosmics_weights46.dat
r7194 r8260 1 1 # High Gain Weights: 4 10 2 2 # (Amplitude) (Time) 3 -0.483688 -0.498619 4 -0.52105 -0.409251 5 -0.551668 -0.347732 6 -0.588621 -0.297486 7 -0.661896 -0.2371 8 -0.754507 -0.0572828 9 -0.809786 0.380243 10 -0.569956 1.15886 11 -0.0188177 1.56188 12 0.366116 1.43988 13 0.560145 1.24361 14 0.659133 1.09171 15 0.743506 1.01359 16 0.842199 0.994443 17 1.03659 1.08537 18 1.27803 1.17221 19 1.52592 1.11221 20 1.87086 0.786182 21 1.9451 0.195753 22 1.84721 -0.202808 23 1.74892 -0.438476 24 1.6951 -0.598997 25 1.63854 -0.777709 26 1.55247 -1.00352 27 1.32498 -1.37711 28 1.00846 -1.77543 29 0.590272 -2.03408 30 -0.111902 -1.86442 31 -0.42886 -1.06692 32 -0.383767 -0.46555 33 -0.258546 -0.122314 34 -0.237253 -0.0243087 35 -0.234402 0.036867 36 -0.236007 0.0905807 37 -0.22029 0.156137 38 -0.191449 0.235519 39 -0.139186 0.309597 40 -0.0270788 0.320152 41 0.0388423 0.213534 42 0.0424905 0.116622 3 -0.483688 -0.498619 0 4 -0.52105 -0.409251 0 5 -0.551668 -0.347732 0 6 -0.588621 -0.297486 0 7 -0.661896 -0.2371 0 8 -0.754507 -0.0572828 0 9 -0.809786 0.380243 0 10 -0.569956 1.15886 0 11 -0.0188177 1.56188 0 12 0.366116 1.43988 0 13 0.560145 1.24361 0 14 0.659133 1.09171 0 15 0.743506 1.01359 0 16 0.842199 0.994443 0 17 1.03659 1.08537 0 18 1.27803 1.17221 0 19 1.52592 1.11221 0 20 1.87086 0.786182 0 21 1.9451 0.195753 0 22 1.84721 -0.202808 0 23 1.74892 -0.438476 0 24 1.6951 -0.598997 0 25 1.63854 -0.777709 0 26 1.55247 -1.00352 0 27 1.32498 -1.37711 0 28 1.00846 -1.77543 0 29 0.590272 -2.03408 0 30 -0.111902 -1.86442 0 31 -0.42886 -1.06692 0 32 -0.383767 -0.46555 0 33 -0.258546 -0.122314 0 34 -0.237253 -0.0243087 0 35 -0.234402 0.036867 0 36 -0.236007 0.0905807 0 37 -0.22029 0.156137 0 38 -0.191449 0.235519 0 39 -0.139186 0.309597 0 40 -0.0270788 0.320152 0 41 0.0388423 0.213534 0 42 0.0424905 0.116622 0 43 43 # Low Gain Weights: 6 10 44 44 # (Amplitude) (Time) 45 0.0446612 -0.385273 46 0.038191 -0.00418687 47 0.0386966 0.0212324 48 0.0402881 0.0744799 49 0.0415794 0.229615 50 0.0598731 0.44332 51 0.0758477 0.661518 52 0.101509 1.10641 53 0.159323 1.64997 54 0.497256 2.83685 55 0.245087 3.27499 56 0.140546 2.46177 57 0.58086 2.2849 58 0.632721 2.45587 59 0.72819 2.52835 60 0.889583 2.48099 61 0.980812 2.50031 62 1.09885 2.55892 63 1.21374 2.78769 64 1.61928 3.08069 65 1.38544 1.95583 66 1.31998 1.1792 67 1.50633 0.591226 68 1.50916 0.0793899 69 1.5008 -0.33188 70 1.47339 -0.575386 71 1.45362 -0.915309 72 1.40214 -1.31593 73 1.34175 -1.77904 74 1.0661 -2.05471 75 1.31087 -1.49798 76 1.33793 -1.34758 77 1.10172 -1.21719 78 1.08133 -1.09356 79 1.04007 -0.981455 80 0.976745 -1.08299 81 0.930979 -1.14774 82 0.874203 -1.18348 83 0.816708 -1.20126 84 0.587354 -1.92869 85 0.783078 -1.89621 86 0.792771 -1.03439 87 0.622278 -0.781807 88 0.61184 -0.745831 89 0.578792 -0.683741 90 0.537336 -0.596328 91 0.51443 -0.592858 92 0.482294 -0.560586 93 0.462351 -0.827587 94 0.317989 -1.05649 95 0.459672 -0.775035 96 0.468287 -0.619961 97 0.374182 -0.31635 98 0.376946 -0.225242 99 0.367075 -0.347444 100 0.340737 -0.393231 101 0.321054 -0.187384 102 0.320654 -0.225558 103 0.302148 -0.399499 104 0.232954 -0.607578 45 0.0446612 -0.385273 0 46 0.038191 -0.00418687 0 47 0.0386966 0.0212324 0 48 0.0402881 0.0744799 0 49 0.0415794 0.229615 0 50 0.0598731 0.44332 0 51 0.0758477 0.661518 0 52 0.101509 1.10641 0 53 0.159323 1.64997 0 54 0.497256 2.83685 0 55 0.245087 3.27499 0 56 0.140546 2.46177 0 57 0.58086 2.2849 0 58 0.632721 2.45587 0 59 0.72819 2.52835 0 60 0.889583 2.48099 0 61 0.980812 2.50031 0 62 1.09885 2.55892 0 63 1.21374 2.78769 0 64 1.61928 3.08069 0 65 1.38544 1.95583 0 66 1.31998 1.1792 0 67 1.50633 0.591226 0 68 1.50916 0.0793899 0 69 1.5008 -0.33188 0 70 1.47339 -0.575386 0 71 1.45362 -0.915309 0 72 1.40214 -1.31593 0 73 1.34175 -1.77904 0 74 1.0661 -2.05471 0 75 1.31087 -1.49798 0 76 1.33793 -1.34758 0 77 1.10172 -1.21719 0 78 1.08133 -1.09356 0 79 1.04007 -0.981455 0 80 0.976745 -1.08299 0 81 0.930979 -1.14774 0 82 0.874203 -1.18348 0 83 0.816708 -1.20126 0 84 0.587354 -1.92869 0 85 0.783078 -1.89621 0 86 0.792771 -1.03439 0 87 0.622278 -0.781807 0 88 0.61184 -0.745831 0 89 0.578792 -0.683741 0 90 0.537336 -0.596328 0 91 0.51443 -0.592858 0 92 0.482294 -0.560586 0 93 0.462351 -0.827587 0 94 0.317989 -1.05649 0 95 0.459672 -0.775035 0 96 0.468287 -0.619961 0 97 0.374182 -0.31635 0 98 0.376946 -0.225242 0 99 0.367075 -0.347444 0 100 0.340737 -0.393231 0 101 0.321054 -0.187384 0 102 0.320654 -0.225558 0 103 0.302148 -0.399499 0 104 0.232954 -0.607578 0 -
trunk/MagicSoft/Mars/msignal/MC_weights46.dat
r7098 r8260 1 1 # High Gain Weights: 4 10 2 2 # (Amplitude) (Time) 3 -0.483688 -0.498619 4 -0.52105 -0.409251 5 -0.551668 -0.347732 6 -0.588621 -0.297486 7 -0.661896 -0.2371 8 -0.754507 -0.0572828 9 -0.809786 0.380243 10 -0.569956 1.15886 11 -0.0188177 1.56188 12 0.366116 1.43988 13 0.560145 1.24361 14 0.659133 1.09171 15 0.743506 1.01359 16 0.842199 0.994443 17 1.03659 1.08537 18 1.27803 1.17221 19 1.52592 1.11221 20 1.87086 0.786182 21 1.9451 0.195753 22 1.84721 -0.202808 23 1.74892 -0.438476 24 1.6951 -0.598997 25 1.63854 -0.777709 26 1.55247 -1.00352 27 1.32498 -1.37711 28 1.00846 -1.77543 29 0.590272 -2.03408 30 -0.111902 -1.86442 31 -0.42886 -1.06692 32 -0.383767 -0.46555 33 -0.258546 -0.122314 34 -0.237253 -0.0243087 35 -0.234402 0.036867 36 -0.236007 0.0905807 37 -0.22029 0.156137 38 -0.191449 0.235519 39 -0.139186 0.309597 40 -0.0270788 0.320152 41 0.0388423 0.213534 42 0.0424905 0.116622 3 -0.483688 -0.498619 0 4 -0.52105 -0.409251 0 5 -0.551668 -0.347732 0 6 -0.588621 -0.297486 0 7 -0.661896 -0.2371 0 8 -0.754507 -0.0572828 0 9 -0.809786 0.380243 0 10 -0.569956 1.15886 0 11 -0.0188177 1.56188 0 12 0.366116 1.43988 0 13 0.560145 1.24361 0 14 0.659133 1.09171 0 15 0.743506 1.01359 0 16 0.842199 0.994443 0 17 1.03659 1.08537 0 18 1.27803 1.17221 0 19 1.52592 1.11221 0 20 1.87086 0.786182 0 21 1.9451 0.195753 0 22 1.84721 -0.202808 0 23 1.74892 -0.438476 0 24 1.6951 -0.598997 0 25 1.63854 -0.777709 0 26 1.55247 -1.00352 0 27 1.32498 -1.37711 0 28 1.00846 -1.77543 0 29 0.590272 -2.03408 0 30 -0.111902 -1.86442 0 31 -0.42886 -1.06692 0 32 -0.383767 -0.46555 0 33 -0.258546 -0.122314 0 34 -0.237253 -0.0243087 0 35 -0.234402 0.036867 0 36 -0.236007 0.0905807 0 37 -0.22029 0.156137 0 38 -0.191449 0.235519 0 39 -0.139186 0.309597 0 40 -0.0270788 0.320152 0 41 0.0388423 0.213534 0 42 0.0424905 0.116622 0 43 43 # Low Gain Weights: 6 10 44 44 # (Amplitude) (Time) 45 0.0446612 -0.385273 46 0.038191 -0.00418687 47 0.0386966 0.0212324 48 0.0402881 0.0744799 49 0.0415794 0.229615 50 0.0598731 0.44332 51 0.0758477 0.661518 52 0.101509 1.10641 53 0.159323 1.64997 54 0.497256 2.83685 55 0.245087 3.27499 56 0.140546 2.46177 57 0.58086 2.2849 58 0.632721 2.45587 59 0.72819 2.52835 60 0.889583 2.48099 61 0.980812 2.50031 62 1.09885 2.55892 63 1.21374 2.78769 64 1.61928 3.08069 65 1.38544 1.95583 66 1.31998 1.1792 67 1.50633 0.591226 68 1.50916 0.0793899 69 1.5008 -0.33188 70 1.47339 -0.575386 71 1.45362 -0.915309 72 1.40214 -1.31593 73 1.34175 -1.77904 74 1.0661 -2.05471 75 1.31087 -1.49798 76 1.33793 -1.34758 77 1.10172 -1.21719 78 1.08133 -1.09356 79 1.04007 -0.981455 80 0.976745 -1.08299 81 0.930979 -1.14774 82 0.874203 -1.18348 83 0.816708 -1.20126 84 0.587354 -1.92869 85 0.783078 -1.89621 86 0.792771 -1.03439 87 0.622278 -0.781807 88 0.61184 -0.745831 89 0.578792 -0.683741 90 0.537336 -0.596328 91 0.51443 -0.592858 92 0.482294 -0.560586 93 0.462351 -0.827587 94 0.317989 -1.05649 95 0.459672 -0.775035 96 0.468287 -0.619961 97 0.374182 -0.31635 98 0.376946 -0.225242 99 0.367075 -0.347444 100 0.340737 -0.393231 101 0.321054 -0.187384 102 0.320654 -0.225558 103 0.302148 -0.399499 104 0.232954 -0.607578 45 0.0446612 -0.385273 0 46 0.038191 -0.00418687 0 47 0.0386966 0.0212324 0 48 0.0402881 0.0744799 0 49 0.0415794 0.229615 0 50 0.0598731 0.44332 0 51 0.0758477 0.661518 0 52 0.101509 1.10641 0 53 0.159323 1.64997 0 54 0.497256 2.83685 0 55 0.245087 3.27499 0 56 0.140546 2.46177 0 57 0.58086 2.2849 0 58 0.632721 2.45587 0 59 0.72819 2.52835 0 60 0.889583 2.48099 0 61 0.980812 2.50031 0 62 1.09885 2.55892 0 63 1.21374 2.78769 0 64 1.61928 3.08069 0 65 1.38544 1.95583 0 66 1.31998 1.1792 0 67 1.50633 0.591226 0 68 1.50916 0.0793899 0 69 1.5008 -0.33188 0 70 1.47339 -0.575386 0 71 1.45362 -0.915309 0 72 1.40214 -1.31593 0 73 1.34175 -1.77904 0 74 1.0661 -2.05471 0 75 1.31087 -1.49798 0 76 1.33793 -1.34758 0 77 1.10172 -1.21719 0 78 1.08133 -1.09356 0 79 1.04007 -0.981455 0 80 0.976745 -1.08299 0 81 0.930979 -1.14774 0 82 0.874203 -1.18348 0 83 0.816708 -1.20126 0 84 0.587354 -1.92869 0 85 0.783078 -1.89621 0 86 0.792771 -1.03439 0 87 0.622278 -0.781807 0 88 0.61184 -0.745831 0 89 0.578792 -0.683741 0 90 0.537336 -0.596328 0 91 0.51443 -0.592858 0 92 0.482294 -0.560586 0 93 0.462351 -0.827587 0 94 0.317989 -1.05649 0 95 0.459672 -0.775035 0 96 0.468287 -0.619961 0 97 0.374182 -0.31635 0 98 0.376946 -0.225242 0 99 0.367075 -0.347444 0 100 0.340737 -0.393231 0 101 0.321054 -0.187384 0 102 0.320654 -0.225558 0 103 0.302148 -0.399499 0 104 0.232954 -0.607578 0 -
trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeDigitalFilter.cc
r8208 r8260 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MExtractTimeAndChargeDigitalFilter.cc,v 1.7 5 2006-11-02 17:54:22tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MExtractTimeAndChargeDigitalFilter.cc,v 1.76 2007-01-16 14:14:37 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 46 46 // setting all weights to 1 47 47 // 48 // The digital filter can even do a little extrapolation around the 49 // extraction window. For real Pulses having their maximum around 50 // slice 0 the extracted time is similar to a gaussian around 0 with 51 // sigma 0.4. 52 // 53 // 48 54 // Input Containers: 49 55 // MRawEvtData … … 125 131 void MExtractTimeAndChargeDigitalFilter::SetWindowSize(Int_t windowh, Int_t windowl) 126 132 { 127 fWindowSizeHiGain = windowh; 128 fWindowSizeLoGain = windowl; 129 130 const Int_t availhirange = (Int_t)(fHiGainLast-fHiGainFirst+1); 133 if (windowh > fHiGainLast-fHiGainFirst+1) 134 { 135 *fLog << err << "ERROR - The new hi-gain window size exceeds the extraction range." << endl; 136 return; 137 } 138 139 if (windowl > fLoGainLast-fLoGainFirst+1) 140 { 141 *fLog << err << "ERROR - The new hi-gain window size exceeds the extraction range." << endl; 142 return; 143 } 144 145 fWindowSizeHiGain = windowh; 146 fWindowSizeLoGain = windowl; 147 148 /* 149 const Int_t availhirange = (Int_t)(); 131 150 132 151 if (fWindowSizeHiGain > availhirange) … … 167 186 *fLog << warn << GetDescriptor() << ": Low Gain window size set to two samples" << endl; 168 187 } 169 } 188 }*/ 170 189 // 171 190 // We need here the effective number of samples which is about 2.5 in the case of a window
Note:
See TracChangeset
for help on using the changeset viewer.