Ignore:
Timestamp:
07/24/11 11:04:43 (13 years ago)
Author:
tbretz
Message:
added fIsSigned; adapted GetSample; added GetMin; changed code in GetMax
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mraw/MRawEvtData.cc

    r11489 r11555  
    5050//   ------------------
    5151//    + MArrayS *fStartCell
     52//    + Bool_t   fIsSigned
    5253//
    5354//   Version 7
     
    113114//
    114115MRawEvtData::MRawEvtData(const char *name, const char *title)
    115     : fRunHeader(0), fNumBytesPerSample(1)
     116    : fRunHeader(0), fNumBytesPerSample(1), fIsSigned(false)
    116117{
    117118    fName  = name  ? name  : "MRawEvtData";
     
    288289    name += pix.GetPixelId();
    289290
     291    fIsSigned = kTRUE;
    290292
    291293    Bool_t same = str.Contains("same");
     294
     295    cout << "MIN/MAX=" << fNumBytesPerSample << " " << GetMin() << " " << GetMax() << endl;
    292296
    293297    if (str.BeginsWith("graph"))
     
    304308
    305309        graphhi->SetMaximum(GetMax()+0.5);
    306         graphhi->SetMinimum(0);
     310        graphhi->SetMinimum(GetMin());
    307311
    308312        graphhi->SetBit(kCanDelete);
     
    310314
    311315        TH1F *histhi = graphhi->GetHistogram();
    312         histhi->SetMinimum(0);
     316        histhi->SetMinimum(GetMin());
    313317        histhi->SetMaximum(GetMax()+0.5);
    314318 
     
    325329
    326330        TH1F *histh = new TH1F(name, "FADC Samples", nh+nl, -0.5, nh+nl-.5);
    327         histh->SetMinimum(0);
     331        histh->SetMinimum(GetMin());
    328332        histh->SetMaximum(GetMax()+0.5);
    329333        histh->SetXTitle("Time [FADC Slices]");
Note: See TracChangeset for help on using the changeset viewer.