Public Member Functions | Private Types | List of all members
novaddt::HitSet Class Reference

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N21-01-15/DDTBaseDataProducts/HitSet.h"

Inheritance diagram for novaddt::HitSet:

Public Member Functions

 HitSet ()
 
template<class AnyCollection >
 HitSet (const AnyCollection &v)
 
template<class AnyCollection >
void add (const AnyCollection &v)
 
template<class AnyCollection >
void subtract (const AnyCollection &v)
 

Private Types

using base_set = std::set< novaddt::DAQHit, novaddt::CompareDAQHit< TDC >>
 

Detailed Description

Definition at line 12 of file HitSet.h.

Member Typedef Documentation

Definition at line 14 of file HitSet.h.

Constructor & Destructor Documentation

novaddt::HitSet::HitSet ( )
inline

Definition at line 16 of file HitSet.h.

16 :base_set(){};
std::set< novaddt::DAQHit, novaddt::CompareDAQHit< TDC >> base_set
Definition: HitSet.h:14
template<class AnyCollection >
novaddt::HitSet::HitSet ( const AnyCollection &  v)
inline

Definition at line 19 of file HitSet.h.

19  :base_set(v.begin(),v.end())
20  {
21  }
std::set< novaddt::DAQHit, novaddt::CompareDAQHit< TDC >> base_set
Definition: HitSet.h:14

Member Function Documentation

template<class AnyCollection >
void novaddt::HitSet::add ( const AnyCollection &  v)
inline

Definition at line 24 of file HitSet.h.

Referenced by Expression::Eval(), Expression::fetchAll(), and novaddt::Calibration::fetchAllTrackHits().

25  {
26  insert(v.begin(),v.end());
27  }
template<class AnyCollection >
void novaddt::HitSet::subtract ( const AnyCollection &  v)
inline

Definition at line 30 of file HitSet.h.

References febshutoff_auto::end, and it.

Referenced by novaddt::Calibration::analyze(), and Expression::Eval().

31  {
32  for(const auto& hit: v){
33  auto it=find(hit);
34  if(it!=end())erase(it);
35  }
36  }
set< int >::iterator it
Definition: structs.h:12

The documentation for this class was generated from the following file: