ROBAST logo
/******************************************************************************
 * Copyright (C) 2006-, Akira Okumura                                         *
 * All rights reserved.                                                       *
 *****************************************************************************/

///////////////////////////////////////////////////////////////////////////////
//
// AFocalSurface
//
// Focal surface
//
///////////////////////////////////////////////////////////////////////////////

#include "AFocalSurface.h"

ClassImp(AFocalSurface);

AFocalSurface::AFocalSurface()
    : fQuantumEfficiencyLambda(0), fQuantumEfficiencyAngle(0) {
  // Default constructor
  SetLineColor(2);
}

//_____________________________________________________________________________
AFocalSurface::AFocalSurface(const char* name, const TGeoShape* shape,
                             const TGeoMedium* med)
    : AOpticalComponent(name, shape, med),
      fQuantumEfficiencyLambda(0),
      fQuantumEfficiencyAngle(0) {
  // Constructor
  SetLineColor(2);
}

//_____________________________________________________________________________
Double_t AFocalSurface::GetQuantumEfficiency(Double_t lambda) const {
  if (fQuantumEfficiencyLambda) {
    return fQuantumEfficiencyLambda->Eval(lambda);
  } else {
    return 1.;
  }
}

//_____________________________________________________________________________
Double_t AFocalSurface::GetQuantumEfficiency(Double_t lambda,
                                             Double_t angle) const {
  Double_t qe = GetQuantumEfficiency(lambda);
  if (HasQEAngle()) {
    qe *= fQuantumEfficiencyAngle->Eval(angle);
  }

  return qe;
}
 AFocalSurface.cxx:1
 AFocalSurface.cxx:2
 AFocalSurface.cxx:3
 AFocalSurface.cxx:4
 AFocalSurface.cxx:5
 AFocalSurface.cxx:6
 AFocalSurface.cxx:7
 AFocalSurface.cxx:8
 AFocalSurface.cxx:9
 AFocalSurface.cxx:10
 AFocalSurface.cxx:11
 AFocalSurface.cxx:12
 AFocalSurface.cxx:13
 AFocalSurface.cxx:14
 AFocalSurface.cxx:15
 AFocalSurface.cxx:16
 AFocalSurface.cxx:17
 AFocalSurface.cxx:18
 AFocalSurface.cxx:19
 AFocalSurface.cxx:20
 AFocalSurface.cxx:21
 AFocalSurface.cxx:22
 AFocalSurface.cxx:23
 AFocalSurface.cxx:24
 AFocalSurface.cxx:25
 AFocalSurface.cxx:26
 AFocalSurface.cxx:27
 AFocalSurface.cxx:28
 AFocalSurface.cxx:29
 AFocalSurface.cxx:30
 AFocalSurface.cxx:31
 AFocalSurface.cxx:32
 AFocalSurface.cxx:33
 AFocalSurface.cxx:34
 AFocalSurface.cxx:35
 AFocalSurface.cxx:36
 AFocalSurface.cxx:37
 AFocalSurface.cxx:38
 AFocalSurface.cxx:39
 AFocalSurface.cxx:40
 AFocalSurface.cxx:41
 AFocalSurface.cxx:42
 AFocalSurface.cxx:43
 AFocalSurface.cxx:44
 AFocalSurface.cxx:45
 AFocalSurface.cxx:46
 AFocalSurface.cxx:47
 AFocalSurface.cxx:48
 AFocalSurface.cxx:49
 AFocalSurface.cxx:50
 AFocalSurface.cxx:51
 AFocalSurface.cxx:52