Ignore:
Timestamp:
09/10/04 21:21:27 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mhcalib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhcalib/MHCalibrationChargeCam.cc

    r4938 r4942  
    327327        pix.SetLast (fgChargeHiGainLast);
    328328
    329         pix.GetHGausHist()->SetName ("HChargeHiGainPix");
    330         pix.GetHGausHist()->SetTitle("Signals High Gain Pixel "); 
    331        
     329        TH1F *h =  pix.GetHGausHist();
     330
     331        h->SetName ("HChargeHiGainPix");
     332        h->SetTitle("Signals High Gain Pixel "); 
     333        h->SetXTitle("Signal [FADC counts]");
     334        h->SetYTitle("Nr. of events");
     335
    332336        pix.GetHAbsTime()->SetName ("HAbsTimeHiGainPix");
    333337        pix.GetHAbsTime()->SetTitle("Absolute Arrival Times High Gain Pixel "); 
     
    354358          pix.SetLast (fgChargeLoGainLast);
    355359         
    356           pix.GetHGausHist()->SetName ("HChargeLoGainPix");
    357           pix.GetHGausHist()->SetTitle("Signals Low Gain Pixel "); 
     360          TH1F *h =  pix.GetHGausHist();
     361         
     362          h->SetName ("HChargeLoGainPix");
     363          h->SetTitle("Signals Low Gain Pixel "); 
     364          h->SetXTitle("Signal [FADC counts]");
     365          h->SetYTitle("Nr. of events");
    358366       
    359367          pix.GetHAbsTime()->SetName ("HAbsTimeLoGainPix");
     
    387395
    388396        MHCalibrationChargePix &pix = (MHCalibrationChargePix&)GetAverageHiGainArea(j);
    389 
     397       
    390398        pix.SetAbsTimeNbins(higainsamples);
    391399        pix.SetAbsTimeFirst(-0.5);
     
    395403        pix.SetFirst(fgChargeHiGainFirst);
    396404        pix.SetLast (fgChargeHiGainLast);
    397 
    398         pix.GetHGausHist()->SetName ("HChargeHiGainAreaIdx");
    399         pix.GetHGausHist()->SetTitle("Signals averaged on event-by-event basis High Gain Area Idx ");
     405       
     406        TH1F *h =  pix.GetHGausHist();
     407       
     408        h->SetName ("HChargeHiGainAreaIdx");
     409        h->SetXTitle("Signal [FADC counts]");
     410        h->SetYTitle("Nr. of events");
    400411       
    401412        pix.GetHAbsTime()->SetName ("HAbsTimeHiGainAreaIdx");
    402413        pix.GetHAbsTime()->SetTitle("Absolute Arrival Times average Hi Gain Area Idx "); 
    403 
     414       
    404415        if (fGeom->InheritsFrom("MGeomCamMagic"))
    405416          {
    406             pix.GetHGausHist()->SetTitle(Form("%s%s%s","Signals averaged on event-by-event basis ",
    407                                                j==0 ? "Inner Pixels " : "Outer Pixels ","High Gain Runs: "));
     417            h->SetTitle(Form("%s%s%s","Signals averaged on event-by-event basis ",
     418                             j==0 ? "Inner Pixels " : "Outer Pixels ","High Gain Runs: "));
    408419            pix.InitBins();
    409420            pix.SetEventFrequency(fPulserFrequency);
     
    411422        else
    412423          {
     424            h->SetTitle("Signals averaged on event-by-event basis High Gain Area Idx ");
    413425            InitHists(pix,fIntensCam ? fIntensCam->GetAverageBadArea(j) : fCam->GetAverageBadArea(j),j);
    414426          }
    415427      }
    416428  }
    417 
    418 
     429 
     430 
    419431  if (fAverageLoGainAreas->GetEntries()==0 && IsLoGain())
    420432    {
     
    436448        pix.SetLast(fgChargeLoGainLast);
    437449
    438         pix.GetHGausHist()->SetName ("HChargeLoGainAreaIdx");
    439         pix.GetHGausHist()->SetTitle("Signals averaged on event-by-event basis Low Gain Area Idx ");
     450        TH1F *h =  pix.GetHGausHist();
     451       
     452        h->SetName ("HChargeLoGainAreaIdx");
     453        h->SetXTitle("Signal [FADC counts]");
     454        h->SetYTitle("Nr. of events");
    440455       
    441456        pix.GetHAbsTime()->SetName ("HAbsTimeLoGainAreaIdx");
    442457        pix.GetHAbsTime()->SetTitle("Absolute Arrival Times average Low Gain Area Idx "); 
    443 
    444458        //
    445459        // Adapt the range for the case, the intense blue is used:
     
    459473        if (fGeom->InheritsFrom("MGeomCamMagic"))
    460474          {
    461             pix.GetHGausHist()->SetTitle(Form("%s%s%s","Signals averaged on event-by-event basis ",
    462                                                j==0 ? "Inner Pixels " : "Outer Pixels ","Low Gain Runs: "));
     475            h->SetTitle(Form("%s%s%s","Signals averaged on event-by-event basis ",
     476                             j==0 ? "Inner Pixels " : "Outer Pixels ","Low Gain Runs: "));
    463477            pix.InitBins();
    464478            pix.SetEventFrequency(fPulserFrequency);
     
    466480        else
    467481          {
     482            h->SetTitle("Signals averaged on event-by-event basis Low Gain Area Idx ");
    468483            InitHists(pix,fIntensCam ? fIntensCam->GetAverageBadArea(j) : fCam->GetAverageBadArea(j),j);
    469484          }
     
    490505          pix.SetLast (fgChargeHiGainLast);
    491506
    492           pix.GetHGausHist()->SetName ("HChargeHiGainPix");
    493           pix.GetHGausHist()->SetTitle("Signals averaged on event-by-event basis HiGain Sector "); 
     507          TH1F *h =  pix.GetHGausHist();
     508         
     509          h->SetName ("HChargeHiGainSector");
     510          h->SetTitle("Signals averaged on event-by-event basis HiGain Sector "); 
     511          h->SetXTitle("Signal [FADC counts]");
     512          h->SetYTitle("Nr. of events");
    494513       
    495514          pix.GetHAbsTime()->SetName ("HAbsTimeHiGainPix");
     
    519538          pix.SetLast (fgChargeLoGainLast);
    520539
    521           pix.GetHGausHist()->SetName ("HChargeLoGainPix");
    522           pix.GetHGausHist()->SetTitle("Signals averaged on event-by-event basis LoGain Sector "); 
     540          TH1F *h =  pix.GetHGausHist();
     541         
     542          h->SetName ("HChargeLoGainSector");
     543          h->SetTitle("Signals averaged on event-by-event basis LoGain Sector "); 
     544          h->SetXTitle("Signal [FADC counts]");
     545          h->SetYTitle("Nr. of events");
    523546       
    524547          pix.GetHAbsTime()->SetName ("HAbsTimeLoGainPix");
  • trunk/MagicSoft/Mars/mhcalib/MHCalibrationRelTimeCam.cc

    r4939 r4942  
    261261        MHCalibrationPix &pix = GetAverageHiGainArea(j);
    262262       
    263         pix.SetNbins(fRelTimeNbins*3);
     263        pix.SetNbins(fRelTimeNbins*TMath::Sqrt((Float_t)npixels/nareas));
    264264        pix.SetFirst(fRelTimeFirst);
    265265        pix.SetLast (fRelTimeLast);
     
    298298        MHCalibrationPix &pix = GetAverageLoGainArea(j);
    299299
    300         pix.SetNbins(fRelTimeNbins*3);
     300        pix.SetNbins(fRelTimeNbins*TMath::Sqrt((Float_t)npixels/nareas));
    301301        pix.SetFirst(fRelTimeFirst);
    302302        pix.SetLast (fRelTimeLast);
     
    335335          MHCalibrationPix &pix = GetAverageHiGainSector(j);
    336336
    337           pix.SetNbins(fRelTimeNbins*3);
     337          pix.SetNbins(fRelTimeNbins*TMath::Sqrt((Float_t)npixels/nsectors));
    338338          pix.SetFirst(fRelTimeFirst);
    339339          pix.SetLast (fRelTimeLast);
     
    362362          MHCalibrationPix &pix = GetAverageLoGainSector(j);
    363363
    364           pix.SetNbins(fRelTimeNbins*3);
     364          pix.SetNbins(fRelTimeNbins*TMath::Sqrt((Float_t)npixels/nsectors));
    365365          pix.SetFirst(fRelTimeFirst);
    366366          pix.SetLast (fRelTimeLast);
Note: See TracChangeset for help on using the changeset viewer.