Changeset 3346 for trunk/MagicSoft


Ignore:
Timestamp:
02/28/04 01:01:32 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r3345 r3346  
    44
    55                                                 -*-*- END OF LINE -*-*-
     6 2004/02/27: Markus Gaug
     7 
     8   * mcalib/MHCalibrationChargePix.[h,cc]
     9   * mcalib/MHCalibrationHiGainChargePix.[h,cc]
     10   * mcalib/MHCalibrationLoGainChargePix.[h,cc]
     11
     12     - histogram name setting and title setting moved to constructor,
     13       Functions Init and ChangeHistId derive directly from
     14       MHcalibrationChargePix
     15
     16
    617 2004/02/27: Raducci Sebastian
    718
  • trunk/MagicSoft/Mars/mcalib/MHCalibrationChargeHiGainPix.cc

    r3264 r3346  
    7272  SetAbsTimeFirst();
    7373  SetAbsTimeLast();
    74 }
    75 
    76 
    77 void MHCalibrationChargeHiGainPix::Init()
    78 {
    7974
    8075  fHGausHist.SetName("HCalibrationChargeHiGainPix");
    8176  fHGausHist.SetTitle("Distribution of Summed Hi Gain FADC slices Pixel "); 
    82   fHGausHist.SetXTitle("Sum FADC Slices");
    83   fHGausHist.SetYTitle("Nr. of events");
    84   fHGausHist.SetBins(fChargeNbins,fChargeFirst,fChargeLast);
    85   //  fHGausHist.Sumw2();
    8677
    8778  fHAbsTime.SetName("HAbsTimeHiGainPix");
    8879  fHAbsTime.SetTitle("Distribution of Absolute Arrival Times Hi Gain Pixel "); 
    89   fHAbsTime.SetXTitle("Absolute Arrival Time [FADC slice nr]");
    90   fHAbsTime.SetYTitle("Nr. of events");
    91   fHAbsTime.SetBins(fAbsTimeNbins,fAbsTimeFirst,fAbsTimeLast);
    92 
    9380}
    94 
    95 
    96 
    97 void MHCalibrationChargeHiGainPix::ChangeHistId(Int_t id)
    98 {
    99 
    100   fPixId = id;
    101 
    102   fHGausHist.SetName(Form("%s%d", fHGausHist.GetName(), id));
    103   fHGausHist.SetTitle(Form("%s%d", fHGausHist.GetTitle(), id));
    104 
    105   fHAbsTime.SetName(Form("%s%d", fHAbsTime.GetName(), id));
    106   fHAbsTime.SetTitle(Form("%s%d", fHAbsTime.GetTitle(), id));
    107 
    108   fName  = Form("%s%d", fName.Data(), id);
    109   fTitle = Form("%s%d", fTitle.Data(), id);
    110 }
    111 
    11281
    11382void MHCalibrationChargeHiGainPix::Draw(const Option_t *opt)
  • trunk/MagicSoft/Mars/mcalib/MHCalibrationChargeLoGainPix.cc

    r3264 r3346  
    7171  SetAbsTimeFirst();
    7272  SetAbsTimeLast();
    73 }
    74 
    75 
    76 void MHCalibrationChargeLoGainPix::Init()
    77 {
    7873
    7974  fHGausHist.SetName("HCalibrationChargeLoGainPix");
    8075  fHGausHist.SetTitle("Distribution of Summed Hi Gain FADC slices Pixel "); 
    81   fHGausHist.SetXTitle("Sum FADC Slices");
    82   fHGausHist.SetYTitle("Nr. of events");
    83   fHGausHist.SetBins(fChargeNbins,fChargeFirst,fChargeLast);
    84   //  fHGausHist.Sumw2();
    8576
    8677  fHAbsTime.SetName("HAbsTimeLoGainPix");
    8778  fHAbsTime.SetTitle("Distribution of Absolute Arrival Times Hi Gain Pixel "); 
    88   fHAbsTime.SetXTitle("Absolute Arrival Time [FADC slice nr]");
    89   fHAbsTime.SetYTitle("Nr. of events");
    90   fHAbsTime.SetBins(fAbsTimeNbins,fAbsTimeFirst,fAbsTimeLast);
    91 
    9279}
    9380
     
    9582
    9683
    97 void MHCalibrationChargeLoGainPix::ChangeHistId(Int_t id)
    98 {
    99 
    100   fPixId = id;
    101 
    102   fHGausHist.SetName(Form("%s%d", fHGausHist.GetName(), id));
    103   fHGausHist.SetTitle(Form("%s%d", fHGausHist.GetTitle(), id));
    104 
    105   fHAbsTime.SetName(Form("%s%d", fHAbsTime.GetName(), id));
    106   fHAbsTime.SetTitle(Form("%s%d", fHAbsTime.GetTitle(), id));
    107 
    108   fName  = Form("%s%d", fName.Data(), id);
    109   fTitle = Form("%s%d", fTitle.Data(), id);
    110 }
    11184
    11285
    11386
    11487
     88
     89
     90
     91
     92
     93
     94
     95
     96
  • trunk/MagicSoft/Mars/mcalib/MHCalibrationChargeLoGainPix.h

    r3264 r3346  
    2424  ~MHCalibrationChargeLoGainPix(){}
    2525
    26   void Init();
    27  
    2826  // Setters
    2927  void SetChargeNbins(const Int_t  bins =fgChargeNbins)          { fChargeNbins = bins;     }
     
    3432  void SetAbsTimeFirst(const Axis_t first=fgAbsTimeFirst)        { fAbsTimeFirst = first;   }
    3533  void SetAbsTimeLast (const Axis_t last =fgAbsTimeLast)         { fAbsTimeLast  = last;    }
    36 
    37   void ChangeHistId(Int_t i);
    3834
    3935  ClassDef(MHCalibrationChargeLoGainPix, 1)  // Histogram class for a Calibration Pixel with extracted Low Gain
  • trunk/MagicSoft/Mars/mcalib/MHCalibrationChargePix.cc

    r3290 r3346  
    8080  SetPickupLimit();
    8181
    82   fHAbsTime.UseCurrentStyle();
    83   fHAbsTime.SetDirectory(NULL);
    84 
    85   Clear();
    86  
    87   SetPulserFrequency();
    88 }
    89 
    90 void MHCalibrationChargePix::Init()
    91 {
    92 
    9382  fHGausHist.SetName("HCalibrationCharge");
    9483  fHGausHist.SetTitle("Distribution of Summed FADC slices Pixel"); 
    9584  fHGausHist.SetXTitle("Sum FADC Slices");
    9685  fHGausHist.SetYTitle("Nr. of events");
    97   fHGausHist.SetBins(fChargeNbins,fChargeFirst,fChargeLast);
    98   fHGausHist.Sumw2();
    9986
    10087  fHAbsTime.SetName("HAbsTimePixel");
     
    10289  fHAbsTime.SetXTitle("Absolute Arrival Time [FADC slice nr]");
    10390  fHAbsTime.SetYTitle("Nr. of events");
     91  fHAbsTime.UseCurrentStyle();
     92  fHAbsTime.SetDirectory(NULL);
     93
     94  Clear();
     95 
     96  SetPulserFrequency();
     97}
     98
     99void MHCalibrationChargePix::Init()
     100{
     101
     102  fHGausHist.SetBins(fChargeNbins,fChargeFirst,fChargeLast);
    104103  fHAbsTime.SetBins(fAbsTimeNbins,fAbsTimeFirst,fAbsTimeLast);
    105 
    106104}
    107105
     
    134132  fHAbsTime.SetName(Form("%s%d", fHAbsTime.GetName(), id));
    135133  fHAbsTime.SetTitle(Form("%s%d", fHAbsTime.GetTitle(), id));
     134
     135  fName  = Form("%s%d", fName.Data(), id);
     136  fTitle = Form("%s%d", fTitle.Data(), id);
    136137}
    137138
     
    182183  }
    183184
    184   pad->SetTicks();
    185   pad->SetBorderMode(0);
    186185  pad->Divide(1,win);
    187186  pad->cd(1);
    188187
    189188  if (!IsEmpty())
    190     pad->SetLogy();
     189    gPad->SetLogy();
    191190
    192191  MHGausEvents::Draw(opt);
Note: See TracChangeset for help on using the changeset viewer.