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

///////////////////////////////////////////////////////////////////////////////
//
// AMixedRefractiveIndex
//
// Refractive index for two mixed materials
//
///////////////////////////////////////////////////////////////////////////////

#include "AMixedRefractiveIndex.h"

ClassImp(AMixedRefractiveIndex);

AMixedRefractiveIndex::AMixedRefractiveIndex(
    std::shared_ptr<ARefractiveIndex> materialA,
    std::shared_ptr<ARefractiveIndex> materialB, Double_t fractionA,
    Double_t fractionB)
    : ARefractiveIndex(), fMaterialA(materialA), fMaterialB(materialB) {
  fFractionA = fractionA / (fractionA + fractionB);
  fFractionB = fractionB / (fractionA + fractionB);
}
 AMixedRefractiveIndex.cxx:1
 AMixedRefractiveIndex.cxx:2
 AMixedRefractiveIndex.cxx:3
 AMixedRefractiveIndex.cxx:4
 AMixedRefractiveIndex.cxx:5
 AMixedRefractiveIndex.cxx:6
 AMixedRefractiveIndex.cxx:7
 AMixedRefractiveIndex.cxx:8
 AMixedRefractiveIndex.cxx:9
 AMixedRefractiveIndex.cxx:10
 AMixedRefractiveIndex.cxx:11
 AMixedRefractiveIndex.cxx:12
 AMixedRefractiveIndex.cxx:13
 AMixedRefractiveIndex.cxx:14
 AMixedRefractiveIndex.cxx:15
 AMixedRefractiveIndex.cxx:16
 AMixedRefractiveIndex.cxx:17
 AMixedRefractiveIndex.cxx:18
 AMixedRefractiveIndex.cxx:19
 AMixedRefractiveIndex.cxx:20
 AMixedRefractiveIndex.cxx:21
 AMixedRefractiveIndex.cxx:22
 AMixedRefractiveIndex.cxx:23
 AMixedRefractiveIndex.cxx:24
 AMixedRefractiveIndex.cxx:25