Changeset 4562


Ignore:
Timestamp:
08/10/04 15:35:56 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r4559 r4562  
    4343
    4444
    45 
    4645 2004/08/09: Markus Gaug
    4746
     
    5453     - added name and title to the class (was forgotten)
    5554
    56 
     55   * mjobs/MJPedestal.[h,cc]
     56     - set the possibility to have the datacheck display with the
     57       function SetDataCheckDisplay()
    5758
    5859  2004/08/09: Wolfgang Wittek
  • trunk/MagicSoft/Mars/mjobs/MJPedestal.cc

    r4368 r4562  
    8686//
    8787MJPedestal::MJPedestal(const char *name, const char *title)
    88     : fEnv(0), fRuns(0), fExtractor(NULL), fDataCheck(kFALSE)
     88    : fEnv(0), fRuns(0), fExtractor(NULL), fDisplayType(kNormalDisplay),
     89      fDataCheck(kFALSE)
    8990{
    9091    fName  = name  ? name  : "MJPedestal";
     
    178179    disp1.SetYTitle("\\sigma_{P} [fadc/slice]");
    179180
    180 
    181181    //
    182182    // Display data
     
    185185    c3.Divide(2,3);
    186186
    187     if (!fDataCheck)
     187    if (fDisplayType != kDataCheckDisplay)
    188188    {
    189189        disp0.CamDraw(c3, 1, 2, 1);
  • trunk/MagicSoft/Mars/mjobs/MJPedestal.h

    r4368 r4562  
    4343    MBadPixelsCam fBadPixels;
    4444
     45    enum  Display_t { kDataCheckDisplay, kNormalDisplay }; // Possible Display types
     46
     47    Display_t fDisplayType;     // Chosen Display type   
     48   
    4549    Bool_t fDataCheck;          // Flag if the data check is run on raw data
    4650
     
    7175    void SetEnv(const char *env);
    7276
    73     void SetDataCheck(const Bool_t b=kTRUE) { fDataCheck = b; }
     77    void SetDataCheck(const Bool_t b=kTRUE) { fDataCheck = b; SetDataCheckDisplay(); }
     78
     79    void SetDataCheckDisplay() { fDisplayType = kDataCheckDisplay; }
     80    void SetNormalDisplay()    { fDisplayType = kNormalDisplay;    }
    7481
    7582    ClassDef(MJPedestal, 0) // Tool to create a pedestal file (MPedestalCam)
Note: See TracChangeset for help on using the changeset viewer.