11 #include "RtypesCore.h" 60 pdspctb(std::vector<raw::ctb::Trigger> &trigs,
61 std::vector<raw::ctb::ChStatus> &chstats,
62 std::vector<raw::ctb::Feedback> &fbs,
63 std::vector<raw::ctb::Misc> &
m,
64 std::vector<raw::ctb::WordIndex> &wordindexes) :
65 fTriggers(trigs), fChStatuses(chstats), fFeedbacks(fbs), fMiscs(m), fIndexes(wordindexes) {};
68 const std::vector<raw::ctb::Trigger>& GetTriggers()
const;
69 const std::vector<raw::ctb::ChStatus>& GetChStatuses()
const;
70 const std::vector<raw::ctb::Feedback>& GetFeedbacks()
const;
71 const std::vector<raw::ctb::Misc>& GetMiscs()
const;
72 const std::vector<raw::ctb::WordIndex>& GetIndexes()
const;
74 const std::vector<raw::ctb::Trigger> GetHLTriggers()
const;
75 const std::vector<raw::ctb::Trigger> GetLLTriggers()
const;
76 const std::vector<raw::ctb::ChStatus> GetChStatusAfterHLTs()
const;
78 size_t GetNTriggers()
const;
79 size_t GetNChStatuses()
const;
80 size_t GetNFeedbacks()
const;
81 size_t GetNMiscs()
const;
82 size_t GetNIndexes()
const;
114 std::vector<raw::ctb::Trigger> HLTriggers;
115 for (
size_t i=0; i<fTriggers.size(); ++i)
117 if (fTriggers.at(i).word_type == 2)
119 HLTriggers.push_back(fTriggers.at(i));
129 std::vector<raw::ctb::ChStatus> chs;
138 for (
size_t i=0; i<fTriggers.size(); ++i)
140 if (fTriggers.at(i).word_type == 2)
144 for (
size_t j=0; j<fIndexes.size(); ++j)
146 if (fIndexes.at(j).word_type == 2 && fIndexes.at(j).index == i)
148 size_t kstatindex = j;
152 if (fIndexes.at(kstatindex).word_type == 3)
154 size_t kstat = fIndexes.at(kstatindex).index;
156 if (kstat < fChStatuses.size())
158 chs.push_back(fChStatuses.at(kstat));
162 chs.push_back(emptychstat);
167 chs.push_back(emptychstat);
172 chs.push_back(emptychstat);
183 std::vector<raw::ctb::Trigger> LLTriggers;
184 for (
size_t i=0; i<fTriggers.size(); ++i)
186 if (fTriggers.at(i).word_type == 1)
188 LLTriggers.push_back(fTriggers.at(i));
size_t GetNFeedbacks() const
const std::vector< raw::ctb::Trigger > & GetTriggers() const
std::vector< raw::ctb::ChStatus > fChStatuses
const std::vector< raw::ctb::ChStatus > GetChStatusAfterHLTs() const
const raw::ctb::Misc & GetMisc(size_t i) const
std::vector< raw::ctb::Trigger > fTriggers
pdspctb(std::vector< raw::ctb::Trigger > &trigs, std::vector< raw::ctb::ChStatus > &chstats, std::vector< raw::ctb::Feedback > &fbs, std::vector< raw::ctb::Misc > &m, std::vector< raw::ctb::WordIndex > &wordindexes)
const raw::ctb::ChStatus & GetChStatuse(size_t i) const
const std::vector< raw::ctb::WordIndex > & GetIndexes() const
const std::vector< raw::ctb::Trigger > GetLLTriggers() const
size_t GetNChStatuses() const
const std::vector< raw::ctb::Feedback > & GetFeedbacks() const
const raw::ctb::Feedback & GetFeedback(size_t i) const
std::vector< raw::ctb::WordIndex > fIndexes
const std::vector< raw::ctb::ChStatus > & GetChStatuses() const
const std::vector< raw::ctb::Misc > & GetMiscs() const
std::vector< raw::ctb::Misc > fMiscs
size_t GetNIndexes() const
const raw::ctb::WordIndex & GetIndex(size_t i) const
size_t GetNTriggers() const
const raw::ctb::Trigger & GetTrigger(size_t i) const
const std::vector< raw::ctb::Trigger > GetHLTriggers() const
std::vector< raw::ctb::Feedback > fFeedbacks