 |
ATLAS Offline Software
|
Go to the documentation of this file.
28 defineParameter(
"InputWidth", 1);
29 defineParameter(
"MaxTob", 0);
30 defineParameter(
"NumResultBits", 4);
31 setNumberOutputBits(4);
32 for (
unsigned int i=0;
i<numberOutputBits();
i++){
34 defineParameter(
"algoLogic", 0,
i);
35 defineParameter(
"nextBcFactor", 0,
i);
36 defineParameter(
"nextBcOffset", 0,
i);
46 std::string hname_accept =
"hTeATIME_accept_bit"+
std::to_string((
int)
i);
47 std::string hname_reject =
"hTeATIME_reject_bit"+
std::to_string((
int)
i);
58 const std::vector<TCS::TOBArray *> & output,
61 if(input.size() == 1) {
64 jte != input[0]->end();
68 for(
unsigned int i=0;
i<numberOutputBits(); ++
i) {
71 fillHist1D(m_histReject[
i], 1);
79 TCS_EXCEPTION(
"TeATIME alg must have 1 input, but got " << input.size());
85 const std::vector<TCS::TOBArray *> & output,
88 return processBitCorrect(input, output, decision);
data_t::const_iterator const_iterator
virtual StatusCode processBitCorrect(const std::vector< TCS::TOBArray const * > &input, const std::vector< TCS::TOBArray * > &output, Decision &decison) override
unsigned int numberOutputBits() const
bool const RAWDATA *ch2 const
std::vector< std::string > m_histReject
void setBit(unsigned int index, bool value)
std::vector< std::string > m_histAccept
#define TCS_EXCEPTION(MSG)
#define REGISTER_ALG_TCS(CLASS)
std::string to_string(const DetectorType &type)
virtual StatusCode process(const std::vector< TCS::TOBArray const * > &input, const std::vector< TCS::TOBArray * > &output, Decision &decison) override
void bookHist(std::vector< std::string > ®Name, const std::string &name, const std::string &title, const int binx, const int xmin, const int xmax)
virtual StatusCode initialize() override