Changeset 2331 for trunk


Ignore:
Timestamp:
09/12/03 15:43:56 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r2330 r2331  
    66     - fixed the NaN-problem in the calculation of Alpha. More
    77       information can be found in the comments there.
     8
     9   * mhist/MHFadcCam.cc:
     10     - skip MC events which have no FADC information stored
     11     - better output in case of changes in the number of slices
     12     
     13   * mhist/MHFadcPix.cc:
     14     - fixed the missing y-axis (UseCurrentStyle())
     15
     16   * mmain/MDataCheck.cc
     17     - added 'Time Spectra of Cosmics' button
     18     
    819
    920
  • trunk/MagicSoft/Mars/mhist/MHFadcCam.cc

    r2173 r2331  
    102102    if (fType==MHFadcPix::kSlices)
    103103    {
     104        const Int_t nhi = par->GetNumHiGainSamples();
     105
     106        //
     107        // skip MC events without FADC information stored
     108        //
     109        if (nhi==0)
     110            return kTRUE;
     111
    104112        const Int_t nlo = par->GetNumLoGainSamples();
    105         const Int_t nhi = par->GetNumHiGainSamples();
    106113
    107114        //
     
    112119                (*this)[i].Init(nhi, nlo);
    113120        else
    114             if (fNumHiGains!=nhi || fNumLoGains!=nlo)
     121        {
     122            if (fNumLoGains!=nlo)
    115123            {
    116                 *fLog << err << dbginf << "ERROR - Number of lo- or hi-gain samples changed." << endl;
     124                *fLog << err << dbginf << "ERROR - Number of lo-gain samples changed from " << fNumLoGains << " to " << nlo << endl;
    117125                return kFALSE;
    118126            }
     127            if (fNumHiGains!=nhi)
     128            {
     129                *fLog << err << dbginf << "ERROR - Number of hi-gain samples changed from " << fNumHiGains << " to " << nhi << endl;
     130                return kFALSE;
     131            }
     132        }
    119133
    120134        fNumHiGains = nhi;
  • trunk/MagicSoft/Mars/mhist/MHFadcPix.cc

    r1652 r2331  
    5454    fHistHi.SetTitle(pixid ? Form("Hi Gain Pixel #%d", pixid) : "Hi Gain Samples");
    5555    fHistHi.SetDirectory(NULL);
     56    fHistHi.UseCurrentStyle();
    5657
    5758    fHistLo.SetName(pixid ? Form("LoGain%03d", pixid) : "LoGain");
    5859    fHistLo.SetTitle(pixid ? Form("Lo Gain Pixel #%d", pixid) : "Lo Gain Samples");
    5960    fHistLo.SetDirectory(NULL);
     61    fHistLo.UseCurrentStyle();
    6062
    6163    if (fType==kValue)
  • trunk/MagicSoft/Mars/mmain/MDataCheck.cc

    r1916 r2331  
    5959{
    6060    //TGTextButton *pedadc = new TGTextButton(fTop1, "ADC Spectra of Pedestals", kButPedAdc);
    61     TGTextButton *cradc  = new TGTextButton(fTop1, "ADC Spectra of Cosmics",    kButEvtAdc);
    62     //TGTextButton *pedtdc = new TGTextButton(fTop3, "Run Spectra of Pedestals", kButPedTdc);
     61    TGTextButton *cradc  = new TGTextButton(fTop1, "ADC Spectra of Cosmics", kButEvtAdc);
     62    TGTextButton *evttdc = new TGTextButton(fTop1, "Time Spectra of Cosmics", kButEvtTdc);
    6363    //TGTextButton *crtdc  = new TGTextButton(fTop3, "Run Spectra of Cosmics",    kButEvtTdc);
    6464
    6565    //pedadc->Associate(this);
    6666    cradc ->Associate(this);
    67     //pedtdc->Associate(this);
     67    evttdc->Associate(this);
    6868    //crtdc ->Associate(this);
    6969
    7070    //fList->Add(pedadc);
    7171    fList->Add(cradc);
    72     //fList->Add(pedtdc);
     72    fList->Add(evttdc);
    7373    //fList->Add(crtdc);
    7474
     
    7878    //fTop1->AddFrame(pedadc, laybut);
    7979    fTop1->AddFrame(cradc,  laybut);
    80 
     80    fTop1->AddFrame(evttdc,  laybut);
    8181    //fTop3->AddFrame(pedtdc, laybut);
    8282    //fTop3->AddFrame(crtdc,  laybut);
Note: See TracChangeset for help on using the changeset viewer.