Changeset 5127 for trunk


Ignore:
Timestamp:
09/24/04 18:15:19 (20 years ago)
Author:
hbartko
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mtemp
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mtemp/Changelog

    r5119 r5127  
    1818
    1919                                                 -*-*- END OF LINE -*-*-
     20
     212004/09/24: Hendrik Bartko
     22   * mtemp/mmpi/macros/calibration_shape.C
     23     - fine tuning of the plots
     24   * mtemp/mmpi/macros/data_shape.C
     25     - added new macro to compute the signal shape for cosmics runs
     26   * mtemp/mmpi/macros/calculate_of_weights.C
     27     - added new macro to compute the weights for the optimal filter
     28
     29
    2030
    21312004/09/19: Hendrik Bartko
  • trunk/MagicSoft/Mars/mtemp/mmpi/macros/calibration_shape.C

    r5119 r5127  
    3030
    3131Int_t pedr = 36038;
    32 Int_t calr = 36040;
     32Int_t calr = 36042;
    3333//Int_t datar = 12517;
    3434
    3535
    3636
    37 void calibration_shape(const TString inpath = "/.magic/magicserv01/scratch/hbartko/rootdata/2004_09_06/", Int_t pedruns = pedr, Int_t calruns = calr, Int_t ipix=297)
     37void calibration_shape(const TString inpath = "/.magic/magicserv01/scratch/hbartko/rootdata/2004_09_06/", Int_t pedruns = pedr, Int_t calruns = calr, Int_t ipix=316)
    3838
    3939{
     
    112112  plist2.AddToList(&badcam);
    113113 
    114   gLog << endl;;
    115   gLog << "Calculate MCalibrationCam from Runs " << cruns.GetRunsAsString() << endl;
    116   gLog << endl;
    117  
     114   
    118115  MReadMarsFile read2("Events");
    119116  read2.DisableAutoScheme();
     
    149146  MExtractTimeHighestIntegral   timeext;
    150147  timeext.SetRange(0, 14, 0, 14);
     148  //timeext.SetWindowSize(10,10);
    151149  timeext.SetWindowSize(WindowSize,WindowSize);
    152150 
     
    195193  int count = 1;
    196194 
    197   TH2F * shape = new TH2F("shape","shape",30,0,30,1000,-20,250);
     195  TH2F * shape = new TH2F("shape","shape",300,0,30,1000,-20,250);
    198196  TH2F * shape_corr = new TH2F("shape_corr","shape_corr",300,0,30,1000,-20,250);
    199197  TH2F * shape_corr_all = new TH2F("shape_corr_all","shape_corr_all",300,0,30,1000,-20,250);
     
    225223    sigcam.GetPixelContent(sig, ipix, geomcam, 0);
    226224   
     225    Byte_t sat = (sigcam)[ipix].GetNumHiGainSaturated();
     226
     227
    227228    htime->Fill(time);
    228229    hsig->Fill(sig);
     
    243244    const Float_t ABoffs = pedcam[ipix].GetPedestalABoffset();
    244245   
     246   
    245247    Float_t PedMean[2];
    246248    PedMean[0] = ped_mean + ABoffs;
     
    254256      shape->Fill(sample+15.5,logains[sample]-PedMean[(sample+ABFlag)&0x1]);
    255257      shape_corr->Fill(sample+0.5+5.-time,higains[sample]-PedMean[(sample+ABFlag)&0x1]);
    256       shape_corr->Fill(sample+15.5+5.-time,logains[sample]-PedMean[(sample+ABFlag)&0x1]);
    257       shape_corr_all->Fill(sample+0.5+5.-time,(higains[sample]-PedMean[(sample+ABFlag)&0x1])/sig*250);
    258       shape_corr_all->Fill(sample+15.5+5.-time,(logains[sample]-PedMean[(sample+ABFlag)&0x1])/sig*250);
     258      shape_corr->Fill(sample+15.5+5.-time,logains[sample]-PedMean[(sample+nh+ABFlag)&0x1]);
     259      if (sat==0){
     260        shape_corr_all->Fill(sample+0.5+5.-time,(higains[sample]-PedMean[(sample+ABFlag)&0x1])/sig*250);
     261        shape_corr_all->Fill(sample+15.5+5.-time,(logains[sample]-PedMean[(sample+nh+ABFlag)&0x1])/sig*250);
     262      }
    259263    }
    260264       
     
    350354  htime->Draw();
    351355
     356
     357  TCanvas * c7 = new TCanvas("c7","c7",600,400);
     358  c7->cd();
     359  c7->SetGridx();
     360  c7->SetGridy();
     361  c7->SetFillColor(0);
     362  //  c7->SetBordermode(0);
     363   
     364  TProfile * shape_corr_all_pfx = (TProfile*)shape_corr_all->ProfileX();
     365 
     366  shape_corr_all_pfx->SetStats(0);
     367  TString title6 = "Average Calibration Signal Shape, Amplitude + Arrival Time Corrected, Pixel";
     368  title6+=ipix;
     369  shape_corr_all_pfx->SetTitle(title6);
     370  shape_corr_all_pfx->SetXTitle("FADC sample no. + (<t_{arrival}> - t_{arrival}) / T_{ADC}");
     371  shape_corr_all_pfx->SetYTitle("signal [a.u.]");
     372  shape_corr_all_pfx->SetMarkerStyle(20);
     373  shape_corr_all_pfx->SetMarkerColor(4);
     374  shape_corr_all_pfx->SetMarkerSize(0.5);
     375  shape_corr_all_pfx->Draw();
    352376}
    353377
Note: See TracChangeset for help on using the changeset viewer.