Skip to content

Commit 57a95e1

Browse files
committed
Unnecessary
1 parent d9f4be2 commit 57a95e1

1 file changed

Lines changed: 1 addition & 13 deletions

File tree

sbndcode/CRT/CRTReco/CRTStripHitProducer_module.cc

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ class sbnd::crt::CRTStripHitProducer : public art::EDProducer {
5353
std::set<uint32_t> UnixSet(const std::vector<art::Ptr<FEBData>> &datas);
5454
bool SPECTDCReference(art::Event& e, const uint64_t &raw_ts, uint64_t &ref_time);
5555
bool PTBHLTReference(art::Event& e, const uint64_t &raw_ts, uint64_t &ref_time, uint32_t &hlt_code);
56-
std::bitset<32> TriggerWordBitset(uint32_t trig_word);
5756

5857
private:
5958

@@ -355,7 +354,7 @@ bool sbnd::crt::CRTStripHitProducer::PTBHLTReference(art::Event& e, const uint64
355354
for(auto hlt : ptb->GetHLTriggers())
356355
{
357356
uint64_t hlt_timestamp = (hlt.timestamp * 20);
358-
std::bitset<32> hlt_word_bitset = TriggerWordBitset(hlt.trigger_word);
357+
std::bitset<32> hlt_word_bitset = std::bitset<32>(hlt.trigger_word);
359358

360359
for(uint32_t allowed_hlt : fAllowedPTBHLTs)
361360
{
@@ -383,15 +382,4 @@ bool sbnd::crt::CRTStripHitProducer::PTBHLTReference(art::Event& e, const uint64
383382
return found;
384383
}
385384

386-
std::bitset<32> sbnd::crt::CRTStripHitProducer::TriggerWordBitset(uint32_t trig_word)
387-
{
388-
uint32_t trig_word_dec;
389-
std::stringstream ss;
390-
391-
ss << std::hex << trig_word << std::dec;
392-
ss >> trig_word_dec;
393-
394-
return std::bitset<32>(trig_word_dec);
395-
}
396-
397385
DEFINE_ART_MODULE(sbnd::crt::CRTStripHitProducer)

0 commit comments

Comments
 (0)