ATLAS Offline Software
Loading...
Searching...
No Matches
SortingAlg.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3*/
4// SortingAlg.h
5// TopoCore
6// Created by Joerg Stelzer on 11/16/12.
7
8#ifndef TCS_SortingAlg
9#define TCS_SortingAlg
10
15
16namespace TCS {
17
18 class SortingAlg : public ConfigurableAlg {
19 public:
20
21 SortingAlg(const std::string & name) :
23 m_overflow(false)
24 {};
25
26 virtual ~SortingAlg();
27
28 virtual TCS::StatusCode sort(const InputTOBArray & input, TOBArray & output) = 0;
29 virtual TCS::StatusCode sortBitCorrect(const InputTOBArray & input, TOBArray & output);
35 bool overflow() const { return m_overflow; }
37 SortingAlg& setOverflow(const bool v) { m_overflow = v; return *this; }
38
39 protected:
40
41 virtual StatusCode doReset();
43 };
44
45}
46
47#endif
ConfigurableAlg(const std::string &name, AlgType algType)
const std::string & name() const
virtual ~SortingAlg()
SortingAlg & setOverflow(const bool v)
setter, to propagate bit from input event
Definition SortingAlg.h:37
bool overflow() const
whether an overlflow occurred
Definition SortingAlg.h:35
virtual TCS::StatusCode sortBitCorrect(const InputTOBArray &input, TOBArray &output)
virtual TCS::StatusCode sort(const InputTOBArray &input, TOBArray &output)=0
bool m_overflow
whether an overflow occurred during the current execution.
Definition SortingAlg.h:42
virtual StatusCode doReset()
SortingAlg(const std::string &name)
Definition SortingAlg.h:21