Changeset 5136 for trunk/MagicSoft


Ignore:
Timestamp:
09/25/04 13:56:33 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r5135 r5136  
    2121 2004/09/23: Markus Gaug
    2222 
     23   * msignal/MExtractBlindPixel.[h,cc]
     24     - added enum DataType_t to set in which MRawEvtData container the
     25       blind pixel is found. The container of the blind pixel has changed
     26       from MRawEvtData to MRawEvtData2
     27
    2328   * mcalib/MCalibrationBlindCam.[h,cc]
    2429     - added function SetPulserColor which was only available in
  • trunk/MagicSoft/Mars/mcalib/MCalibrationQECam.h

    r5047 r5136  
    1414#endif
    1515
     16class TGraphErrors;
     17class TH2D;
    1618class MCalibrationQECam : public MCalibrationCam
    1719{
     
    3436
    3537  MArrayD fCorningBlues;                   // Corning blues of the pixels (if available)
    36   MArrayD fCorningReds;                    //o Corning reds  of the pixels (if available)
     38  MArrayD fCorningReds;                    // Corning reds  of the pixels (if available)
    3739
    3840public:
     
    4244  void Clear( Option_t *o=""  );
    4345  void Copy ( TObject& object ) const;
     46
     47  TGraphErrors *GetGraphQEvsCorningBlues() const;
     48  TGraphErrors *GetGraphQEvsCorningReds() const; 
     49 
     50  TH2D *GetHistQEvsCorningBlues( const Int_t nbins=50, const Axis_t first=6., const Axis_t last=17.) const;
     51  TH2D *GetHistQEvsCorningReds( const Int_t nbins=50, const Axis_t first=0., const Axis_t last=25.) const; 
    4452 
    4553  // Others
  • trunk/MagicSoft/Mars/msignal/MExtractBlindPixel.cc

    r4984 r5136  
    9494    : fHiGainSignal(NULL),
    9595      fHiGainFirstDeriv(NULL),
    96       fHiGainSecondDeriv(NULL)
     96      fHiGainSecondDeriv(NULL),
     97      fDataType(0)
    9798{
    9899 
     
    213214    return kFALSE;
    214215
    215  
     216  if (IsDataType(kRawEvt2))
     217    fRawEvt = (MRawEvtData*)pList->FindObject(AddSerialNumber("MRawEvtData2"));
     218  else
     219    fRawEvt = (MRawEvtData*)pList->FindObject(AddSerialNumber("MRawEvtData"));
     220
     221  if (!fRawEvt)
     222    {
     223      *fLog << err << "MRawEvtData2 or MRawEvtData not found... aborting." << endl;
     224      return kFALSE;
     225    }
    216226  return kTRUE;
    217227}
     
    718728// ------------------------------------------------------------------------------------
    719729//
     730// Returns true if the Data type. Available are: kAmplitude, kIntegral and kFilter
     731// The flags kIntegral and kFilter may be set both.
     732//
     733Bool_t MExtractBlindPixel::IsDataType( const DataType_t typ )
     734{
     735 
     736  return TESTBIT( fDataType, typ );
     737
     738}
     739
     740// ------------------------------------------------------------------------------------
     741//
    720742// Returns true if the extraction type. Available are: kAmplitude, kIntegral and kFilter
    721743// The flags kIntegral and kFilter may be set both.
     
    730752// --------------------------------------------------------------------------
    731753//
     754// Sets the Data type. Available are: kAmplitude and kIntegral
     755//
     756void MExtractBlindPixel::SetDataType( const DataType_t typ )
     757{
     758  SETBIT( fDataType, typ );
     759}
     760
     761// --------------------------------------------------------------------------
     762//
    732763// Sets the extraction type. Available are: kAmplitude and kIntegral
    733764//
Note: See TracChangeset for help on using the changeset viewer.