Public Member Functions | Protected Attributes | List of all members
ana::CutApplier Class Reference

#include "/cvmfs/"

Inheritance diagram for ana::CutApplier:
ana::RecordMultiSink ana::IRecordSink

Public Member Functions

 CutApplier (const Cut &c)
void HandleRecord (caf::SRProxy *sr, double wei) override
void AddSink (IRecordSink *s)
int NSinks () const override

Protected Attributes

Cut fCut
std::vector< IRecordSink * > fSinks

Detailed Description

Definition at line 9 of file CutApplier.h.

Constructor & Destructor Documentation

ana::CutApplier::CutApplier ( const Cut c)

Definition at line 12 of file CutApplier.h.

References HandleRecord(), and sr.

Member Function Documentation

void ana::RecordMultiSink::AddSink ( IRecordSink s)
void ana::CutApplier::HandleRecord ( caf::SRProxy sr,
double  wei 

Implements ana::IRecordSink.

Definition at line 6 of file CutApplier.cxx.

References fCut, and ana::RecordMultiSink::HandleRecord().

Referenced by CutApplier().

7  {
8  if(fCut(sr)) RecordMultiSink::HandleRecord(sr, wei);
9  }
void HandleRecord(caf::SRProxy *sr, double wei) override
int ana::RecordMultiSink::NSinks ( ) const

Implements ana::IRecordSink.

Definition at line 12 of file RecordMultiSink.cxx.

References ana::RecordMultiSink::fSinks, and runNovaSAM::ret.

Referenced by ana::RecordMultiSink::AddSink(), and ana::SpectrumLoader::Go().

13  {
14  int ret = 0;
15  for(IRecordSink* sink: fSinks) ret += sink->NSinks();
16  return ret;
17  }
std::vector< IRecordSink * > fSinks

Member Data Documentation

Cut ana::CutApplier::fCut

Definition at line 17 of file CutApplier.h.

Referenced by HandleRecord().

std::vector<IRecordSink*> ana::RecordMultiSink::fSinks

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