ATLAS Offline Software
Loading...
Searching...
No Matches
TBSignalHelper.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TBUTILS_TBSIGNALHELPER_H
6#define TBUTILS_TBSIGNALHELPER_H
7
8#include <vector>
9
10namespace TBSignalHelper
11{
12 template<typename T>
13 class DataProfiler
14 {
15 public:
16
17 DataProfiler(unsigned int noChannels)
18 {
19 m_sumStore.resize(noChannels,0);
20 m_rmsStore.resize(noChannels,0);
21 m_ctrStore.resize(noChannels,0);
22 }
23
24 virtual ~DataProfiler();
25
26 virtual void collect(std::vector<T> theValues)
27 {
28 }
29
30 virtual void collect(unsigned int theChannel, T theValue);
31
32 virtual std::vector<T> getAverages() const;
33 virtual T getAverages(
34 virtual std::vector<T> getSum() const;
35 virtual std::vector<T> getSumOfSquares() const;
36
37 virtual unsigned int
38
39 };
40#endif
unsigned long long T
void collect(const HLT::TriggerElement *te, std::vector< Trig::Feature< T > > &data, const std::string &label, unsigned int condition, const std::string &teName, const HLT::TrigNavStructure *navstructure)
actual feature acceess implementation It has (thanks to the ClassTraits) functionality to flatten con...