Changeset 7023 for trunk


Ignore:
Timestamp:
05/12/05 19:25:58 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r7022 r7023  
    5757   * star.rc:
    5858     - added setup strings for software trigger
     59
     60   * mbase/MContinue.cc:
     61     - allow setup of already set filters in ReadEnv. They must not
     62       necessarily be already in the tasklist
     63
     64   * mcalib/MCalibrationChargeCalc.cc:
     65     - shortened a lot of Form() calls to reduce the risk of
     66       memory corruption
     67
     68   * mjobs/MJCalibration.cc:
     69     - some cosmetics to text in pad
     70
     71   * mraw/MRawRunHeader.[h,cc]:
     72     - a fix to MRawRunHeader because the definition of the
     73       raw-data format has changed. fProjectName and fSourceName
     74       has no trailig \0 anymore by default
     75     - incremented ClassVersion by 1
    5976
    6077
  • trunk/MagicSoft/Mars/mbase/MContinue.cc

    r6950 r7023  
    260260Int_t MContinue::ReadEnv(const TEnv &env, TString prefix, Bool_t print)
    261261{
    262     MFilter *f = 0;
     262    MFilter *f = MTask::GetFilter();
    263263    if (IsEnvDefined(env, prefix, "Condition", print))
    264264    {
     
    276276    if (!f)
    277277        f = new MF;
     278
    278279    f->SetName(fName);
    279280
     
    281282    if (rc!=kTRUE)
    282283    {
    283         delete f;
     284        if (f!=MTask::GetFilter())
     285            delete f;
    284286        return rc;
    285287    }
    286288
    287     if (TestBit(kIsOwner))
    288         delete GetFilter();
    289 
    290     SetBit(kIsOwner);
     289    if (f != MTask::GetFilter())
     290    {
     291        if (TestBit(kIsOwner))
     292            delete GetFilter();
     293        SetBit(kIsOwner);
     294    }
    291295    MTask::SetFilter(f);
    292296
  • trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.cc

    r7017 r7023  
    984984  if (cal.GetSigma() < cal.GetPedRms())
    985985    {
    986       *fLog << warn
    987             << Form("Sigma of Fitted Charge: %6.2f <",cal.GetSigma())
    988             << Form(" Ped. RMS=%5.2f in %s%3i",cal.GetPedRms(),what,cal.GetPixId()) << endl;
     986      *fLog << warn << "Sigma of Fitted Charge: "
     987            << Form("%6.2f <",cal.GetSigma()) << " Ped. RMS="
     988            << Form("%5.2f", cal.GetPedRms()) << " in " << what
     989            << Form("%3i",cal.GetPixId()) << endl;
    989990      bad.SetUncalibrated( MBadPixelsPix::kChargeSigmaNotValid );
    990991      return kFALSE;
     
    993994  if (!cal.CalcReducedSigma())
    994995    {
    995       *fLog << warn
    996             << Form("Could not calculate the reduced sigma in %s:               ",what)
    997             << Form("         %4i",cal.GetPixId())
     996      *fLog << warn << "Could not calculate the reduced sigma in " << what
     997            << ":                        " << Form("%4i",cal.GetPixId())
    998998            << endl;
    999999      bad.SetUncalibrated( MBadPixelsPix::kChargeSigmaNotValid );
     
    10031003  if (!cal.CalcFFactor())
    10041004    {
    1005       *fLog << warn
    1006             << Form("Could not calculate the F-Factor in %s:                    ",what)
    1007             << Form("         %4i",cal.GetPixId())
     1005      *fLog << warn << "Could not calculate the F-Factor in " << what
     1006            << ":                             " << Form("%4i",cal.GetPixId())
    10081007            << endl;
    10091008      bad.SetUncalibrated(MBadPixelsPix::kDeviatingNumPhes);
     
    10211020  if (!cal.CalcConvFFactor())
    10221021    {
    1023       *fLog << warn
    1024             << Form("Could not calculate the Conv. FADC counts to Phes in %s:  ",what)
    1025             << Form("         %4i",cal.GetPixId())
     1022      *fLog << warn << "Could not calculate the Conv. FADC counts to Phes in "
     1023            << what << ":           " << Form("%4i",cal.GetPixId())
    10261024            << endl;
    10271025      bad.SetUncalibrated(MBadPixelsPix::kDeviatingNumPhes);
  • trunk/MagicSoft/Mars/mjobs/MJCalibration.cc

    r7013 r7023  
    863863      t1->SetTextColor(gStyle->GetColorPalette(Int_t(1./max*numcol + 1.)));
    864864      t1->SetTextAlign(12);
    865       TText *t2 = pave->AddText(Form("%s%3i%s","Signal Rel. error too large:                          ",
     865      TText *t2 = pave->AddText(Form("%s%3i%s","Signal Rel. error too large:                            ",
    866866                                       CountBadPixels(&disp24,2)," pixels"));
    867867      t2->SetTextColor(gStyle->GetColorPalette(Int_t(2./max*numcol + 1.)));
    868868      t2->SetTextAlign(12);
    869       TText *t4 = pave->AddText(Form("Low Gain Saturation:                                   %3i pixels",
     869      TText *t4 = pave->AddText(Form("Low Gain Saturation:                                     %3i pixels",
    870870                                       CountBadPixels(&disp24,3)));
    871871      t4->SetTextColor(gStyle->GetColorPalette(Int_t(3./max*numcol + 1.)));
    872872      t4->SetTextAlign(12);
    873       TText *t5 = pave->AddText(Form("Mean Arr. Time In First Extraction Bin:      %3i pixels",
     873      TText *t5 = pave->AddText(Form("Mean Arr. Time In First Extraction Bin:        %3i pixels",
    874874                                       CountBadPixels(&disp24,4)));
    875875      t5->SetTextColor(gStyle->GetColorPalette(Int_t(4./max*numcol + 1.)));
    876876      t5->SetTextAlign(12);
    877       TText *t6 = pave->AddText(Form("Mean Arr. Time In Last 2 Extraction Bins: %3i pixels",
     877      TText *t6 = pave->AddText(Form("Mean Arr. Time In Last 2 Extraction Bins:   %3i pixels",
    878878                                       CountBadPixels(&disp24,5)));
    879879      t6->SetTextColor(gStyle->GetColorPalette(Int_t(5./max*numcol + 1.)));
    880880      t6->SetTextAlign(12);
    881       TText *t9 = pave->AddText(Form("Deviating Number of Photons:                    %3i pixels",
     881      TText *t9 = pave->AddText(Form("Deviating Number of Photons:                      %3i pixels",
    882882                                       CountBadPixels(&disp24,6)));
    883883      t9->SetTextColor(gStyle->GetColorPalette(Int_t(6./max*numcol + 1.)));
    884884      t9->SetTextAlign(12);
    885       TText *t10= pave->AddText(Form("High-Gain Histogram Overflow:                  %3i pixels",
     885      TText *t10= pave->AddText(Form("High-Gain Histogram Overflow:                    %3i pixels",
    886886                                       CountBadPixels(&disp24,7 )));
    887887      t10->SetTextColor(gStyle->GetColorPalette(Int_t(7./max*numcol + 1.)));
    888888      t10->SetTextAlign(12);
    889       TText *t11= pave->AddText(Form("Low-Gain Histogram Overflow:                   %3i pixels",
     889      TText *t11= pave->AddText(Form("Low-Gain Histogram Overflow:                     %3i pixels",
    890890                                       CountBadPixels(&disp24,8 )));
    891891      t11->SetTextColor(gStyle->GetColorPalette(Int_t(8./max*numcol + 1.)));
    892892      t11->SetTextAlign(12);
    893       TText *t12= pave->AddText(Form("Presumably dead from Ped. Rms:              %3i pixels",
     893      TText *t12= pave->AddText(Form("Presumably dead from Ped. Rms:                %3i pixels",
    894894                                       CountBadPixels(&disp24,9 )));
    895895      t12->SetTextColor(gStyle->GetColorPalette(Int_t(9./max*numcol + 1.)));
    896896      t12->SetTextAlign(12);
    897       TText *t13= pave->AddText(Form("Fluctuating Pulse Arrival Times:                 %3i pixels",
     897      TText *t13= pave->AddText(Form("Fluctuating Pulse Arrival Times:                   %3i pixels",
    898898                                       CountBadPixels(&disp24,10)));
    899899      t13->SetTextColor(gStyle->GetColorPalette(Int_t(10./max*numcol + 1.)));
    900900      t13->SetTextAlign(12);
    901       TText *t14= pave->AddText(Form("Previously Excluded:                                   %3i pixels",
     901      TText *t14= pave->AddText(Form("Previously Excluded:                                     %3i pixels",
    902902                                       CountBadPixels(&disp24,11)));
    903903      t14->SetTextColor(gStyle->GetColorPalette(Int_t(11./max*numcol + 1.)));
  • trunk/MagicSoft/Mars/mraw/MRawRunHeader.cc

    r5782 r7023  
    5656//  ===========================
    5757//
     58//  Class Version 3:
     59//  ----------------
     60//   - enhanced SourceName and ProjectName by one character, because
     61//     without telling us the guranteed trailing \0-character has
     62//     skipped
     63//
    5864//  Class Version 2:
    5965//  ----------------
     
    101107    fRunType=kRTNone;  // use 0xffff for invalidation, 0 means: Data run
    102108    fRunNumber=0;
    103     fProjectName[0]=0;
    104     fSourceName[0]=0;
     109    memset(fProjectName, 0, 23);
     110    memset(fSourceName, 0, 13);
    105111    fSourceEpochChar[0]=0;
    106112    fSourceEpochDate=0;
  • trunk/MagicSoft/Mars/mraw/MRawRunHeader.h

    r4738 r7023  
    4343    UShort_t  fRunType;
    4444    UInt_t    fRunNumber;
    45     Char_t    fProjectName[22];
    46     Char_t    fSourceName[12];
     45    Char_t    fProjectName[23];
     46    Char_t    fSourceName[13];
    4747    Char_t    fSourceEpochChar[2];
    4848    UShort_t  fSourceEpochDate;
     
    116116    Bool_t ReadEvt(istream& fin);
    117117
    118     ClassDef(MRawRunHeader, 2)  // storage container for general info
     118    ClassDef(MRawRunHeader, 3)  // storage container for general info
    119119};
    120120#endif
Note: See TracChangeset for help on using the changeset viewer.