Conformation of Transmembrane Segments of a Protein by a Coarse Grain Model