// @(#) $Id: AliHLTTPCCAParam.cxx,v 1.4 2011/10/01 00:23:44 perev Exp $ // ************************************************************************** // This file is property of and copyright by the ALICE HLT Project * // ALICE Experiment at CERN, All rights reserved. * // * // Primary Authors: Sergey Gorbunov * // Ivan Kisel * // for The ALICE HLT Project. * // * // Developed by: Igor Kulakov * // Maksym Zyzak * // * // Permission to use, copy, modify and distribute this software and its * // documentation strictly for non-commercial purposes is hereby granted * // without fee, provided that the above copyright notice appears in all * // copies and that both the copyright notice and this permission notice * // appear in the supporting documentation. The authors make no claims * // about the suitability of this software for any purpose. It is * // provided "as is" without express or implied warranty. * // * //*************************************************************************** #include "AliHLTTPCCAParam.h" #include "AliHLTTPCCAMath.h" #include #include "debug.h" AliHLTTPCCAParam::AliHLTTPCCAParam() : fNStations(0), fStations(0) { } std::ostream &operator<<( std::ostream &out, const AliHLTTPCCAParam &p ) { // write settings to the file int iSl = 0; float tmp=0; out << iSl << std::endl; out << p.fNStations << std::endl; out << tmp << std::endl; out << tmp << std::endl; out << tmp << std::endl; out << tmp << std::endl; out << tmp << std::endl; out << tmp << std::endl; out << tmp << std::endl; out << tmp << std::endl; out << tmp << std::endl; out << tmp << std::endl; out << tmp << std::endl; out << tmp << std::endl; out << tmp << std::endl; out << tmp << std::endl; out << p.fBz << std::endl; return out; } std::istream &operator>>( std::istream &in, AliHLTTPCCAParam &p ) { // Read settings from the file in >> p.fNStations; in >> p.fBz; p.fVtxFieldValue = p.cBz(); if(p.fStations) delete [] p.fStations; p.fStations = new ITSCAStation[p.fNStations]; for(int i=0; i> iSt; in >> p.fStations[i].r; in >> p.fStations[i].xOverX0; in >> p.fStations[i].xTimesRho; } return in; } #include "BinaryStoreHelper.h" void AliHLTTPCCAParam::StoreToFile( FILE *f ) const { BinaryStoreWrite( *this, f ); } void AliHLTTPCCAParam::RestoreFromFile( FILE *f ) { BinaryStoreRead( *this, f ); }