Definition at line 32 of file BernCRTAna_module.cc.
sbndaq::BernCRTAna::BernCRTAna |
( |
fhicl::ParameterSet const & |
pset | ) |
|
|
explicit |
Definition at line 76 of file BernCRTAna_module.cc.
80 art::ServiceHandle<art::TFileService>
tfs;
82 hits = tfs->make<TTree>(
"hits",
"FEB hits");
84 hits->Branch(
"mac5", &
mac5,
"mac5/b");
88 hits->Branch(
"ts0", &
ts0,
"ts0/i");
89 hits->Branch(
"ts1", &
ts1,
"ts1/i");
90 hits->Branch(
"adc", &
adc,
"adc[32]/s");
int32_t system_clock_deviation
uint32_t feb_hits_in_poll
uint16_t hits_in_fragment
uint64_t fragment_timestamp
art::ServiceHandle< art::TFileService > tfs
uint64_t last_accepted_timestamp
sbndaq::BernCRTAna::~BernCRTAna |
( |
| ) |
|
|
virtual |
void sbndaq::BernCRTAna::analyze |
( |
art::Event const & |
evt | ) |
|
|
virtual |
Definition at line 129 of file BernCRTAna_module.cc.
132 std::vector<icarus::crt::BernCRTTranslator> hit_vector;
134 auto fragmentHandles =
evt.getMany<artdaq::Fragments>();
135 for (
auto handle : fragmentHandles) {
136 if (!handle.isValid() || handle->size() == 0)
139 auto this_hit_vector = icarus::crt::BernCRTTranslator::getCRTData(*handle);
141 hit_vector.insert(hit_vector.end(),this_hit_vector.begin(),this_hit_vector.end());
145 for(
auto &
hit : hit_vector) {
168 for(
int ch=0; ch<32; ch++)
adc[ch] =
hit.adc[ch];
int32_t system_clock_deviation
uint32_t feb_hits_in_poll
bool IsTopCRT(icarus::crt::BernCRTTranslator &hit)
uint16_t hits_in_fragment
uint64_t fragment_timestamp
bool IsSideCRT(icarus::crt::BernCRTTranslator &hit)
uint64_t last_accepted_timestamp
bool sbndaq::BernCRTAna::IsSideCRT |
( |
icarus::crt::BernCRTTranslator & |
hit | ) |
|
|
private |
- Fragment ID described in SBN doc 16111
Definition at line 112 of file BernCRTAna_module.cc.
116 return (
hit.fragment_ID & 0x3100) == 0x3100;
bool sbndaq::BernCRTAna::IsTopCRT |
( |
icarus::crt::BernCRTTranslator & |
hit | ) |
|
|
private |
- * Fragment ID described in SBN doc 16111
Definition at line 118 of file BernCRTAna_module.cc.
122 return (
hit.fragment_ID & 0x3200) == 0x3200;
uint16_t sbndaq::BernCRTAna::adc[32] |
|
private |
uint32_t sbndaq::BernCRTAna::coinc |
|
private |
uint32_t sbndaq::BernCRTAna::feb_hit_number |
|
private |
uint32_t sbndaq::BernCRTAna::feb_hits_in_poll |
|
private |
uint16_t sbndaq::BernCRTAna::flags |
|
private |
uint64_t sbndaq::BernCRTAna::fragment_timestamp |
|
private |
TTree* sbndaq::BernCRTAna::hits |
|
private |
uint16_t sbndaq::BernCRTAna::hits_in_fragment |
|
private |
uint64_t sbndaq::BernCRTAna::last_accepted_timestamp |
|
private |
uint64_t sbndaq::BernCRTAna::last_poll_end |
|
private |
uint64_t sbndaq::BernCRTAna::last_poll_start |
|
private |
uint16_t sbndaq::BernCRTAna::lost_hits |
|
private |
uint16_t sbndaq::BernCRTAna::lostcpu |
|
private |
uint16_t sbndaq::BernCRTAna::lostfpga |
|
private |
uint8_t sbndaq::BernCRTAna::mac5 |
|
private |
uint64_t sbndaq::BernCRTAna::run_start_time |
|
private |
uint32_t sbndaq::BernCRTAna::sequence_id |
|
private |
int sbndaq::BernCRTAna::subSys |
|
private |
int32_t sbndaq::BernCRTAna::system_clock_deviation |
|
private |
uint64_t sbndaq::BernCRTAna::this_poll_end |
|
private |
uint64_t sbndaq::BernCRTAna::this_poll_start |
|
private |
uint32_t sbndaq::BernCRTAna::ts0 |
|
private |
uint32_t sbndaq::BernCRTAna::ts1 |
|
private |
The documentation for this class was generated from the following file: