////////////////////////////////////////////////////////////////////////// // // Function: CalDataPuffer.cc // Purpose: This class knows how to puff a CalData object // // Created: 24/05/00 Pierre Savard // History: // ////////////////////////////////////////////////////////////////////////// #include #include #include "Calor/CalDataPuffer.hh" #include "BaBar/Cdf.hh" #include "AbsEnv/AbsEnv.hh" bool CalDataPuffer::puff(EventRecord* event, EventRecord::ConstIterator iter) const{ CalData_ch theHandle(iter); return this->puff(event,*theHandle); } bool CalDataPuffer::puff(EventRecord* event, const CalData& data) const{ // This one is simple since no algorithms are needed to puff CalData bool status = true; if(!data.isPuffed()){ status = data.puff(); } return status; }