20int main(
int argc, 
char **argv)
 
   29    JParser<> zap(
"Example program to test application history.");
 
   35  catch(
const exception &error) {
 
   36    FATAL(error.what() << endl);
 
   40  const int numberOfFits = 3;
 
   46  for (
int i = 0; i != numberOfFits; ++i) {
 
   57  for (
int i = 0; i != 
sizeof(application)/
sizeof(int); ++i) {
 
   63    copy(evt.begin(), evt.end(), back_inserter(out));
 
   67    partial_sort(evt.begin(), evt.end(), evt.end(), qualitySorter);
 
   71    JEvt::const_iterator __end = partition(evt.begin(), evt.end(), 
JHistory::is_event(evt.begin()->getHistory()));
 
   73    for (JEvt::const_iterator fit = evt.begin(); fit != __end; ++fit) {
 
   79    sort(out.begin(), out.end(), qualitySorter);
 
   86  for (
size_t i = 0; i != evt.size(); ++i) {
 
   87    DEBUG(
"fit[" << i << 
"]" << endl << 
static_cast<const JHistory&
>(evt[i]) << endl);
 
   90  ASSERT((
int) evt.size() == numberOfFits * (
sizeof(application)/
sizeof(
int) + 1));
 
   92  for (
int i = 0; i != numberOfFits; ++i) {
 
   93    ASSERT(has_muon_prefit (evt[i]) && 
 
   94           has_muon_simplex(evt[i]) && 
 
   95           has_muon_gandalf(evt[i]) && 
 
   96           !has_muon_energy(evt[i]) &&  
 
   97           has_muon_start  (evt[i]));
 
  105  ASSERT( has_reconstructed_muon  (evt));
 
  106  ASSERT(!has_reconstructed_shower(evt));
 
  108  const JFit& fit = get_best_reconstructed_muon(evt);
 
  110  ASSERT(has_muon_prefit (fit) && 
 
  111         has_muon_simplex(fit) && 
 
  112         has_muon_gandalf(fit) && 
 
  113         !has_muon_energy(fit) &&  
 
  114         has_muon_start  (fit));  
 
 
int main(int argc, char **argv)
 
Auxiliary class to test history.
 
Container for historical events.
 
JHistory & add(const int type)
Add event to history.