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

#include "/cvmfs/"

Inheritance diagram for ana::MultiVarSpectrumSink:
ana::SpectrumSinkBase< Spectrum > ana::IRecordSink ana::IExposureSink

Public Member Functions

 MultiVarSpectrumSink (const MultiVar &v, Spectrum *s)
void HandleRecord (caf::SRProxy *sr, double wei) override
void HandlePOT (double pot) override
void HandleLivetime (double t) override
int NSinks () const override

Protected Attributes

MultiVar fVar
 May be null if Spectrum deregisters itself. More...

Detailed Description

Definition at line 46 of file SpectrumSink.h.

Constructor & Destructor Documentation

ana::MultiVarSpectrumSink::MultiVarSpectrumSink ( const MultiVar v,
Spectrum s 

Definition at line 49 of file SpectrumSink.h.

References ana::IRecordSink::HandleRecord(), and sr.

51  {
52  }
const XML_Char * s
Definition: expat.h:262

Member Function Documentation

void ana::SpectrumSinkBase< Spectrum >::HandleLivetime ( double  t)

Implements ana::IExposureSink.

void ana::SpectrumSinkBase< Spectrum >::HandlePOT ( double  pot)

Implements ana::IExposureSink.

void ana::MultiVarSpectrumSink::HandleRecord ( caf::SRProxy sr,
double  wei 

Implements ana::IRecordSink.

Definition at line 46 of file SpectrumSink.cxx.

References ana::CheckVal(), ana::Spectrum::Fill(), ana::SpectrumSinkBase< Spectrum >::fSpect, ana::SpectrumSink::fVar, and febshutoff_auto::val.

47  {
48  if(!fSpect) return;
49  for(double val: fVar(sr))
50  if(CheckVal(val, "a MultiVar")) fSpect->Fill(val, wei);
51  }
void Fill(double x, double w=1)
Definition: Spectrum.cxx:293
Spectrum * fSpect
May be null if Spectrum deregisters itself.
Definition: SpectrumSink.h:28
bool CheckVal(double val, const char *detail)
int ana::SpectrumSinkBase< Spectrum >::NSinks ( ) const

Implements ana::IRecordSink.

Definition at line 25 of file SpectrumSink.h.

25 {return 1;}

Member Data Documentation

Spectrum * ana::SpectrumSinkBase< Spectrum >::fSpect

May be null if Spectrum deregisters itself.

Definition at line 28 of file SpectrumSink.h.

Referenced by ana::SpectrumSink::HandleRecord(), HandleRecord(), and ana::ReweightableSpectrumSink::HandleRecord().

MultiVar ana::MultiVarSpectrumSink::fVar

Definition at line 56 of file SpectrumSink.h.

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