diff --git a/ctbGui/ctbAdcs.cpp b/ctbGui/ctbAdcs.cpp index 927b8de3a..9012e46b3 100755 --- a/ctbGui/ctbAdcs.cpp +++ b/ctbGui/ctbAdcs.cpp @@ -248,6 +248,15 @@ void ctbAdc::setEnabled(Bool_t b){ +void ctbAdc::setPlot(Bool_t b){ + // cout << id << "set enabled " << b << endl; + if (b) + sAdcPlot->SetOn(kTRUE,kTRUE); + else + sAdcPlot->SetOn(kFALSE,kTRUE); + + +} @@ -543,16 +552,20 @@ string ctbAdcs::getAdcParameters() { void ctbAdcs::CheckAll() { - for (int is=0; issetEnabled(kTRUE); + for (int is=0; issetPlot(kTRUE); + // sAdc[is]->setEnabled(kTRUE); + } } void ctbAdcs::RemoveAll() { - for (int is=0; issetEnabled(kFALSE); + for (int is=0; issetEnabled(kFALSE); + sAdc[is]->setPlot(kFALSE); + } } @@ -560,31 +573,39 @@ void ctbAdcs::RemoveAll() { void ctbAdcs::CheckHalf0() { - for (int is=0; issetEnabled(kTRUE); + for (int is=0; issetPlot(kTRUE); + // sAdc[is]->setEnabled(kTRUE) + } } void ctbAdcs::RemoveHalf0() { - for (int is=0; issetEnabled(kFALSE); + for (int is=0; issetEnabled(kFALSE); + sAdc[is]->setPlot(kFALSE); + } } void ctbAdcs::CheckHalf1() { - for (int is=NADCS/2; issetEnabled(kTRUE); + for (int is=NADCS/2; issetPlot(kTRUE); + // sAdc[is]->setEnabled(kTRUE) + } } void ctbAdcs::RemoveHalf1() { - for (int is=NADCS/2; issetEnabled(kFALSE); + for (int is=NADCS/2; issetEnabled(kFALSE); + sAdc[is]->setPlot(kFALSE); + } } diff --git a/ctbGui/ctbAdcs.h b/ctbGui/ctbAdcs.h index 7fe136188..912600ab9 100755 --- a/ctbGui/ctbAdcs.h +++ b/ctbGui/ctbAdcs.h @@ -75,6 +75,7 @@ class ctbAdc : public TGHorizontalFrame { Bool_t getEnable(); void setEnable(Bool_t); + void setPlot(Bool_t); Bool_t getInverted(); Bool_t getPlot(); void setInverted(Bool_t);