src/classify/adaptive.cpp
ADAPT_TEMPLATES_STRUCT *Classify::ReadAdaptedTemplates(TFile *fp) {
  auto Templates = new ADAPT_TEMPLATES_STRUCT;

  /* first read the high level adaptive template struct */
  fp->FRead(Templates, sizeof(ADAPT_TEMPLATES_STRUCT), 1);

  /* then read in the basic integer templates */
  Templates->Templates = ReadIntTemplates(fp);

  /* then read in the adaptive info for each class */
  for (unsigned i = 0; i < (Templates->Templates)->NumClasses; i++) {
    Templates->Class[i] = ReadAdaptedClass(fp);
  }
  return (Templates);

}
/*---------------------------------------------------------------------------*/
/**
 * Read a set of adapted templates from file and return
 * a ptr to the templates.
 *
 * @param fp open text file to read adapted templates from
 * @return Ptr to adapted templates read from file.
 *
 * @note Globals: none
 */
Read a set of adapted templates from file and return
a ptr to the templates.

@param fp open text file to read adapted templates from
@return Ptr to adapted templates read from file.

@note Globals: none
Read a set of adapted templates from file and return a ptr to the templates . @param fp open text file to read adapted templates from @return Ptr to adapted templates read from file . @note Globals : none
ADAPT_TEMPLATES_STRUCT *Classify::ReadAdaptedTemplates(TFile *fp) {
  auto Templates = new ADAPT_TEMPLATES_STRUCT;
  fp->FRead(Templates, sizeof(ADAPT_TEMPLATES_STRUCT), 1);
  Templates->Templates = ReadIntTemplates(fp);
  for (unsigned i = 0; i < (Templates->Templates)->NumClasses; i++) {
    Templates->Class[i] = ReadAdaptedClass(fp);
  }
  return (Templates);
}
ADAPT_TEMPLATES_STRUCT * Classify :: ReadAdaptedTemplates ( TFile * fp ) { auto Templates = new ADAPT_TEMPLATES_STRUCT ; fp -> FRead ( Templates , sizeof ( ADAPT_TEMPLATES_STRUCT ) , 1 ) ; Templates -> Templates = ReadIntTemplates ( fp ) ; for ( unsigned i = 0 ; i < ( Templates -> Templates ) -> NumClasses ; i ++ ) { Templates -> Class [ i ] = ReadAdaptedClass ( fp ) ; } return ( Templates ) ; }
Read a set of adapted templates from file and return
 a ptr to the templates.
Read a set of adapted templates from file and return a ptr to the templates .
/* first read the high level adaptive template struct */ /* then read in the basic integer templates */ /* then read in the adaptive info for each class */