41 const Text_t* h_name =
"CnaHeader";
42 const Text_t* h_title =
"CnaHeader";
46 Long_t iFileHeader = 0;
47 if (iFileHeader == 0) {
64 const Text_t* h_name =
"CnaHeader";
65 const Text_t* h_title =
"CnaHeader";
69 Long_t iFileHeader = 0;
70 if (iFileHeader == 0) {
77 if (NbOfSamples > 0 && NbOfSamples <= fEcal->MaxSampADC()) {
80 std::cout <<
"TEcnaRun/CONSTRUCTOR> Number of required samples = " << NbOfSamples
208 if (iCnaParCout == 0) {
215 Long_t iCnaParPaths = pObjectManager->
GetPointerValue(
"TEcnaParPaths");
216 if (iCnaParPaths == 0) {
277 std::cout <<
"*TEcnaRun::TEcnaRun(const TEcnaRun& dcop)> " 278 <<
" Now is the time to write a copy constructor" << std::endl;
306 std::cout <<
"*TEcnaRun::~TEcnaRun()> Entering destructor." << std::endl;
311 std::cout <<
"************************************************************************************* " 315 std::cout <<
"************************************************************************************* " 321 Int_t misc_czero = 0;
324 std::cout <<
" fMiscDiag Counter " << std::setw(3) <<
i <<
" = " << std::setw(9)
325 <<
fMiscDiag[
i] <<
" (INFO: alloc on non zero freed zone) " << std::endl;
330 std::cout <<
" Nb of fMiscDiag counters at zero: " << misc_czero
638 std::cout <<
"!TEcnaRun::~TEcnaRun()> WRONG MANAGEMENT OF MEMORY ALLOCATIONS: fCnew = " <<
fCnew 646 std::cout <<
"*TEcnaRun::~TEcnaRun()> Exiting destructor (this = " <<
this <<
")." << std::endl
647 <<
"~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#" 688 const Int_t& run_type) {
693 Int_t nrangeevts =
nlast - nfirst + 1;
695 if (nrangeevts < nbevts) {
696 if (
nlast >= nfirst) {
697 std::cout <<
"*TEcnaRun::GetReadyToReadData(...)> --- WARNING ---> number of events = " << nbevts
698 <<
", out of range (range = " << nfirst <<
"," <<
nlast <<
")" << std::endl
699 <<
" The number of found events will be less " << std::endl
700 <<
" than the number of requested events." << std::endl;
702 if (
nlast < nfirst) {
703 std::cout <<
"*TEcnaRun::GetReadyToReadData(...)> --- INFO ---> last requested event number = " <<
nlast 704 <<
", less than first requested event number (= " << nfirst <<
")" << std::endl
705 <<
" File will be read until EOF if the number of found events" 707 <<
" remains less than the number of requested events." << std::endl;
719 Int_t nentries = 99999999;
720 if (nfirst <= nentries) {
725 if (
nlast <= nentries) {
726 const Text_t* h_name =
"CnaHeader";
727 const Text_t* h_title =
"CnaHeader";
877 std::cout <<
"*TEcnaRun::GetReadyToReadData(...)> Allocation of 3D array for ADC distributions." 879 <<
" This number must not be too large" 880 <<
" (no failure after this message means alloc OK)." << std::endl;
893 for (Int_t j0Sample = 0; j0Sample <
fNbSampForFic; j0Sample++) {
930 for (Int_t i0Sample = 0; i0Sample <
fNbSampForFic; i0Sample++) {
935 std::cerr <<
"!TEcnaRun::GetReadyToReadData(...)> *** ERROR *** No allocation for fT2d_NbOfEvts!" 936 <<
" Pointer already not NULL " <<
fTTBELL << std::endl;
942 <<
"!TEcnaRun::GetReadyToReadData(...)> " 943 <<
" *** ERROR *** " << std::endl
944 <<
" --------------------------------------------------" << std::endl
945 <<
" NULL or NEGATIVE values for arguments" << std::endl
946 <<
" with expected positive values:" << std::endl
949 <<
" Number of samples by channel = " <<
fNbSampForFic << std::endl
952 <<
" hence, no memory allocation for array member has been performed." << std::endl;
954 std::cout <<
"Enter: 0 and RETURN to continue or: CTRL C to exit";
961 std::cout <<
"*TEcnaRun::GetReadyToReadData(...)>" << std::endl
962 <<
" The method has been called with the following argument values:" << std::endl
974 <<
" Number of samples by channel = " <<
fNbSampForFic << std::endl
981 std::cout <<
"!TEcnaRun::GetReadyToReadData(...) > WARNING/CORRECTION:" << std::endl
982 <<
"! The fisrt requested event number is not positive (nfirst = " << nfirst <<
") " <<
fTTBELL 989 <<
"!TEcnaRun::GetReadyToReadData(...)> WARNING/CORRECTION:" << std::endl
990 <<
"! The number of requested events (nbevts = " << nbevts <<
") is too large." << std::endl
991 <<
"! Last event number = " <<
nlast <<
" > number of entries = " << nentries <<
". " <<
fTTBELL 997 std::cout <<
"!TEcnaRun::GetReadyToReadData(...) *** ERROR ***> " 998 <<
" The first requested event number is greater than the number of entries." <<
fTTBELL << std::endl;
1032 const Int_t& n1StexStin,
1033 const Int_t& i0StinEcha,
1034 const Int_t& i0Sample,
1035 const Double_t& adcvalue) {
1040 Bool_t ret_code = kFALSE;
1042 Int_t i0EventIndex = n1EventNumber - 1;
1043 Int_t i0StexStinEcna = n1StexStin - 1;
1048 if (n1StexStin >= 1 && n1StexStin <= fEcal->MaxStinEcnaInStex()) {
1049 if (i0StinEcha >= 0 && i0StinEcha < fEcal->MaxCrysInStin()) {
1050 if (i0Sample >= 0 && i0Sample < fEcal->MaxSampADC()) {
1062 if (i_trouve != 1) {
1072 <<
"*TEcnaRun::GetSampleAdcValues(...)> event " << n1EventNumber <<
" : first event for " 1087 <<
", i0Sample " << i0Sample << std::endl;
1092 std::cout <<
"!TEcnaRun::GetSampleAdcValues(...)> *** ERROR ***> NOT ALLOWED if RESULT. " 1093 <<
" n1StexStin = " << n1StexStin <<
", fT1d_StexStinFromIndex[" << i0StexStinEcna
1102 std::cout <<
"!TEcnaRun, GetSampleAdcValues *** ERROR ***> " 1104 <<
" fT1d_StexStinFromIndex[] ALLOCATION NOT DONE" <<
fTTBELL << std::endl;
1112 std::cout <<
"!TEcnaRun::GetSampleAdcValues(...) *** ERROR ***> " 1113 <<
" sample number = " << i0Sample <<
". OUT OF BOUNDS" 1122 std::cout <<
"!TEcnaRun::GetSampleAdcValues(...) *** ERROR ***> " 1123 <<
" channel number in " <<
fStinName.Data() <<
" = " << i0StinEcha <<
". OUT OF BOUNDS" 1128 std::cout <<
"!TEcnaRun::GetSampleAdcValues(...) *** ERROR ***> " <<
fStinName.Data() <<
" number in " 1129 <<
fStexName.Data() <<
" = " << n1StexStin <<
". OUT OF BOUNDS" 1140 if (ret_code == kTRUE) {
1156 if (i0StexEcha >= 0 && i0StexEcha < fEcal->MaxCrysEcnaInStex()) {
1163 if (i0EventIndex >= 0 && i0EventIndex < fFileHeader->fReqNbOfEvts) {
1167 std::cout <<
"!TEcnaRun::GetSampleAdcValues(...) *** ERROR ***> " 1168 <<
" sample index = " << i0Sample <<
". OUT OF BOUNDS" 1172 std::cout <<
"!TEcnaRun::GetSampleAdcValues(...) *** ERROR ***> " 1173 <<
" event number = " << n1EventNumber <<
". OUT OF BOUNDS" 1178 std::cout <<
"!TEcnaRun::GetSampleAdcValues(...) *** ERROR ***> " 1179 <<
" CHANNEL NUMBER OUT OF BOUNDS" << std::endl
1180 <<
" i0StexEcha number = " << i0StexEcha <<
" , n1StexStin = " << n1StexStin
1181 <<
" , i0StinEcha = " << i0StinEcha
1188 std::cout <<
"!TEcnaRun::GetSampleAdcValues(...) *** ERROR ***> ret_code = kFALSE " <<
fTTBELL << std::endl;
1192 std::cout <<
"!TEcnaRun::GetSampleAdcValues(...) *** ERROR ***> GetReadyToReadData(...) not called." <<
fTTBELL 1197 if (ret_code == kFALSE) {
1198 std::cout <<
"!TEcnaRun::GetSampleAdcValues(...)> *** ERROR ***> ret_code = " << ret_code
1200 <<
fStinName.Data() <<
": " << n1StexStin <<
", channel: " << i0StinEcha <<
", Sample: " << i0Sample
1201 <<
", ADC value: " << adcvalue << std::endl;
1245 if (ok_read == kTRUE) {
1248 std::cout <<
"*TEcnaRun::ReadSampleAdcValues> Reading sample ADC values from file: " << std::endl
1251 size_t i_no_data = 0;
1256 vec(
i) = (Double_t)0.;
1272 partial_matrix(
i,
j) = (Double_t)0.;
1278 if (n1StexStin != -1) {
1288 fT2d_NbOfEvts[i0StexEcha][i0Sample] = (Int_t)partial_matrix(i0StinCrys, i0Sample);
1305 fT3d_AdcValues[i0StexEcha][i0Sample][i_event] = fT3d_read_AdcValues[i0StexEcha][i0Sample][i_event];
1313 std::cout <<
"!TEcnaRun::ReadSampleAdcValues(...)> *ERROR* =====> " 1314 <<
" Read failure. i_no_data = " << i_no_data <<
fTTBELL << std::endl;
1317 std::cout <<
"!TEcnaRun::ReadSampleAdcValues(...)> *ERROR* =====> " 1318 <<
" ROOT file not found" <<
fTTBELL << std::endl;
1475 std::cout <<
"*TEcnaRun::SampleMeans() " << std::endl;
1478 std::cout <<
" Calculation: sample expectation values over the events" 1479 <<
" for each channel." << std::endl;
1486 fT2d_ev =
new Double_t*[n_StexEcha];
1488 fT1d_ev =
new Double_t[n_StexEcha * n_samp];
1490 for (Int_t
i = 0;
i < n_StexEcha;
i++) {
1496 for (Int_t i0Sample = 0; i0Sample <
fNbSampForCalc; i0Sample++) {
1497 if (
fT2d_ev[i0StexEcha][i0Sample] != (Double_t)0) {
1499 fT2d_ev[i0StexEcha][i0Sample] = (Double_t)0;
1506 for (Int_t i0Sample = 0; i0Sample <
fNbSampForCalc; i0Sample++) {
1529 std::cout <<
"*TEcnaRun::SampleSigmas()" << std::endl;
1532 std::cout <<
" Calculation: sample ADC sigmas over the events " 1533 <<
" for each channel." << std::endl;
1549 fT2d_sig =
new Double_t*[n_StexEcha];
1551 fT1d_sig =
new Double_t[n_StexEcha * n_samp];
1553 for (Int_t i0StexEcha = 0; i0StexEcha < n_StexEcha; i0StexEcha++) {
1559 for (Int_t i0Sample = 0; i0Sample <
fNbSampForCalc; i0Sample++) {
1560 if (
fT2d_sig[i0StexEcha][i0Sample] != (Double_t)0) {
1562 fT2d_sig[i0StexEcha][i0Sample] = (Double_t)0;
1569 for (Int_t i0Sample = 0; i0Sample <
fNbSampForCalc; i0Sample++) {
1570 Double_t variance = (Double_t)0.;
1573 variance += ecart * ecart;
1603 std::cout <<
"*TEcnaRun::CovariancesBetweenSamples()" << std::endl;
1606 std::cout <<
" Calculation: covariances between samples" 1607 <<
" for each channel." << std::endl;
1618 fT3d1_cov_ss =
new Double_t[n_StexEcha * n_samp * n_samp];
1620 for (Int_t
i = 0;
i < n_StexEcha;
i++) {
1622 for (Int_t
j = 0;
j < n_samp;
j++) {
1642 for (Int_t i0Sample = 0; i0Sample <
fNbSampForCalc; i0Sample++) {
1643 for (Int_t j0Sample = 0; j0Sample <= i0Sample; j0Sample++) {
1644 fT3d_cov_ss[j0StexEcha][i0Sample][j0Sample] = (Double_t)0;
1680 std::cout <<
"*TEcnaRun::CorrelationsBetweenSamples()" << std::endl;
1683 std::cout <<
" Calculation: correlations between samples" 1684 <<
" for each channel." << std::endl;
1695 fT3d1_cor_ss =
new Double_t[n_StexEcha * n_samp * n_samp];
1697 for (Int_t
i = 0;
i < n_StexEcha;
i++) {
1699 for (Int_t
j = 0;
j < n_samp;
j++) {
1709 for (Int_t i0Sample = 0; i0Sample <
fNbSampForCalc; i0Sample++) {
1710 for (Int_t j0Sample = 0; j0Sample <= i0Sample; j0Sample++) {
1711 if ((
fT3d_cov_ss[j0StexEcha][i0Sample][i0Sample] > 0) && (
fT3d_cov_ss[j0StexEcha][j0Sample][j0Sample] > 0)) {
1716 (
fT3d_cor_ss)[j0StexEcha][i0Sample][j0Sample] = (Double_t)0;
1769 std::cout <<
"*TEcnaRun::Pedestals()" << std::endl;
1772 std::cout <<
" Calculation, for all the channels, of the expectation values (over the samples 1 to " 1774 <<
" of the ADC expectation values (over the events)." << std::endl;
1778 for (Int_t i0Sample = 0; i0Sample <
fNbSampForCalc; i0Sample++) {
1824 std::cout <<
"*TEcnaRun::TotalNoise()" << std::endl;
1827 std::cout <<
" Calculation, for all the channels, of the expectation values (over the samples 1 to " 1829 <<
" of the ADC expectation values (over the events)." << std::endl;
1833 for (Int_t i0Sample = 0; i0Sample <
fNbSampForCalc; i0Sample++) {
1834 if (
fT2d_sig[i0StexEcha][i0Sample] < 0) {
1835 std::cout <<
"!TEcnaRun::TotalNoise() *** ERROR ***> Negative sigma!" <<
fTTBELL << std::endl;
1877 mean_over_samples(
i) = (Double_t)0.;
1882 std::cout <<
"*TEcnaRun::LowFrequencyNoise()" << std::endl;
1885 std::cout <<
" Calculation, for each channel, of the sigma (over the events)" << std::endl
1886 <<
" of the ADC expectation values (over the samples 1 to " <<
fNbSampForCalc <<
")." 1892 Double_t mean_over_events = (Double_t)0;
1895 mean_over_samples(n_event) = (Double_t)0.;
1896 for (Int_t i0Sample = 0; i0Sample <
fNbSampForCalc; i0Sample++) {
1897 mean_over_samples(n_event) +=
fT3d_AdcValues[i0StexEcha][i0Sample][n_event];
1901 mean_over_events += mean_over_samples(n_event);
1906 Double_t
var = (Double_t)0;
1908 Double_t ecart = mean_over_samples(n_event) - mean_over_events;
1909 var += ecart * ecart;
1950 mean_over_samples(
i) = (Double_t)0.;
1954 sigma_over_samples(
i) = (Double_t)0.;
1959 std::cout <<
"*TEcnaRun::HighFrequencyNoise()" << std::endl;
1962 std::cout <<
" Calculation, for each channel, of the sigma (over the events)" << std::endl
1963 <<
" of the ADC expectation values (over the samples 1 to " <<
fNbSampForCalc <<
")." 1971 mean_over_samples(n_event) = (Double_t)0.;
1972 for (Int_t i0Sample = 0; i0Sample <
fNbSampForCalc; i0Sample++) {
1973 mean_over_samples(n_event) +=
fT3d_AdcValues[i0StexEcha][i0Sample][n_event];
1978 Double_t var_over_samples = (Double_t)0;
1979 for (Int_t i0Sample = 0; i0Sample <
fNbSampForCalc; i0Sample++) {
1980 Double_t deviation =
fT3d_AdcValues[i0StexEcha][i0Sample][n_event] - mean_over_samples(n_event);
1981 var_over_samples += deviation * deviation;
1985 if (var_over_samples < 0) {
1986 std::cout <<
"!TEcnaRun::HighFrequencyNoise() *** ERROR ***> Negative variance! " <<
fTTBELL << std::endl;
1988 sigma_over_samples(n_event) =
sqrt(var_over_samples);
2042 TVectorD half_cor_ss(ndim);
2043 for (Int_t
i = 0;
i < ndim;
i++) {
2044 half_cor_ss(
i) = (Double_t)0.;
2049 std::cout <<
"*TEcnaRun::MeanCorrelationsBetweenSamples()" << std::endl;
2052 std::cout <<
" Calculation, for all the channels, of the expectation values of the" << std::endl
2053 <<
" correlations between the first " <<
fNbSampForCalc <<
" samples." << std::endl;
2059 for (Int_t i0Sample = 0; i0Sample <
fNbSampForCalc; i0Sample++) {
2060 for (Int_t j0Sample = 0; j0Sample < i0Sample; j0Sample++) {
2061 half_cor_ss(i_count) =
fT3d_cor_ss[i0StexEcha][i0Sample][j0Sample];
2067 for (Int_t i_rcor = 0; i_rcor < ndim; i_rcor++) {
2112 std::cout <<
"*TEcnaRun::SigmasOfCorrelationsBetweenSamples()" << std::endl;
2115 std::cout <<
" Calculation of the sigmas of the (sample,sample)" << std::endl
2116 <<
" correlations for all the channels." << std::endl;
2123 TVectorD half_cor_ss(ndim);
2124 for (Int_t
i = 0;
i < ndim;
i++) {
2125 half_cor_ss(
i) = (Double_t)0.;
2132 for (Int_t i0Sample = 0; i0Sample <
fNbSampForCalc; i0Sample++) {
2133 for (Int_t j0Sample = 0; j0Sample < i0Sample; j0Sample++) {
2134 half_cor_ss(i_count) =
fT3d_cor_ss[i0StexEcha][i0Sample][j0Sample];
2140 Double_t
var = (Double_t)0;
2141 for (Int_t i_rcor = 0; i_rcor < ndim; i_rcor++) {
2142 Double_t ecart = half_cor_ss(i_rcor) -
fT1d_ev_cor_ss[i0StexEcha];
2143 var += ecart * ecart;
2145 var /= (Double_t)ndim;
2181 std::cout <<
"*TEcnaRun::AveragePedestals()" << std::endl;
2184 std::cout <<
" Calculation, for all the " <<
fStinName.Data() <<
"s, of the average Pedestals" 2190 Int_t n1StexStinEcna = i0StexStinEcna + 1;
2203 Int_t n1StinEcha = i0StinEcha + 1;
2204 if (n1StexStinEcna == 10 && n1StinEcha == 11) {
2207 if (n1StexStinEcna == 11 && n1StinEcha == 11) {
2210 if (!((n1StexStinEcna == 29 || n1StexStinEcna == 32) && n1StinEcha == 11)) {
2215 Double_t xdivis = (Double_t)0.;
2257 std::cout <<
"*TEcnaRun::AverageTotalNoise()" << std::endl;
2260 std::cout <<
" Calculation, for all the " <<
fStinName.Data() <<
"s, of the average total Noise" 2266 Int_t n1StexStinEcna = i0StexStinEcna + 1;
2279 Int_t n1StinEcha = i0StinEcha + 1;
2280 if (n1StexStinEcna == 10 && n1StinEcha == 11) {
2283 if (n1StexStinEcna == 11 && n1StinEcha == 11) {
2286 if (!((n1StexStinEcna == 29 || n1StexStinEcna == 32) && n1StinEcha == 11)) {
2291 Double_t xdivis = (Double_t)0.;
2332 std::cout <<
"*TEcnaRun::AverageLowFrequencyNoise()" << std::endl;
2335 std::cout <<
" Calculation, for all the " <<
fStinName.Data() <<
"s, of the average Low Frequency Noise" 2341 Int_t n1StexStinEcna = i0StexStinEcna + 1;
2354 Int_t n1StinEcha = i0StinEcha + 1;
2355 if (n1StexStinEcna == 10 && n1StinEcha == 11) {
2358 if (n1StexStinEcna == 11 && n1StinEcha == 11) {
2361 if (!((n1StexStinEcna == 29 || n1StexStinEcna == 32) && n1StinEcha == 11)) {
2366 Double_t xdivis = (Double_t)0.;
2407 std::cout <<
"*TEcnaRun::AverageHighFrequencyNoise()" << std::endl;
2410 std::cout <<
" Calculation, for all the " <<
fStinName.Data() <<
"s, of the average High Frequency Noise" 2416 Int_t n1StexStinEcna = i0StexStinEcna + 1;
2429 Int_t n1StinEcha = i0StinEcha + 1;
2430 if (n1StexStinEcna == 10 && n1StinEcha == 11) {
2433 if (n1StexStinEcna == 11 && n1StinEcha == 11) {
2436 if (!((n1StexStinEcna == 29 || n1StexStinEcna == 32) && n1StinEcha == 11)) {
2441 Double_t xdivis = (Double_t)0.;
2482 std::cout <<
"*TEcnaRun::AverageMeanCorrelationsBetweenSamples()" << std::endl;
2485 std::cout <<
" Calculation, for all the " <<
fStinName.Data() <<
"s, of the average mean cor(s,s)" 2491 Int_t n1StexStinEcna = i0StexStinEcna + 1;
2504 Int_t n1StinEcha = i0StinEcha + 1;
2505 if (n1StexStinEcna == 10 && n1StinEcha == 11) {
2508 if (n1StexStinEcna == 11 && n1StinEcha == 11) {
2511 if (!((n1StexStinEcna == 29 || n1StexStinEcna == 32) && n1StinEcha == 11)) {
2516 Double_t xdivis = (Double_t)0.;
2557 std::cout <<
"*TEcnaRun::AverageSigmaOfCorrelationsBetweenSamples()" << std::endl;
2560 std::cout <<
" Calculation, for all the " <<
fStinName.Data() <<
"s, of the average sigma of cor(s,s)" 2566 Int_t n1StexStinEcna = i0StexStinEcna + 1;
2579 Int_t n1StinEcha = i0StinEcha + 1;
2580 if (n1StexStinEcna == 10 && n1StinEcha == 11) {
2583 if (n1StexStinEcna == 11 && n1StinEcha == 11) {
2586 if (!((n1StexStinEcna == 29 || n1StexStinEcna == 32) && n1StinEcha == 11)) {
2591 Double_t xdivis = (Double_t)0.;
2634 std::cout <<
"*TEcnaRun::LowFrequencyCovariancesBetweenChannels()" << std::endl;
2637 std::cout <<
" Calculation of the Low Frequency Covariances between channels" << std::endl;
2647 for (Int_t i0StexEcha = 0; i0StexEcha < n_StexEcha; i0StexEcha++) {
2654 if (
fT2d_lf_cov[i0StexEcha][j0StexEcha] != (Double_t)0) {
2656 fT2d_lf_cov[i0StexEcha][j0StexEcha] = (Double_t)0;
2665 mean_over_samples(i0StexEcha, n_event) = (Double_t)0.;
2671 MoeOfMos(i0StexEcha) = (Double_t)0.;
2676 std::cout <<
" Calculation, for each pair of channels, of the covariance (over the events)" << std::endl
2677 <<
" between the ADC expectation values (over the samples 1 to " <<
fNbSampForCalc <<
")." 2684 MoeOfMos(i0StexEcha) = (Double_t)0;
2690 mean_over_samples(i0StexEcha, n_event) = (Double_t)0.;
2691 for (Int_t i0Sample = 0; i0Sample <
fNbSampForCalc; i0Sample++) {
2692 mean_over_samples(i0StexEcha, n_event) +=
fT3d_AdcValues[i0StexEcha][i0Sample][n_event];
2694 mean_over_samples(i0StexEcha, n_event) /= (Double_t)
fNbSampForCalc;
2698 MoeOfMos(i0StexEcha) += mean_over_samples(i0StexEcha, n_event);
2708 for (Int_t j0StexEcha = 0; j0StexEcha <= i0StexEcha; j0StexEcha++) {
2711 fT2d_lf_cov[i0StexEcha][j0StexEcha] = (Double_t)0;
2713 fT2d_lf_cov[i0StexEcha][j0StexEcha] += (mean_over_samples(i0StexEcha, n_event) - MoeOfMos(i0StexEcha)) *
2714 (mean_over_samples(j0StexEcha, n_event) - MoeOfMos(j0StexEcha));
2721 if (i0StexEcha % 100 == 0) {
2722 std::cout << i0StexEcha <<
"[LFN Cov], ";
2749 std::cout <<
"*TEcnaRun::LowFrequencyCorrelationsBetweenChannels()" << std::endl;
2752 std::cout <<
" Calculation of the Low Frequency Correlations between channels" << std::endl
2753 <<
" Starting allocation. " << std::endl;
2763 for (Int_t i0StexEcha = 0; i0StexEcha < n_StexEcha; i0StexEcha++) {
2770 if (
fT2d_lf_cor[i0StexEcha][j0StexEcha] != (Double_t)0) {
2772 fT2d_lf_cor[i0StexEcha][j0StexEcha] = (Double_t)0;
2782 for (Int_t j0StexEcha = 0; j0StexEcha <= i0StexEcha; j0StexEcha++) {
2790 fT2d_lf_cor[i0StexEcha][j0StexEcha] = (Double_t)0.;
2796 if (i0StexEcha % 100 == 0) {
2797 std::cout << i0StexEcha <<
"[LFN Cor], ";
2826 std::cout <<
"*TEcnaRun::HighFrequencyCovariancesBetweenChannels()" << std::endl;
2829 std::cout <<
" Calculation of the High Frequency Covariances between channels" << std::endl;
2839 for (Int_t i0StexEcha = 0; i0StexEcha < n_StexEcha; i0StexEcha++) {
2846 if (
fT2d_hf_cov[i0StexEcha][j0StexEcha] != (Double_t)0) {
2848 fT2d_hf_cov[i0StexEcha][j0StexEcha] = (Double_t)0;
2857 mean_over_samples(i0StexEcha, n_event) = (Double_t)0.;
2864 cov_over_samp(i0StexEcha, j0StexEcha) = (Double_t)0.;
2870 std::cout <<
" Calculation of the mean (over the events)" << std::endl
2871 <<
" of the covariances between the channels (over the samples 1 to " <<
fNbSampForCalc <<
")." 2882 mean_over_samples(i0StexEcha, n_event) = (Double_t)0.;
2883 for (Int_t i0Sample = 0; i0Sample <
fNbSampForCalc; i0Sample++) {
2884 mean_over_samples(i0StexEcha, n_event) +=
fT3d_AdcValues[i0StexEcha][i0Sample][n_event];
2886 mean_over_samples(i0StexEcha, n_event) /= (Double_t)
fNbSampForCalc;
2889 if (i0StexEcha % 100 == 0) {
2890 std::cout << i0StexEcha <<
"[HFNa Cov], ";
2901 for (Int_t j0StexEcha = 0; j0StexEcha <= i0StexEcha; j0StexEcha++) {
2906 cov_over_samp(i0StexEcha, j0StexEcha) = (Double_t)0;
2907 for (Int_t i0Sample = 0; i0Sample <
fNbSampForCalc; i0Sample++) {
2908 cov_over_samp(i0StexEcha, j0StexEcha) +=
2909 (
fT3d_AdcValues[i0StexEcha][i0Sample][n_event] - mean_over_samples(i0StexEcha, n_event)) *
2910 (
fT3d_AdcValues[j0StexEcha][i0Sample][n_event] - mean_over_samples(j0StexEcha, n_event));
2912 cov_over_samp(i0StexEcha, j0StexEcha) /= (Double_t)
fNbSampForCalc;
2916 fT2d_hf_cov[i0StexEcha][j0StexEcha] = (Double_t)0;
2918 fT2d_hf_cov[i0StexEcha][j0StexEcha] += cov_over_samp(i0StexEcha, j0StexEcha);
2926 if (i0StexEcha % 100 == 0) {
2927 std::cout << i0StexEcha <<
"[HFNb Cov], ";
2954 std::cout <<
"*TEcnaRun::HighFrequencyCorrelationsBetweenChannels()" << std::endl;
2957 std::cout <<
" Calculation of the High Frequency Correlations between channels" << std::endl
2958 <<
" Starting allocation. " << std::endl;
2968 for (Int_t i0StexEcha = 0; i0StexEcha < n_StexEcha; i0StexEcha++) {
2975 if (
fT2d_hf_cor[i0StexEcha][j0StexEcha] != (Double_t)0) {
2977 fT2d_hf_cor[i0StexEcha][j0StexEcha] = (Double_t)0;
2988 for (Int_t j0StexEcha = 0; j0StexEcha <= i0StexEcha; j0StexEcha++) {
2996 fT2d_hf_cor[i0StexEcha][j0StexEcha] = (Double_t)0.;
3003 if (i0StexEcha % 100 == 0) {
3004 std::cout << i0StexEcha <<
"[HFN Cor], ";
3041 std::cout <<
"*TEcnaRun::LowFrequencyMeanCorrelationsBetweenStins()" << std::endl;
3044 std::cout <<
" Calculation of the mean, for each " <<
fStinName.Data() <<
", of the" << std::endl
3045 <<
" Low Frequency Correlations between channels." << std::endl;
3055 for (Int_t i0StexStinEcna = 0; i0StexStinEcna < n_Stin; i0StexStinEcna++) {
3080 TVectorD half_LFccMos(ndim);
3081 for (Int_t
i = 0;
i < ndim;
i++) {
3082 half_LFccMos(
i) = (Double_t)0.;
3087 std::cout <<
"*TEcnaRun::LowFrequencyMeanCorrelationsBetweenStins()" << std::endl;
3090 std::cout <<
" Calculation, for each " <<
fStinName.Data() <<
", of the mean " << std::endl
3091 <<
" Low Frequency cor(c,c)." << std::endl;
3102 if ((i0StexEcha >= 0 && i0StexEcha < fEcal->MaxCrysEcnaInStex()) &&
3103 (j0StexEcha >= 0 && j0StexEcha < fEcal->MaxCrysEcnaInStex())) {
3104 half_LFccMos(i_count) =
fT2d_lf_cor[i0StexEcha][j0StexEcha];
3107 std::cout <<
"!TEcnaRun::LowFrequencyMeanCorrelationsBetweenStins()> Channel number out of range." 3108 <<
"i0StexEcha = " << i0StexEcha <<
", j0StexEcha = " << j0StexEcha <<
fTTBELL << std::endl;
3114 for (Int_t i_rcor = 0; i_rcor < ndim; i_rcor++) {
3115 fT2d_lfcc_mostins[i0StexStinEcna][j0StexStinEcna] += fabs(half_LFccMos(i_rcor));
3119 if (i0StexStinEcna % 10 == 0) {
3120 std::cout << i0StexStinEcna <<
"[LFN MCtt], ";
3149 std::cout <<
"*TEcnaRun::HighFrequencyMeanCorrelationsBetweenStins()" << std::endl;
3152 std::cout <<
" Calculation of the mean, for each " <<
fFlagSubDet.Data() <<
", of the" << std::endl
3153 <<
" High Frequency Correlations between channels." << std::endl;
3163 for (Int_t i0StexStinEcna = 0; i0StexStinEcna < n_Stin; i0StexStinEcna++) {
3188 TVectorD half_HFccMos(ndim);
3189 for (Int_t
i = 0;
i < ndim;
i++) {
3190 half_HFccMos(
i) = (Double_t)0.;
3194 std::cout <<
"*TEcnaRun::HighFrequencyMeanCorrelationsBetweenStins()" << std::endl;
3198 <<
" High Frequency cor(c,c)." << std::endl;
3210 if ((i0StexEcha >= 0 && i0StexEcha < fEcal->MaxCrysEcnaInStex()) &&
3211 (j0StexEcha >= 0 && j0StexEcha < fEcal->MaxCrysEcnaInStex())) {
3212 half_HFccMos(i_count) =
fT2d_hf_cor[i0StexEcha][j0StexEcha];
3215 std::cout <<
"!TEcnaRun::HighFrequencyMeanCorrelationsBetweenStins()> Channel number out of range." 3216 <<
"i0StexEcha = " << i0StexEcha <<
", j0StexEcha = " << j0StexEcha <<
fTTBELL << std::endl;
3222 for (Int_t i_rcor = 0; i_rcor < ndim; i_rcor++) {
3223 fT2d_hfcc_mostins[i0StexStinEcna][j0StexStinEcna] += fabs(half_HFccMos(i_rcor));
3227 if (i0StexStinEcna % 10 == 0) {
3228 std::cout << i0StexStinEcna <<
"[HFN MCtt], ";
3256 Bool_t ok_open = kFALSE;
3261 s_name.Append(
name);
3266 if (iCnaRootFile == 0) {
3282 std::cout <<
"TEcnaRun::OpenRootFile> Cannot open file " << s_name.Data() << std::endl;
3285 std::cout <<
"*TEcnaRun::OpenRootFile> Open ROOT file OK for file " << s_name.Data() << std::endl;
3302 s_name.Append(
name);
3304 Bool_t ok_close = kFALSE;
3310 std::cout <<
"*TEcnaRun::CloseRootFile> ROOT file " << s_name.Data() <<
" closed." << std::endl;
3318 std::cout <<
"*TEcnaRun::CloseRootFile(...)> No close since no file is open." <<
fTTBELL << std::endl;
3344 Bool_t ok_write = kFALSE;
3347 Int_t nCountEvts = 0;
3355 if (nCountEvts <= 0) {
3358 <<
". File will not be written." << std::endl;
3362 std::cout <<
"*TEcnaRun::WriteRootFile()> Results are going to be written in the ROOT file: " << std::endl
3369 if (ok_write == kTRUE) {
3393 Bool_t ok_write = kFALSE;
3414 std::cout <<
"*TEcnaRun::WriteNewRootFile()> Results are going to be written in the ROOT file: " << std::endl
3442 Bool_t ok_write = kFALSE;
3445 std::cout <<
"!TEcnaRun::WriteRootFile(...) *** ERROR ***> Writing on file already open." <<
fTTBELL << std::endl;
3493 TString typ_name =
"?";
3494 Int_t v_nb_times = 0;
3495 Int_t v_dim_one = 0;
3496 Int_t v_dim_two = 0;
3499 Int_t v_tot_writ = 0;
3513 typ_name.Resize(MaxCar);
3514 typ_name =
"StinNumbers";
3518 v_size = v_nb_times * v_dim_one * v_dim_two;
3522 std::cout <<
"*TEcnaRun::WriteRootFile(...)> " << std::setw(18) << typ_name <<
": " << std::setw(4) << v_nb_times
3523 <<
" * (" << std::setw(4) << v_dim_one <<
"," << std::setw(4) << v_dim_two <<
") = " << std::setw(9)
3527 for (Int_t
i = 0;
i < v_nb_times;
i++) {
3537 v_tot_writ += v_size;
3549 typ_name.Resize(MaxCar);
3554 v_size = v_nb_times * v_dim_one * v_dim_two;
3558 std::cout <<
"*TEcnaRun::WriteRootFile(...)> " << std::setw(18) << typ_name <<
": " << std::setw(4) << v_nb_times
3559 <<
" * (" << std::setw(4) << v_dim_one <<
"," << std::setw(4) << v_dim_two <<
") = " << std::setw(9)
3563 for (Int_t
i = 0;
i < v_nb_times;
i++) {
3573 v_tot_writ += v_size;
3585 typ_name.Resize(MaxCar);
3590 v_size = v_nb_times * v_dim_one * v_dim_two;
3594 std::cout <<
"*TEcnaRun::WriteRootFile(...)> " << std::setw(18) << typ_name <<
": " << std::setw(4) << v_nb_times
3595 <<
" * (" << std::setw(4) << v_dim_one <<
"," << std::setw(4) << v_dim_two <<
") = " << std::setw(9)
3599 for (Int_t
i = 0;
i < v_nb_times;
i++) {
3609 v_tot_writ += v_size;
3621 typ_name.Resize(MaxCar);
3626 v_size = v_nb_times * v_dim_one * v_dim_two;
3630 std::cout <<
"*TEcnaRun::WriteRootFile(...)> " << std::setw(18) << typ_name <<
": " << std::setw(4) << v_nb_times
3631 <<
" * (" << std::setw(4) << v_dim_one <<
"," << std::setw(4) << v_dim_two <<
") = " << std::setw(9)
3635 for (Int_t
i = 0;
i < v_nb_times;
i++) {
3645 v_tot_writ += v_size;
3657 typ_name.Resize(MaxCar);
3662 v_size = v_nb_times * v_dim_one * v_dim_two;
3666 std::cout <<
"*TEcnaRun::WriteRootFile(...)> " << std::setw(18) << typ_name <<
": " << std::setw(4) << v_nb_times
3667 <<
" * (" << std::setw(4) << v_dim_one <<
"," << std::setw(4) << v_dim_two <<
") = " << std::setw(9)
3671 for (Int_t
i = 0;
i < v_nb_times;
i++) {
3681 v_tot_writ += v_size;
3693 typ_name.Resize(MaxCar);
3694 typ_name =
"AvMeanCorss";
3698 v_size = v_nb_times * v_dim_one * v_dim_two;
3702 std::cout <<
"*TEcnaRun::WriteRootFile(...)> " << std::setw(18) << typ_name <<
": " << std::setw(4) << v_nb_times
3703 <<
" * (" << std::setw(4) << v_dim_one <<
"," << std::setw(4) << v_dim_two <<
") = " << std::setw(9)
3707 for (Int_t
i = 0;
i < v_nb_times;
i++) {
3717 v_tot_writ += v_size;
3729 typ_name.Resize(MaxCar);
3730 typ_name =
"AvSigCorss";
3734 v_size = v_nb_times * v_dim_one * v_dim_two;
3738 std::cout <<
"*TEcnaRun::WriteRootFile(...)> " << std::setw(18) << typ_name <<
": " << std::setw(4) << v_nb_times
3739 <<
" * (" << std::setw(4) << v_dim_one <<
"," << std::setw(4) << v_dim_two <<
") = " << std::setw(9)
3743 for (Int_t
i = 0;
i < v_nb_times;
i++) {
3753 v_tot_writ += v_size;
3765 typ_name.Resize(MaxCar);
3770 v_size = v_nb_times * v_dim_one * v_dim_two;
3774 std::cout <<
"*TEcnaRun::WriteRootFile(...)> " << std::setw(18) << typ_name <<
": " << std::setw(4) << v_nb_times
3775 <<
" * (" << std::setw(4) << v_dim_one <<
"," << std::setw(4) << v_dim_two <<
") = " << std::setw(9)
3779 for (Int_t
i = 0;
i < v_nb_times;
i++) {
3789 v_tot_writ += v_size;
3801 typ_name.Resize(MaxCar);
3806 v_size = v_nb_times * v_dim_one * v_dim_two;
3810 std::cout <<
"*TEcnaRun::WriteRootFile(...)> " << std::setw(18) << typ_name <<
": " << std::setw(4) << v_nb_times
3811 <<
" * (" << std::setw(4) << v_dim_one <<
"," << std::setw(4) << v_dim_two <<
") = " << std::setw(9)
3815 for (Int_t
i = 0;
i < v_nb_times;
i++) {
3825 v_tot_writ += v_size;
3837 typ_name.Resize(MaxCar);
3838 typ_name =
"MeanCorss";
3842 v_size = v_nb_times * v_dim_one * v_dim_two;
3846 std::cout <<
"*TEcnaRun::WriteRootFile(...)> " << std::setw(18) << typ_name <<
": " << std::setw(4) << v_nb_times
3847 <<
" * (" << std::setw(4) << v_dim_one <<
"," << std::setw(4) << v_dim_two <<
") = " << std::setw(9)
3851 for (Int_t
i = 0;
i < v_nb_times;
i++) {
3861 v_tot_writ += v_size;
3873 typ_name.Resize(MaxCar);
3878 v_size = v_nb_times * v_dim_one * v_dim_two;
3882 std::cout <<
"*TEcnaRun::WriteRootFile(...)> " << std::setw(18) << typ_name <<
": " << std::setw(4) << v_nb_times
3883 <<
" * (" << std::setw(4) << v_dim_one <<
"," << std::setw(4) << v_dim_two <<
") = " << std::setw(9)
3887 for (Int_t
i = 0;
i < v_nb_times;
i++) {
3897 v_tot_writ += v_size;
3909 typ_name.Resize(MaxCar);
3914 v_size = v_nb_times * v_dim_one * v_dim_two;
3918 std::cout <<
"*TEcnaRun::WriteRootFile(...)> " << std::setw(18) << typ_name <<
": " << std::setw(4) << v_nb_times
3919 <<
" * (" << std::setw(4) << v_dim_one <<
"," << std::setw(4) << v_dim_two <<
") = " << std::setw(9)
3923 for (Int_t
i = 0;
i < v_nb_times;
i++) {
3933 v_tot_writ += v_size;
3945 typ_name.Resize(MaxCar);
3946 typ_name =
"SigCorss";
3950 v_size = v_nb_times * v_dim_one * v_dim_two;
3954 std::cout <<
"*TEcnaRun::WriteRootFile(...)> " << std::setw(18) << typ_name <<
": " << std::setw(4) << v_nb_times
3955 <<
" * (" << std::setw(4) << v_dim_one <<
"," << std::setw(4) << v_dim_two <<
") = " << std::setw(9)
3959 for (Int_t
i = 0;
i < v_nb_times;
i++) {
3969 v_tot_writ += v_size;
3981 typ_name.Resize(MaxCar);
3982 typ_name =
"LFccMoStins";
3986 v_size = v_nb_times * v_dim_one * v_dim_two;
3990 std::cout <<
"*TEcnaRun::WriteRootFile(...)> " << std::setw(18) << typ_name <<
": " << std::setw(4) << v_nb_times
3991 <<
" * (" << std::setw(4) << v_dim_one <<
"," << std::setw(4) << v_dim_two <<
") = " << std::setw(9)
3995 for (Int_t
i = 0;
i < v_nb_times;
i++) {
4005 v_tot_writ += v_size;
4017 typ_name.Resize(MaxCar);
4018 typ_name =
"HFccMoStins";
4022 v_size = v_nb_times * v_dim_one * v_dim_two;
4026 std::cout <<
"*TEcnaRun::WriteRootFile(...)> " << std::setw(18) << typ_name <<
": " << std::setw(4) << v_nb_times
4027 <<
" * (" << std::setw(4) << v_dim_one <<
"," << std::setw(4) << v_dim_two <<
") = " << std::setw(9)
4031 for (Int_t
i = 0;
i < v_nb_times;
i++) {
4041 v_tot_writ += v_size;
4053 typ_name.Resize(MaxCar);
4054 typ_name =
"NbOfEvts";
4057 v_dim_two = argNbSampWrite;
4058 v_size = v_nb_times * v_dim_one * v_dim_two;
4062 std::cout <<
"*TEcnaRun::WriteRootFile(...)> " << std::setw(18) << typ_name <<
": " << std::setw(4) << v_nb_times
4063 <<
" * (" << std::setw(4) << v_dim_one <<
"," << std::setw(4) << v_dim_two <<
") = " << std::setw(9)
4067 for (Int_t
i = 0;
i < v_nb_times;
i++) {
4077 v_tot_writ += v_size;
4089 typ_name.Resize(MaxCar);
4093 v_dim_two = argNbSampWrite;
4094 v_size = v_nb_times * v_dim_one * v_dim_two;
4098 std::cout <<
"*TEcnaRun::WriteRootFile(...)> " << std::setw(18) << typ_name <<
": " << std::setw(4) << v_nb_times
4099 <<
" * (" << std::setw(4) << v_dim_one <<
"," << std::setw(4) << v_dim_two <<
") = " << std::setw(9)
4103 for (Int_t
i = 0;
i < v_nb_times;
i++) {
4113 v_tot_writ += v_size;
4125 typ_name.Resize(MaxCar);
4129 v_dim_two = argNbSampWrite;
4130 v_size = v_nb_times * v_dim_one * v_dim_two;
4134 std::cout <<
"*TEcnaRun::WriteRootFile(...)> " << std::setw(18) << typ_name <<
": " << std::setw(4) << v_nb_times
4135 <<
" * (" << std::setw(4) << v_dim_one <<
"," << std::setw(4) << v_dim_two <<
") = " << std::setw(9)
4139 for (Int_t
i = 0;
i < v_nb_times;
i++) {
4149 v_tot_writ += v_size;
4162 typ_name.Resize(MaxCar);
4163 typ_name =
"CovCss";
4165 v_dim_one = argNbSampWrite;
4166 v_dim_two = argNbSampWrite;
4167 v_size = v_nb_times * v_dim_one * v_dim_two;
4171 std::cout <<
"*TEcnaRun::WriteRootFile(...)> " << std::setw(18) << typ_name <<
": " << std::setw(4) << v_nb_times
4172 <<
" * (" << std::setw(4) << v_dim_one <<
"," << std::setw(4) << v_dim_two <<
") = " << std::setw(9)
4176 for (Int_t i0StexEcha = 0; i0StexEcha < v_nb_times; i0StexEcha++) {
4186 v_tot_writ += v_size;
4198 typ_name.Resize(MaxCar);
4199 typ_name =
"CorCss";
4201 v_dim_one = argNbSampWrite;
4202 v_dim_two = argNbSampWrite;
4203 v_size = v_nb_times * v_dim_one * v_dim_two;
4207 std::cout <<
"*TEcnaRun::WriteRootFile(...)> " << std::setw(18) << typ_name <<
": " << std::setw(4) << v_nb_times
4208 <<
" * (" << std::setw(4) << v_dim_one <<
"," << std::setw(4) << v_dim_two <<
") = " << std::setw(9)
4212 for (Int_t i0StexEcha = 0; i0StexEcha < v_nb_times; i0StexEcha++) {
4222 v_tot_writ += v_size;
4234 typ_name.Resize(MaxCar);
4235 typ_name =
"AdcEvt";
4237 v_dim_one = argNbSampWrite;
4239 v_size = v_nb_times * v_dim_one * v_dim_two;
4243 std::cout <<
"*TEcnaRun::WriteRootFile(...)> " << std::setw(18) << typ_name <<
": " << std::setw(4) << v_nb_times
4244 <<
" * (" << std::setw(4) << v_dim_one <<
"," << std::setw(4) << v_dim_two <<
") = " << std::setw(9)
4248 for (Int_t i0StexEcha = 0; i0StexEcha < v_nb_times; i0StexEcha++) {
4258 v_tot_writ += v_size;
4270 typ_name.Resize(MaxCar);
4275 v_size = v_nb_times * v_dim_one * v_dim_two;
4279 std::cout <<
"*TEcnaRun::WriteRootFile(...)> " << std::setw(18) << typ_name <<
": " << std::setw(4) << v_nb_times
4280 <<
" * (" << std::setw(4) << v_dim_one <<
"," << std::setw(4) << v_dim_two <<
") = " << std::setw(9)
4284 for (Int_t
i = 0;
i < v_nb_times;
i++) {
4294 v_tot_writ += v_size;
4306 typ_name.Resize(MaxCar);
4311 v_size = v_nb_times * v_dim_one * v_dim_two;
4315 std::cout <<
"*TEcnaRun::WriteRootFile(...)> " << std::setw(18) << typ_name <<
": " << std::setw(4) << v_nb_times
4316 <<
" * (" << std::setw(4) << v_dim_one <<
"," << std::setw(4) << v_dim_two <<
") = " << std::setw(9)
4320 for (Int_t
i = 0;
i < v_nb_times;
i++) {
4330 v_tot_writ += v_size;
4342 typ_name.Resize(MaxCar);
4347 v_size = v_nb_times * v_dim_one * v_dim_two;
4351 std::cout <<
"*TEcnaRun::WriteRootFile(...)> " << std::setw(18) << typ_name <<
": " << std::setw(4) << v_nb_times
4352 <<
" * (" << std::setw(4) << v_dim_one <<
"," << std::setw(4) << v_dim_two <<
") = " << std::setw(9)
4356 for (Int_t
i = 0;
i < v_nb_times;
i++) {
4366 v_tot_writ += v_size;
4378 typ_name.Resize(MaxCar);
4383 v_size = v_nb_times * v_dim_one * v_dim_two;
4387 std::cout <<
"*TEcnaRun::WriteRootFile(...)> " << std::setw(18) << typ_name <<
": " << std::setw(4) << v_nb_times
4388 <<
" * (" << std::setw(4) << v_dim_one <<
"," << std::setw(4) << v_dim_two <<
") = " << std::setw(9)
4392 for (Int_t
i = 0;
i < v_nb_times;
i++) {
4402 v_tot_writ += v_size;
4418 std::cout <<
"*TEcnaRun::WriteRootFile(...)> " << std::setw(20) <<
"TOTAL: " << std::setw(21)
4419 <<
"CALCULATED = " << std::setw(9) << v_tot <<
" => WRITTEN ON FILE = " << std::setw(9) << v_tot_writ
4424 std::cout <<
"*TEcnaRun::WriteRootFile(...)> Write OK in file " <<
file_name <<
" in directory:" << std::endl
4461 for (Int_t i0Sample = 0; i0Sample < argNbSampWrite; i0Sample++) {
4476 for (Int_t i0Sample = 0; i0Sample < argNbSampWrite; i0Sample++) {
4498 for (Int_t i0Sample = 0; i0Sample < argNbSampWrite; i0Sample++) {
4514 for (Int_t i0Sample = 0; i0Sample < argNbSampWrite; i0Sample++) {
4670 for (Int_t i0Sample = 0; i0Sample < argNbSampWrite; i0Sample++) {
4671 for (Int_t j0Sample = 0; j0Sample < argNbSampWrite; j0Sample++) {
4686 for (Int_t i0Sample = 0; i0Sample < argNbSampWrite; i0Sample++) {
4687 for (Int_t j0Sample = 0; j0Sample < argNbSampWrite; j0Sample++) {
4840 std::cout <<
"*TEcnaRun::PrintComments()> Warnings and some comments on init will be printed" << std::endl;
4847 std::cout <<
"*TEcnaRun::PrintWarnings()> Warnings will be printed" << std::endl;
4854 std::cout <<
"*TEcnaRun::PrintAllComments()> All the comments will be printed" << std::endl;
TEcnaResultType * fCnaIndivResult
void TRootAdcEvt(const Int_t &, const Int_t &)
Bool_t OpenR(const Text_t *="")
Double_t * fT1d_av_sig_corss
Int_t NumberOfEventsAnalysis(Int_t **, const Int_t &, const Int_t &, const Int_t &)
void LowFrequencyMeanCorrelationsBetweenSCs()
Int_t fCodePrintNoComment
void HighFrequencyMeanCorrelationsBetweenStins()
void Expert1Calculations()
Double_t * fT1d_sigevt_of_evsamp
void HighFrequencyMeanCorrelationsBetweenTowers()
Int_t fBuildEvtNotSkipped
void CovariancesBetweenSamples()
TEcnaObject * fObjectManager
void GetReadyToReadData(const TString &, const Int_t &, const Int_t &, const Int_t &, const Int_t &, const Int_t &)
void RegisterFileParameters(const TString &, const Int_t &, const Int_t &, const Int_t &, const Int_t &, const Int_t &, const Int_t &, const TString &, const TString &, const time_t, const time_t)
TEcnaParCout * fCnaParCout
Int_t fCodePrintAllComments
void TRootSSp(const Int_t &)
Double_t * fT1d_sig_cor_ss
TEcnaHeader * fFileHeader
void LowFrequencyMeanCorrelationsBetweenTowers()
void TRootCovCss(const Int_t &, const Int_t &)
TString GetRootFileNameShort()
Int_t * fT1dCrysNumbersTable
void Expert2Calculations()
Double_t * fT1d_av_ev_corss
void SetSizeHis(Int_t, Int_t)
Double_t ** fT2d_hfcc_mostins
Double_t * fT3d1_AdcValues
void SigmaOfCorrelationsBetweenSamples()
Bool_t RegisterPointer(const TString &, const Long_t &)
Bool_t CloseRootFile(const Text_t *)
TString GetRootFileNameShort()
void TRootMSp(const Int_t &)
R__EXTERN TEcnaRootFile * gCnaRootFile
CnaResultTyp fTypOfCnaResult
TVectorD ReadStinNumbers(const Int_t &)
void AverageMeanCorrelationsBetweenSamples()
Double_t *** fT3d_AdcValues
Bool_t GetPathForResults()
void TRootCorCss(const Int_t &, const Int_t &)
Int_t GetStexStinFromIndex(const Int_t &)
void AverageLowFrequencyNoise()
TEcnaParPaths * fCnaParPaths
Bool_t ReadSampleAdcValues()
Int_t fMemoReadNumberOfEventsforSamples
Int_t fMaxMsgIndexForMiscDiag
Bool_t OpenRootFile(const Text_t *, const TString &)
Double_t * fT2d1_hfcc_mostins
Int_t fSpecialStexStinNotIndexed
void HighFrequencyCorrelationsBetweenChannels()
TString GetRootFileName()
Int_t StexEchaForCons(const Int_t &, const Int_t &)
void StandardCalculations()
Bool_t GetPathForResultsRootFiles()
TString GetRootFileName()
void AverageSigmaOfCorrelationsBetweenSamples()
Int_t GetDeeSCConsFrom1DeeSCEcna(const Int_t &, const Int_t &)
void LowFrequencyMeanCorrelationsBetweenStins()
Int_t MaxCrysInStinEcna(const Int_t &, const Int_t &, const TString &)
Double_t * fT1d_evsamp_of_sigevt
TString GetNewRootFileNameShort()
Bool_t GetSampleAdcValues(const Int_t &, const Int_t &, const Int_t &, const Int_t &, const Double_t &)
void SetEcalSubDetector(const TString &)
void SetSizeMat(Int_t, Int_t)
Bool_t WriteNewRootFile(const TString &)
TMatrixD ReadNumberOfEventsForSamples(const Int_t &, const Int_t &, const Int_t &)
Double_t *** ReadSampleAdcValuesSameFile(const Int_t &, const Int_t &, const Int_t &)
void HighFrequencyMeanCorrelationsBetweenSCs()
void HighFrequencyCovariancesBetweenChannels()
void FileParameters(const TString &, const Int_t &, const Int_t &, const Int_t &, const Int_t &, const Int_t &, const Int_t &, const TString &)
void MeanCorrelationsBetweenSamples()
Double_t * fT2d1_lfcc_mostins
TString GetNewRootFileName()
TString fNewRootFileNameShort
TString ResultsRootFilePath()
Int_t GetCodePrint(const TString &)
Int_t MaxCrysEcnaInStex()
void TRootNbOfEvts(const Int_t &)
void HighFrequencyNoise()
void AverageHighFrequencyNoise()
Int_t Get0StexEchaFrom1StexStinAnd0StinEcha(const Int_t &, const Int_t &)
void LowFrequencyCovariancesBetweenChannels()
Double_t ** fT3d2_AdcValues
void ReStart(const Text_t *)
void LowFrequencyCorrelationsBetweenChannels()
Int_t MaxStinEcnaInStex()
TString GetRootFileNameShort()
void CorrelationsBetweenSamples()
Bool_t OpenW(const Text_t *="")
void fMakeResultsFileName()
Int_t ** fT2dCrysNumbersTable
TString GetRootFileName()
Int_t fNbOfMiscDiagCounters
Int_t * fT1d_StexStinFromIndex
Long_t GetPointerValue(const TString &)
void StartStopTime(time_t, time_t)
Double_t * fT1d_evevt_of_sigsamp
TEcnaNumbering * fEcalNumbering
Double_t * fT1d_ev_cor_ss
TString fRootFileNameShort
void StartStopDate(const TString &, const TString &)
Double_t ** fT2d_lfcc_mostins