Changeset 5560 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
12/06/04 12:55:12 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r5559 r5560  
    2626    - fixed bug which I introdued on friday (PostProcess was
    2727      defined twice)
     28
     29   * macros/RanForest.C:
     30     - replaced kGAMMA by MMcEvt::kGAMMA
     31
     32   * mhist/MHCamEvent.[h,cc]:
     33     - allow to set name for MGeomCam
     34
     35   * mjobs/MJCalibration.cc:
     36     - removed some obsolete comments
     37     - reset SetNoiseCalculation for both extractors
     38     - do not allow 'wrong' time&charge calibration (without
     39       extractors cam)
     40
    2841
    2942
  • trunk/MagicSoft/Mars/macros/RanForest.C

    r1871 r5560  
    3838    tlist.AddToList(&read);
    3939
    40     MFParticleId fgamma("MMcEvt", '=', kGAMMA);
     40    MFParticleId fgamma("MMcEvt", '=', MMcEvt::kGAMMA);
    4141    tlist.AddToList(&fgamma);
    4242
    43     MFParticleId fhadrons("MMcEvt", '!', kGAMMA);
     43    MFParticleId fhadrons("MMcEvt", '!', MMcEvt::kGAMMA);
    4444    tlist.AddToList(&fhadrons);
    4545
  • trunk/MagicSoft/Mars/mhist/MHCamEvent.cc

    r5158 r5560  
    8989    fName  = name  ? name  : gsDefName.Data();
    9090    fTitle = title ? title : gsDefTitle.Data();
     91
     92    fNameGeom = "MGeomCam";
    9193}
    9294
     
    150152    }
    151153
    152     MGeomCam *cam = (MGeomCam*)plist->FindObject("MGeomCam");
     154    MGeomCam *cam = (MGeomCam*)plist->FindObject(fNameGeom, "MGeomCam");
    153155    if (!cam)
    154156    {
    155         *fLog << err << GetDescriptor() << ": No MGeomCam found." << endl;
     157        *fLog << err << fNameGeom << " [MGeomCam] not found... abort." << endl;
    156158        return kFALSE;
    157159    }
    158160
    159     // Delete a posible old histogram from a previous loop
     161    // Delete a possible old histogram from a previous loop
    160162    if (fSum)
    161163        delete (fSum);
  • trunk/MagicSoft/Mars/mhist/MHCamEvent.h

    r5156 r5560  
    1818    MCamEvent *fEvt;       //! the current event
    1919
    20     TString fNameEvt;      // Nameof MCamEvent to fill into histogram
     20    TString fNameEvt;      // Name of MCamEvent to fill into histogram
     21    TString fNameGeom;     // Name of geometry container
    2122
    2223    Int_t fType;           // Type to used for calling GetPixelContent
     
    3738    ~MHCamEvent();
    3839
    39     void SetNameEvt(const TString name) { fNameEvt = name; }
     40    void SetNameEvt(const TString name)  { fNameEvt = name; }
     41    void SetNameGeom(const TString name) { fNameGeom = name; }
    4042    void SetType(Int_t type) { fType = type; }
    4143
  • trunk/MagicSoft/Mars/mjobs/MJCalibration.cc

    r5557 r5560  
    16581658    fillcam.SetBit(MFillH::kDoNotDisplay);
    16591659    filltme.SetBit(MFillH::kDoNotDisplay);
    1660 /*
    1661 
    1662      fillpin.SetNameTab("PINDiode");
    1663      fillbnd.SetNameTab("BlindPix");
    1664      fillcam.SetNameTab("Charge");
    1665      filltme.SetNameTab("RelTimes");
    1666 
    1667      TString drawoption;
    1668 
    1669     if (fDisplayType == kDataCheckDisplay)
    1670         drawoption += "datacheck";
    1671     if (fDisplayType == kFullDisplay)
    1672         drawoption += "all";
    1673 
    1674     fillcam.SetDrawOption(drawoption.Data());
    1675     fillbnd.SetDrawOption(drawoption.Data());
    1676     fillpin.SetDrawOption(drawoption.Data());
    1677     filltme.SetDrawOption(drawoption.Data());
    1678   */
     1660
    16791661    //
    16801662    // Set default extractors in case, none has been set...
     
    16951677        else
    16961678        {
    1697             *fLog << warn;
     1679            *fLog << err << GetDescriptor() << "ERROR - ";
    16981680            *fLog << "Used Extractor derives from MExtractTimeAndCharge, " << endl;
    16991681            *fLog << "but MExtractorCam size " << fExtractorCam.GetSize() << " ";
    17001682            *fLog << "mismatch pedcam size " << pedcam.GetSize() << "! " << endl;
     1683            return kFALSE;
    17011684        }
    17021685    }
    17031686
     1687    //
     1688    // Switch off noise calculation
     1689    //
     1690    fExtractor->SetNoiseCalculation(kFALSE);
     1691    fTimeExtractor->SetNoiseCalculation(kFALSE);
     1692
     1693    //
     1694    // Setup more tasks and tasklist
     1695    //
    17041696    MTaskEnv taskenv("ExtractSignal");
    17051697    taskenv.SetDefault(fExtractor);
Note: See TracChangeset for help on using the changeset viewer.