From Genome Analysis Wiki
→Getting/Setting fields in a SAM/BAM Record
The "get" accessors assume that the class has already been populated, either by using the set commands or by calling SamFile::ReadRecord. Not all of the values that can be retrieved using these get accessors have set methods. That is because they are either read from the file or are internally calculated values.
www.sph.umich.edu/ csg/mktrost/doxygen/current/classSamFileHeader.html for documentation.
==Example of using getNextSamTag==