Changeset 17967 for branches


Ignore:
Timestamp:
09/05/14 07:51:53 (10 years ago)
Author:
dneise
Message:
still on the way
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Mars_McMismatchStudy/fact/analysis/callisto_data_and_mc.C

    r17966 r17967  
    631631        bool use_delays=false)
    632632{
    633     // ======================================================
    634 
    635     // true:  Display correctly mapped pixels in the camera displays
    636     //        but the value-vs-index plot is in software/spiral indices
    637     // false: Display pixels in hardware/linear indices,
    638     //        but the order is the camera display is distorted
    639     bool usemap = true;
    640 
    641     //const char *map = usemap ? "/scratch/fact/FACTmap111030.txt" : NULL;
     633    // ------------------------------------------------------
     634    gLog.Separator("Callisto");
     635    gLog << all << "Calibrate data of sequence '" << seq.GetFileName() << "'" << endl;
     636    gLog << endl;
     637    // ------------------------------------------------------
     638   
    642639    const char *map = "fact/resources/FACTmap111030.txt";
     640    MStatusDisplay *d = new MStatusDisplay;
    643641
    644642    // ------------------------------------------------------
    645 
    646     MStatusDisplay *d = new MStatusDisplay;
    647643
    648644    MBadPixelsCam badpixels;
     
    654650    badpixels[1208].SetUnsuitable(MBadPixelsPix::kUnsuitable);
    655651    badpixels[1399].SetUnsuitable(MBadPixelsPix::kUnsuitable);
    656     //  Twin pixel
    657     //     113
    658     //     115
    659     //     354
    660     //     423
    661     //    1195
    662     //    1393
    663 
    664     // ------------------------------------------------------
     652    //  Twin pixel; 113+115, 354+423, 1195 + 1393
     653
    665654    // ------------------------------------------------------
    666655
     
    668657    // Data:  52 / 64 / 104 (20% TH)
    669658
    670     // Extraction range in slices. It will always(!) contain the full range
    671     // of integration
    672659    const int first_slice =  25; //  10ns
    673660    const int last_slice  = 225; // 125ns
     
    675662    Long_t max  =    5; // Number of events to be processed
    676663
    677     // ========================= Result ==================================
    678 
    679     //double scale = 0.1;
    680664    double scale = 0.1024;
    681665
     
    696680    }
    697681
    698     // --------------------------------------------------------------------------------
    699 
    700     gLog.Separator("Callisto");
    701     gLog << all << "Calibrate data of sequence '" << seq.GetFileName() << "'" << endl;
    702     gLog << endl;
    703 
    704     // ------------------------------------------------------
    705 
    706     ostringstream drsname;
    707     drsname << gSystem->DirName(seqfile) << "/";
    708     drsname << seq.GetNight().GetNightAsInt() << "_";
    709     drsname << Form("%03d", seq.GetDrsSequence()) << ".drs.seq";
    710 
    711     MSequence drs(drsname.str().c_str());
     682    ostringstream drs_seq_file_path;
     683    drs_seq_file_path << gSystem->DirName(seqfile) << "/";
     684    drs_seq_file_path << seq.GetNight().GetNightAsInt() << "_";
     685    drs_seq_file_path << Form("%03d", seq.GetDrsSequence()) << ".drs.seq";
     686
     687    MSequence drs(drs_seq_file_path.str().c_str());
    712688    if (!drs.IsValid())
    713689    {
     
    716692    }
    717693
    718     gLog << all << "DRS sequence file: " << drsname.str() << '\n' << endl;
     694    gLog << all << "DRS sequence file: " << drs_seq_file_path.str() << '\n' << endl;
    719695
    720696    TString drsfile = seq.GetFileName(0, MSequence::kRawDrs);
Note: See TracChangeset for help on using the changeset viewer.