// runs[runi]->analyzeFrame(8319);
// creates or opens .root file, can analyze the RAW data
- runs[runi]->error=runs[runi]->analyzeRun(true); // creates or opens .root file, can analyze the RAW data
+ runs[runi]->error=runs[runi]->analyzeRun(false); // creates or opens .root file, can analyze the RAW data
if (!runs[runi]->error)
{
// gROOT->SetBatch(kTRUE);
bool MAPS::checkDataFile( UInt_t FileNr, UInt_t &Frames ) {
TString FILENAME = fInDir+Form("/RUN_%i_%i.rz",fRunNumber,FileNr);
- cout << FILENAME<< endl;
+// cout << FILENAME<< endl;
ifstream inn(FILENAME, ios::binary);
// Int_t Pixels=0;
if( !inn.good() )
// Begin loop over all negative CDS pixel
// Determine clusters around them
- for(Int_t rechargingpixeli=0; rechargingpixeli<rechargePixellist.size(); rechargingpixeli++)
+ for(UInt_t rechargingpixeli=0; rechargingpixeli<rechargePixellist.size(); rechargingpixeli++)
{
seedrow = (rechargePixellist[rechargingpixeli])/fColumns; // row of seed
seedcolumn = (rechargePixellist[rechargingpixeli])%fColumns; // column of seed
if (!runAllreadyAnalyzed() || force)
{
if (processed->initNewRootFile()) return 1;
+ frames_found = processed->GetNumberFrames();
/// progress meter, temporal variable
ULong_t progress_tmp=-1;
/// progress meter
}
void Run::updateDatabase() {
+
+
string sqlupdatequery = "";
constructUpdateString(&sqlupdatequery, "Gain", gain);
constructUpdateString(&sqlupdatequery, "SumPeak", histogram.posSum, 4);
constructUpdateString(&sqlupdatequery, "Avg.Noise-", histogramCalibrated.avgNoiseMinus, 2);
constructUpdateString(&sqlupdatequery, "CCE_1", CCE_in_Perc_1);
constructUpdateString(&sqlupdatequery, "CCE_25", CCE_in_Perc_25);
+ constructUpdateString(&sqlupdatequery, "Frames_found", frames_found,100000000);
if (sqlupdatequery.length()>0)
{
/// see #devided_lower_matr_min
const Float_t devided_upper_matr_max = 16.0;
+ /// number of frames found in given folder
+ ULong_t frames_found = 0;
+
/**
* @brief Generates a human readable string with information about the run
*
};
systemparam systemparamUSB {
2800, // maxbin;
- 2800/16,// nbins;
+ 2800/8,// nbins;
25, //vetothreshold
10,
100