Commit db3486d6 authored by Fernando Hueso González's avatar Fernando Hueso González
Browse files

fix start args

parent 10711eec
No related merge requests found
Showing with 5 additions and 5 deletions
+5 -5
......@@ -26,12 +26,12 @@ PulseSurfer* ps = NULL;//global variable pointer
* \param bytesPerSample 2 bytes (int16) are used per sample point. Other things are not supported
* \param subtractBaseline automatic baseline subtraction
* \param persist set 2D persistency accumulation
* \param xmin zoom min x value
* \param xmin zoom min x value, use == xmax to skip this setting
* \param xmax zoom max x value
* \param ymin zoom min y value
* \param ymin zoom min y value, use == ymax to autozoom instead
* \param ymax zoom max y value
*/
void test_gui(const TString fileName, const UInt_t samplesPerPulse=32768, const UInt_t preTrigger=0, const Short_t overflow=32767, const UShort_t bytesPerSample=2, const Bool_t subtractBaseline=kFALSE, const Bool_t persist=kFALSE, const Int_t xmin=0, const Int_t xmax=32767, const Int_t ymin=0, const Int_t ymax=16383)
void test_gui(const TString fileName, const UInt_t samplesPerPulse=32768, const UInt_t preTrigger=0, const Short_t overflow=32767, const UShort_t bytesPerSample=2, const Bool_t subtractBaseline=kFALSE, const Bool_t persist=kFALSE, const Int_t xmin=0, const Int_t xmax=0, const Int_t ymin=0, const Int_t ymax=0)
{
ps = new PulseSurfer();
ps->Open(fileName,samplesPerPulse,preTrigger,overflow,bytesPerSample);
......@@ -43,8 +43,8 @@ void test_gui(const TString fileName, const UInt_t samplesPerPulse=32768, const
if(!c) return;
TH1* h = (TH1*)gROOT->FindObject(kHistName);
if(!h) return;
h->GetXaxis()->SetRangeUser(xmin,xmax);
h->GetYaxis()->SetRangeUser(ymin,ymax);
if(xmin!= xmax) h->GetXaxis()->SetRangeUser(xmin,xmax);
if(ymin!= ymax) h->GetYaxis()->SetRangeUser(ymin,ymax);
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment