//*-- AUTHOR : Ilse Koenig //*-- Modified : 04/09/99 ///////////////////////////////////////////////////////////// // HMdcConnectedWires ///////////////////////////////////////////////////////////// #include "hmdcconnectedwires.h" #include "hades.h" #include "hruntimedb.h" #include "hmdcmboreadout.h" #include "TClass.h" #include ClassImp(HMdcConnectedWires) HMdcConnectedWires::HMdcConnectedWires() : HMdcLookupGeom() { // constructor sets the name of the container to "MdcConnectedWires" // creates the containers "MdcMboReadout" and "MdcLookupGeom" if not // existing and adds the pointers in the list of containers in the runtime // database fName="MdcConnectedWires"; fTitle="Mdc lookup table from cal1 to raw for the connected wires"; HRuntimeDb* rtdb=gHades->getRuntimeDb(); readout=(HMdcMboReadout*)(rtdb->getContainer("MdcMboReadout")); if (!readout) { readout=new HMdcMboReadout(); rtdb->addContainer(readout); } lookup=(HMdcLookupGeom*)(rtdb->getContainer("MdcLookupGeom")); if (!lookup) { lookup=new HMdcLookupGeom(); rtdb->addContainer(lookup); } } Bool_t HMdcConnectedWires::init(HParIo*,Int_t*) { if (readout->hasChanged() || lookup->hasChanged()) { HMdcLookupGeom& lMdc=*lookup; HMdcMboReadout& rMdc=*readout; for(Int_t s=0;s0 && pMoth.getSize()) { for(Int_t c=0;c