{
cdsmatrixCorrPed[i]=(float)(1.*fCdsmatrix[i]-fPedestals[i]);
}
+ cout<<"CDS matrix minus pedestals:"<<endl;
debugStream<>(cdsmatrixCorrPed, fPixels, fColumns, 0, 10);
// cout<<fCdsmatrix[0]<<","<<fCdsmatrix[1]<<","<<fCdsmatrix[2]<<","<<fCdsmatrix[3]<<","<<fCdsmatrix[4]<<","<<fCdsmatrix[5]<<","<<fCdsmatrix[6]<<endl;
cout<<"Hitted pixel discriminator matrix:"<<endl;
return 0;
}
+Bool_t Run::useCommonModeFilter(Bool_t var)
+{
+ cout<<" Common mode filter : " << colorwhite << (var?"1":"0") << colorreset << " <-- only used if RAW files are analyzed, force analysis to make sure" << endl;
+ commonModeFilter = var;
+ return 0;
+}
+
Bool_t Run::setResultsPath(TString path)
{
cout << "Changing save directory to '" << path << "'" << endl;
{
// cout << "getframe " << i << endl;
processed->getFrame(i);
- // processed->filterCommonMode();
+ if (commonModeFilter)
+ processed->filterCommonMode();
// cout << "hitana " << i << endl;
processed->hitana();
// cout << "regetDynNoise " << endl;
{
processed->InitialDynNoise(100);
processed->getFrame(frame);
- // processed->filterCommonMode();
+ if (commonModeFilter)
+ processed->filterCommonMode();
processed->hitana();
processed->plotFrame(frame);
delete processed;
void initRootParameters();
+ /** @brief set this variable to true, to use the dynamical noise calculation in MAPS:analyzeRun() */
Bool_t dynamicalNoise = 1;
+ /** @brief set this variable to true, to use the common mode noise filter in MAPS:analyzeRun() */
+ Bool_t commonModeFilter = 1;
const TString colorwhite = "\033[1;29m";
const TString colorred = "\033[1;31m";
/** @brief Turn on or off the use of dynamical noise adjustment @c MAPS::regetDynNoise() */
Bool_t useDynamicalNoise(Bool_t);
+
+ /** @brief Turn on or off the use of common mode noise filter @c MAPS::regetDynNoise() */
+ Bool_t useCommonModeFilter(Bool_t);
/**
* @brief set pathwhere images and data to save to