Auxiliary class for counting unique strings.  
 More...
#include <JStringCounter.hh>
Auxiliary class for counting unique strings. 
Definition at line 23 of file JStringCounter.hh.
 
  
  
      
        
          | JDETECTOR::JStringCounter::JStringCounter  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | int JDETECTOR::JStringCounter::operator()  | 
          ( | 
          const JDetector &  | 
          detector | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Count unique strings. 
- Parameters
 - 
  
  
 
- Returns
 - number of unique strings 
 
Definition at line 37 of file JStringCounter.hh.
   41       buffer.resize(detector.size());
 
   45       for (JDetector::const_iterator module = detector.begin(); module != detector.end(); ++module, ++out) {
 
   46         *out = module->getString();
 
std::vector< T >::difference_type distance(typename std::vector< T >::const_iterator first, typename PhysicsEvent::const_iterator< T > second)
Specialisation of STL distance. 
 
std::vector< int > buffer
 
 
 
 
template<class T > 
  
  
      
        
          | int JDETECTOR::JStringCounter::operator()  | 
          ( | 
          const JModuleRouter &  | 
          router,  | 
         
        
           | 
           | 
          T  | 
          __begin,  | 
         
        
           | 
           | 
          T  | 
          __end  | 
         
        
           | 
          ) | 
           |  const | 
         
       
   | 
  
inline   | 
  
 
Count unique strings. 
The template parameter should correspond to a data type which provides for the following method: 
       int getModuleID();
 Note that the input data are not changed.
- Parameters
 - 
  
    | router | module router  | 
    | __begin | begin of data  | 
    | __end | end of data  | 
  
   
- Returns
 - number of unique strings 
 
Definition at line 70 of file JStringCounter.hh.
   78       for (
T i = __begin; i != __end; ++i, ++out) {
 
   79         *out = router.
getModule(i->getModuleID()).getString();
 
const JModule & getModule(const JObjectID &id) const 
Get module parameters. 
 
std::vector< T >::difference_type distance(typename std::vector< T >::const_iterator first, typename PhysicsEvent::const_iterator< T > second)
Specialisation of STL distance. 
 
do set_variable OUTPUT_DIRECTORY $WORKDIR T
 
std::vector< int > buffer
 
 
 
 
The documentation for this struct was generated from the following file: