Changeset 17967
- Timestamp:
- 09/05/14 07:51:53 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Mars_McMismatchStudy/fact/analysis/callisto_data_and_mc.C
r17966 r17967 631 631 bool use_delays=false) 632 632 { 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 642 639 const char *map = "fact/resources/FACTmap111030.txt"; 640 MStatusDisplay *d = new MStatusDisplay; 643 641 644 642 // ------------------------------------------------------ 645 646 MStatusDisplay *d = new MStatusDisplay;647 643 648 644 MBadPixelsCam badpixels; … … 654 650 badpixels[1208].SetUnsuitable(MBadPixelsPix::kUnsuitable); 655 651 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 665 654 // ------------------------------------------------------ 666 655 … … 668 657 // Data: 52 / 64 / 104 (20% TH) 669 658 670 // Extraction range in slices. It will always(!) contain the full range671 // of integration672 659 const int first_slice = 25; // 10ns 673 660 const int last_slice = 225; // 125ns … … 675 662 Long_t max = 5; // Number of events to be processed 676 663 677 // ========================= Result ==================================678 679 //double scale = 0.1;680 664 double scale = 0.1024; 681 665 … … 696 680 } 697 681 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()); 712 688 if (!drs.IsValid()) 713 689 { … … 716 692 } 717 693 718 gLog << all << "DRS sequence file: " << drs name.str() << '\n' << endl;694 gLog << all << "DRS sequence file: " << drs_seq_file_path.str() << '\n' << endl; 719 695 720 696 TString drsfile = seq.GetFileName(0, MSequence::kRawDrs);
Note:
See TracChangeset
for help on using the changeset viewer.