All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | List of all members
ana::SpectrumLoaderBase::SpectList Struct Reference

Helper class for SpectrumLoaderBase. More...

#include <SpectrumLoaderBase.h>

Public Member Functions

void Erase (Spectrum *s)
 
void Erase (ReweightableSpectrum *os)
 
void RemoveLoader (SpectrumLoaderBase *l)
 
size_t TotalSize () const
 
void GetSpectra (std::vector< Spectrum * > &ss)
 
void GetReweightableSpectra (std::vector< ReweightableSpectrum * > &ss)
 

Public Attributes

std::vector< Spectrum * > spects
 
std::vector
< ReweightableSpectrum * > 
rwSpects
 

Detailed Description

Helper class for SpectrumLoaderBase.

List of Spectrum and OscillatableSpectrum, some utility functions

Definition at line 138 of file SpectrumLoaderBase.h.

Member Function Documentation

void ana::SpectrumLoaderBase::SpectList::Erase ( Spectrum s)

Definition at line 27 of file SpectrumLoaderBase.cxx.

28  {
29  auto it = std::find(spects.begin(), spects.end(), s);
30  if(it != spects.end()) spects.erase(it);
31  }
std::vector< Spectrum * > spects
then echo File list $list not found else cat $list while read file do echo $file sed s
Definition: file_to_url.sh:60
void ana::SpectrumLoaderBase::SpectList::Erase ( ReweightableSpectrum os)

Definition at line 34 of file SpectrumLoaderBase.cxx.

35  {
36  auto it = std::find(rwSpects.begin(), rwSpects.end(), rs);
37  if(it != rwSpects.end()) rwSpects.erase(it);
38  }
std::vector< ReweightableSpectrum * > rwSpects
void ana::SpectrumLoaderBase::SpectList::GetReweightableSpectra ( std::vector< ReweightableSpectrum * > &  ss)

Definition at line 61 of file SpectrumLoaderBase.cxx.

62  {
63  ss.insert(ss.end(), rwSpects.begin(), rwSpects.end());
64  }
std::vector< ReweightableSpectrum * > rwSpects
void ana::SpectrumLoaderBase::SpectList::GetSpectra ( std::vector< Spectrum * > &  ss)

Definition at line 54 of file SpectrumLoaderBase.cxx.

55  {
56  ss.insert(ss.end(), spects.begin(), spects.end());
57  }
std::vector< Spectrum * > spects
void ana::SpectrumLoaderBase::SpectList::RemoveLoader ( SpectrumLoaderBase l)

Definition at line 41 of file SpectrumLoaderBase.cxx.

42  {
43  for(Spectrum* s: spects) s->RemoveLoader(l);
44  for(ReweightableSpectrum* rs: rwSpects) rs->RemoveLoader(l);
45  }
std::vector< ReweightableSpectrum * > rwSpects
std::vector< Spectrum * > spects
then echo File list $list not found else cat $list while read file do echo $file sed s
Definition: file_to_url.sh:60
size_t ana::SpectrumLoaderBase::SpectList::TotalSize ( ) const

Definition at line 48 of file SpectrumLoaderBase.cxx.

49  {
50  return spects.size() + rwSpects.size();
51  }
std::vector< ReweightableSpectrum * > rwSpects
std::vector< Spectrum * > spects

Member Data Documentation

std::vector<ReweightableSpectrum*> ana::SpectrumLoaderBase::SpectList::rwSpects

Definition at line 148 of file SpectrumLoaderBase.h.

std::vector<Spectrum*> ana::SpectrumLoaderBase::SpectList::spects

Definition at line 147 of file SpectrumLoaderBase.h.


The documentation for this struct was generated from the following files: