Changeset 6234 for trunk


Ignore:
Timestamp:
02/03/05 13:39:19 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mjobs
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mjobs/MJCalibTest.cc

    r6229 r6234  
    294294    {
    295295      TString dat = GetEnv("DataType", "");
     296      dat = dat.Strip(TString::kBoth);
    296297      if (dat.BeginsWith("raw", TString::kIgnoreCase))
    297298        {
  • trunk/MagicSoft/Mars/mjobs/MJCalibration.cc

    r6191 r6234  
    13841384const char* MJCalibration::GetOutputFileName() const
    13851385{
    1386     if (fSequence.IsValid())
    1387         return Form("calib%08d.root", fSequence.GetSequence());
    1388     if (!fRuns)
    1389         return "";
    1390 
    1391     return Form("%s-F1.root", (const char*)fRuns->GetRunsAsFileName());
     1386
     1387  if (fSequence.IsValid())
     1388    return Form("calib%08d.root", fSequence.GetSequence());
     1389  if (!fRuns)
     1390    return "";
     1391 
     1392  return Form("%s-F1.root", (const char*)fRuns->GetRunsAsFileName());
    13921393}
    13931394
     
    14221423    {
    14231424      TString dat = GetEnv("DataType", "");
     1425      dat = dat.Strip(TString::kBoth);
    14241426      if (dat.BeginsWith("raw", TString::kIgnoreCase))
    14251427        {
     
    18791881
    18801882    tlist.PrintStatistics();
    1881    
     1883
    18821884    /*
     1885
    18831886    MHCalibrationRelTimeCam *hcam = (MHCalibrationRelTimeCam*)plist.FindObject("MHCalibrationRelTimeCam");
    1884     MHCalibrationPix &pix1 = (*hcam)(100);
     1887    MHCalibrationPix &pix1 = (*hcam)[100];
    18851888    pix1.DrawClone("");
    18861889    gPad->SaveAs("test_time_100.ps");
    18871890
    18881891    MHCalibrationChargeCam *hccam = (MHCalibrationChargeCam*)plist.FindObject("MHCalibrationChargeCam");
    1889     MHCalibrationPix &pix11 = (*hccam)(100);
     1892    MHCalibrationPix &pix11 = (*hccam)[100];
    18901893    pix11.DrawClone("");
    18911894    gPad->SaveAs("test_charge_100.ps");
    18921895
    1893     MHCalibrationPix &pix2 = (MHCalibrationPix&)(*hcam)(400);
     1896    MHCalibrationPix &pix2 = (MHCalibrationPix&)(*hcam)[400];
    18941897    pix2.DrawClone("");   
    18951898    gPad->SaveAs("test_time_400.ps");
    18961899
    1897     MHCalibrationPix &pix22 = (*hccam)(400);
     1900    MHCalibrationPix &pix22 = (*hccam)[400];
    18981901    pix22.DrawClone("");
    18991902    gPad->SaveAs("test_charge_400.ps");
     
    19031906    *fLog << err << "Blackout 400: " << fRelTimeCam[400].GetNumBlackout() << endl;
    19041907    *fLog << err << "Picup    400: " << fRelTimeCam[400].GetNumPickup  () << endl;   
     1908
    19051909    */
    19061910
  • trunk/MagicSoft/Mars/mjobs/MJPedestal.cc

    r6191 r6234  
    9494//
    9595// Sets:
    96 // - fRuns to 0,
    9796// - fExtractor to NULL,
    9897// - fExtractType to kUsePedRun
     
    748747    {
    749748      TString dat = GetEnv("DataType", "");
     749      dat = dat.Strip(TString::kBoth);
    750750      if (dat.BeginsWith("raw", TString::kIgnoreCase))
    751751        {
     
    766766   
    767767    if (HasEnv("UseData"))
    768         fExtractType = GetEnv("UseData",kFALSE) ? kUseData : kUsePedRun;
     768      fExtractType = GetEnv("UseData",kFALSE) ? kUseData : kUsePedRun;
    769769
    770770    if (HasEnv("UseHists"))
    771         if (GetEnv("UseHists",kFALSE))
    772             fExtractType = kUseHists;
    773 
     771      if (GetEnv("UseHists",kFALSE))
     772        fExtractType = kUseHists;
     773   
    774774    SetNoStorage(GetEnv("DisableOutput", IsNoStorage()));
    775775
     
    889889    if (fSequence.IsValid())
    890890    {
    891         const Int_t n0 = IsUseData() ? fSequence.SetupDatRuns(iter, fPathData, "D", IsUseRawData()) : fSequence.SetupPedRuns(iter, fPathData, "P", IsUseRawData());
    892         const Int_t n1 = IsUseData() ? fSequence.GetNumDatRuns() : fSequence.GetNumPedRuns();
     891        const Int_t n0 = IsUseData()
     892          ? fSequence.SetupDatRuns(iter, fPathData, "D", IsUseRawData())
     893          : fSequence.SetupPedRuns(iter, fPathData, "P", IsUseRawData());
     894        const Int_t n1 = IsUseData()
     895          ? fSequence.GetNumDatRuns()
     896          : fSequence.GetNumPedRuns();
    893897        if (n0==0)
    894898        {
    895             *fLog << err << "ERROR - No " << type << " input files of sequence found in " << (fPathData.IsNull()?"<defaul>":fPathData.Data()) << endl;
     899            *fLog << err << "ERROR - No " << type << " input files of sequence found in " << (fPathData.IsNull()?"<default>":fPathData.Data()) << endl;
    896900            return kFALSE;
    897901        }
    898902        if (n0!=n1)
    899903        {
    900             *fLog << err << "ERROR - Number of " << type << " files found (" << n0 << ") in " << (fPathData.IsNull()?"<defaul>":fPathData.Data())  << " doesn't match number of files in sequence (" << n1 << ")" << endl;
     904            *fLog << err << "ERROR - Number of " << type << " files found (" << n0 << ") in " << (fPathData.IsNull()?"<default>":fPathData.Data())  << " doesn't match number of files in sequence (" << n1 << ")" << endl;
    901905            return kFALSE;
    902906        }
     
    913917        read.DisableAutoScheme();
    914918        if (fRuns || fSequence.IsValid())
    915             read.AddFiles(fSequence.IsValid() ? iter : *fRuns);
     919          read.AddFiles(fSequence.IsValid() ? iter : *fRuns);
    916920        tlist.AddToList(&read);
    917921    }
Note: See TracChangeset for help on using the changeset viewer.