478 |
if (deltaTime > 1) cout << endl << "******** deltaTime<1 ********" << endl; |
if (deltaTime > 1) cout << endl << "******** deltaTime<1 ********" << endl; |
479 |
// Does nothing for the first two events or if acquisition time if more |
// Does nothing for the first two events or if acquisition time if more |
480 |
// than 1s. |
// than 1s. |
481 |
if(i<2 || (deltaTime > 1)) continue; |
if(i<1 || (deltaTime > 1)) continue; |
482 |
|
|
483 |
// CAS3 and CAS4 are not rates but only counters. So I fill |
// CAS3 and CAS4 are not rates but only counters. So I fill |
484 |
// with the bin with the difference beetween the actual counter |
// with the bin with the difference beetween the actual counter |
591 |
trigS111A_rate->Divide(trigS111A_counter, obtBinTime, 1, 1, ""); |
trigS111A_rate->Divide(trigS111A_counter, obtBinTime, 1, 1, ""); |
592 |
oss.str(""); |
oss.str(""); |
593 |
oss << basename.Data() << "_orbit_trigS111A.png"; |
oss << basename.Data() << "_orbit_trigS111A.png"; |
594 |
trigS111A_rate->SetMinimum(10); |
trigS111A_rate->SetMinimum(9); |
595 |
printHist(trigS111A_rate, mapFile, outDirectory, oss.str().c_str(), "S111A (Hz)", -width, height, true, 0); |
printHist(trigS111A_rate, mapFile, outDirectory, oss.str().c_str(), "S111A (Hz)", -width, height, true, 0); |
596 |
|
|
597 |
antiCAS4_rate->Divide(antiCAS4_counter, obtBinTime, 1, 1, ""); |
antiCAS4_rate->Divide(antiCAS4_counter, obtBinTime, 1, 1, ""); |
598 |
oss.str(""); |
oss.str(""); |
599 |
oss << basename.Data() << "_orbit_CAS4.png"; |
oss << basename.Data() << "_orbit_CAS4.png"; |
600 |
antiCAS4_rate->SetMinimum(100); |
antiCAS4_rate->SetMinimum(99); |
601 |
printHist(antiCAS4_rate, mapFile, outDirectory, oss.str().c_str(), "CAS4 (Hz)", -width, height, true, 0); |
printHist(antiCAS4_rate, mapFile, outDirectory, oss.str().c_str(), "CAS4 (Hz)", -width, height, true, 0); |
602 |
|
|
603 |
antiCAS3_rate->Divide(antiCAS3_counter, obtBinTime, 1, 1, ""); |
antiCAS3_rate->Divide(antiCAS3_counter, obtBinTime, 1, 1, ""); |
604 |
oss.str(""); |
oss.str(""); |
605 |
oss << basename.Data() << "_orbit_CAS3.png"; |
oss << basename.Data() << "_orbit_CAS3.png"; |
606 |
antiCAS3_rate->SetMinimum(100); |
antiCAS3_rate->SetMinimum(99); |
607 |
printHist(antiCAS3_rate, mapFile, outDirectory, oss.str().c_str(), "CAS3 (Hz)", -width, height, true, 0); |
printHist(antiCAS3_rate, mapFile, outDirectory, oss.str().c_str(), "CAS3 (Hz)", -width, height, true, 0); |
608 |
|
|
609 |
event_rate->Divide(event_counter, obtBinTime, 1, 1, ""); |
event_rate->Divide(event_counter, obtBinTime, 1, 1, ""); |
614 |
trigS11andS12_rate->Divide(trigS11andS12_counter, obtBinTime, 1, 1, ""); |
trigS11andS12_rate->Divide(trigS11andS12_counter, obtBinTime, 1, 1, ""); |
615 |
oss.str(""); |
oss.str(""); |
616 |
oss << basename.Data() << "_orbit_trigS11andS12.png"; |
oss << basename.Data() << "_orbit_trigS11andS12.png"; |
617 |
antiCAS3_rate->SetMinimum(100); |
trigS11andS12_rate->SetMinimum(99); |
618 |
printHist(trigS11andS12_rate, mapFile, outDirectory, oss.str().c_str(), "(S11*S12) (Hz)", -width, height, 1, 0); |
printHist(trigS11andS12_rate, mapFile, outDirectory, oss.str().c_str(), "(S11*S12) (Hz)", -width, height, 1, 0); |
619 |
|
|
620 |
trigS12andS21andS22_rate->Divide(trigS12andS21andS22_counter, obtBinTime, 1, 1, ""); |
trigS12andS21andS22_rate->Divide(trigS12andS21andS22_counter, obtBinTime, 1, 1, ""); |
621 |
oss.str(""); |
oss.str(""); |
622 |
oss << basename.Data() << "_orbit_trigS12andS21andS22.png"; |
oss << basename.Data() << "_orbit_trigS12andS21andS22.png"; |
623 |
antiCAS3_rate->SetMinimum(10); |
trigS12andS21andS22_rate->SetMinimum(9); |
624 |
printHist(trigS12andS21andS22_rate, mapFile, outDirectory, oss.str().c_str(), "(S12*S12*S21) (Hz)", -width, height, true, 0); |
printHist(trigS12andS21andS22_rate, mapFile, outDirectory, oss.str().c_str(), "(S12*S12*S21) (Hz)", -width, height, true, 0); |
625 |
|
|
626 |
trigAndOr_rate->Divide(trigAndOr_counter, obtBinTime, 1, 1, ""); |
trigAndOr_rate->Divide(trigAndOr_counter, obtBinTime, 1, 1, ""); |
737 |
// Create a canvas and draw the TH2F with a nice colormap for z |
// Create a canvas and draw the TH2F with a nice colormap for z |
738 |
// values, using log scale for z values, if requested, and setting |
// values, using log scale for z values, if requested, and setting |
739 |
// some title. |
// some title. |
740 |
TCanvas *canvas = new TCanvas("h", "passed histogram", width*2, height*2); |
TCanvas *canvas = new TCanvas("h", "h histogram", width*2, height*2); |
741 |
|
|
742 |
if(use_log) { |
if(use_log) canvas->SetLogz(); |
|
canvas->SetLogz(); |
|
|
} |
|
743 |
|
|
744 |
h->SetTitle(title); |
h->SetTitle(title); |
745 |
h->SetXTitle("Longitude (deg)"); |
h->SetXTitle("Longitude (deg)"); |