Skip to content
Snippets Groups Projects

Muon reading

Merged Sergei Popov requested to merge muon_reading into master
3 unresolved threads

Reading common_muon_hits from binary files.

Closes #14 (closed)

Edited by Dorothea Vom Bruch

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
1 #pragma once
2 namespace Muon {
3 namespace Constants {
4 /* Detector description
5 There are four stations with number of regions in it
6 in current implementation regions are ignored
7 */
8 static constexpr uint n_stations = 4;
9 /* Cut-offs */
10 static constexpr uint max_numhits_per_event = 10000;
  • 204 206 } else {
    205 207 event_reader = std::make_unique<EventReader>(FolderMap{{{BankTypes::VP, folder_name_velopix_raw},
    206 208 {BankTypes::UT, folder_name_UT_raw},
    207 {BankTypes::FT, folder_name_SciFi_raw}}});
    209 {BankTypes::FT, folder_name_SciFi_raw},
    210 {BankTypes::MUON, folder_name_Muon_raw}}});
  • 214 217 const auto scifi_geometry = geometry_reader.read_geometry("scifi_geometry.bin");
    215 218 event_reader->read_events(number_of_events_requested, start_event_offset);
    216 219
    220 std::vector<Muon::HitsSoA> muon_hits_events(number_of_events_requested);
    221 read_muon_events_into_arrays(
    222 muon_hits_events.data(),
    223 event_reader->events(BankTypes::MUON).begin(),
  • This should only work for the data in /afs/cern.ch/work/d/dovombru/public/gpu_input/1kevents_minbias_muonHits/muon_common_hits. By the way, with the latest version of the master branch you should use /afs/cern.ch/work/d/dovombru/public/gpu_input/1kevents_minbias_dump_phi_nPV as input because the MC_info format changed.

    The raw banks can not be read in the same way as you read in the muon common hits because they have a completely different format. The uint32 words should however not only contain zeros. This is something to be followed up. But for now, the important step is to read in the muon common hits, not the raw banks.

  • Sergei Popov added 3 commits

    added 3 commits

    Compare with previous version

  • Author Contributor

    I have filled ../input/minbias/muon_common_hits folder with 10 events from /afs/cern.ch/work/d/dovombru/public/gpu_input/1kevents_minbias_dump_phi_nPV

  • Sergei Popov changed the description

    changed the description

  • Great, thanks for adding the events! I only see 9 events in ../input/minbias/muon_common_hits though, please add the 10th one as well.

  • Sergei Popov added 4 commits

    added 4 commits

    Compare with previous version

  • Author Contributor

    I have added 10th event.

  • Dorothea Vom Bruch changed the description

    changed the description

  • Please register or sign in to reply
    Loading