BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
BaBar.cc
Go to the documentation of this file.
1//--------------------------------------------------------------------------
2// File and Version Information:
3// $Id: BaBar.cc,v 1.1 2007/10/12 07:30:20 caogf Exp $
4//
5// Description:
6// See corresponding .hh file.
7//
8// Environment:
9// Software developed for the BaBar Detector at the SLAC B-Factory.
10//
11// Author List:
12// Rainer Bartoldus
13//
14// Copyright Information:
15// Copyright (C) 2004 Stanford Linear Accelerator Center
16//
17//--------------------------------------------------------------------------
18#ifndef BABAR_COMP_INST
19# include "PhySim/BaBar.hh"
20#endif // BABAR_COMP_INST
21
22#if defined( __SUNPRO_CC )
23
24# include <stddef.h>
25
26namespace std {
27 template <class InputIterator, class T>
28 ptrdiff_t count( InputIterator first, InputIterator last, const T& value ) {
29 ptrdiff_t n = 0;
30 while ( first != last )
31 if ( *first++ == value ) ++n;
32 return n;
33 }
34
35 template <class InputIterator, class Predicate>
36 ptrdiff_t count_if( InputIterator first, InputIterator last, Predicate pred ) {
37 ptrdiff_t n = 0;
38 while ( first != last )
39 if ( pred( *first++ ) ) ++n;
40 return n;
41 }
42
43 template <class InputIterator>
44 ptrdiff_t distance( InputIterator first, InputIterator last ) {
45 ptrdiff_t n = 0;
46 while ( first != last )
47 {
48 ++first;
49 ++n;
50 }
51 return n;
52 }
53} // namespace std
54#endif // __SUNPRO_CC
const Int_t n
DOUBLE_PRECISION count[3]
Index first(Pair i)