00001 // $Header: /nfs/slac/g/glast/ground/cvs/GlastSvc/src/EventSelector/IRFConverter.cpp,v 1.8 2001/03/05 03:09:15 burnett Exp $ 00002 #include "IRFConverter.h" 00003 00004 00005 #include "instrument/Scintillator.h" 00006 #include "instrument/SiDetector.h" 00007 #include "instrument/CsIDetector.h" 00008 #include "instrument/MCTruth.h" 00009 #include "instrument/Tower.h" 00010 00011 // note initialization of number of layers 00012 IRFConverter::IRFConverter():m_cal(8),m_tkr(18){} 00013 00014 void IRFConverter::forward (const Tower& t) { 00015 m_id = t.getId(); 00016 } 00017 void IRFConverter::forward ( const CsIDetector& csi_det) { 00018 if ( !(csi_det.empty()) ) { 00019 m_cal.load(csi_det, m_id); 00020 } 00021 } 00022 void IRFConverter::forward ( const SiDetector& si_det) { 00023 if ( !(si_det.empty()) ) { 00024 m_tkr.load(si_det, m_id); 00025 } 00026 } 00027 void IRFConverter::forward ( const Scintillator& scint) { 00028 if ( !(scint.empty()) ) { 00029 m_acd.load(scint); 00030 } 00031 } 00032 void IRFConverter::forward ( const MCTruth& mc){ 00033 } 00034 00035 void IRFConverter::printOn(std::ostream& out) const 00036 { 00037 m_acd.printOn(out); 00038 m_tkr.printOn(out); 00039 m_cal.printOn(out); 00040 } 00041 00042 void IRFConverter::clear() 00043 { 00044 m_acd.clear(); 00045 m_tkr.clear(); 00046 m_cal.clear(); 00047 }
1.2.3 written by Dimitri van Heesch,
© 1997-2000