Skip to content

Commit

Permalink
Merge branch 'main' into pr/BTOF-digitization-clusterization
Browse files Browse the repository at this point in the history
  • Loading branch information
veprbl authored Nov 5, 2024
2 parents fa7ad55 + 10184fa commit 5f092d4
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 20 deletions.
9 changes: 9 additions & 0 deletions src/algorithms/tracking/CKFTracking.cc
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,15 @@ namespace eicrecon {

std::optional<unsigned int> lastSeed;
for (const auto& track : constTracks) {
#if Acts_VERSION_MAJOR >= 34
// Some B0 tracks fail to extrapolate to the perigee surface. The
// Acts::extrapolateTrackToReferenceSurface will not set
// referenceSurface in that case, which is what we check here.
if (not track.hasReferenceSurface()) {
m_log->warn("Skipping a track not on perigee surface");
continue;
}
#endif
if (!lastSeed) {
lastSeed = constSeedNumber(track);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ void TofEfficiency_processor::InitWithGlobalRootLock(){
void TofEfficiency_processor::ProcessSequential(const std::shared_ptr<const JEvent>& event) {
const auto &mcParticles = *(event->GetCollection<edm4hep::MCParticle>("MCParticles"));
const auto &trackSegments = *(event->GetCollection<edm4eic::TrackSegment>("CentralTrackSegments"));
const auto &barrelHits = *(event->GetCollection<edm4eic::TrackerHit>("TOFBarrelRecHit"));
const auto &barrelHits = *(event->GetCollection<edm4eic::TrackerHit>("TOFBarrelRecHits"));
const auto &endcapHits = *(event->GetCollection<edm4eic::TrackerHit>("TOFEndcapRecHits"));

// List TOF Barrel hits from barrel
Expand Down
4 changes: 2 additions & 2 deletions src/detectors/BEMC/BEMC.cc
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ extern "C" {
.resolutionTDC = EcalBarrelScFi_resolutionTDC,
.thresholdFactor = 0.0, // use only thresholdValue
.thresholdValue = 5.0, // 16384 ADC counts/1500 MeV * 0.5 MeV (desired threshold) = 5.46
.sampFrac = "0.09320426",
.sampFrac = "0.09285755",
.readout = "EcalBarrelScFiHits",
.layerField = "layer",
.sectorField = "sector",
Expand Down Expand Up @@ -150,7 +150,7 @@ extern "C" {
.resolutionTDC = EcalBarrelImaging_resolutionTDC,
.thresholdFactor = 0.0, // use only thresholdValue
.thresholdValue = 41, // 8192 ADC counts/3 MeV * 0.015 MeV (desired threshold) = 41
.sampFrac = "0.00619766",
.sampFrac = "0.00429453",
.readout = "EcalBarrelImagingHits",
.layerField = "layer",
.sectorField = "sector",
Expand Down
36 changes: 22 additions & 14 deletions src/detectors/BTOF/BTOF.cc
Original file line number Diff line number Diff line change
Expand Up @@ -32,23 +32,31 @@ void InitPlugin(JApplication* app) {

// Digitization
app->Add(new JOmniFactoryGeneratorT<SiliconTrackerDigi_factory>(
"TOFBarrelRawHit", {"TOFBarrelHits"}, {"TOFBarrelRawHit", "TOFBarrelRawHitAssociations"},
"TOFBarrelRawHits",
{
.threshold = 6.0 * dd4hep::keV,
.timeResolution = 0.025, // [ns]
"TOFBarrelHits"
},
app));
{
"TOFBarrelRawHits",
"TOFBarrelRawHitAssociations"
},
{
.threshold = 6.0 * dd4hep::keV,
.timeResolution = 0.025, // [ns]
},
app
));

// Convert raw digitized hits into hits with geometry info (ready for tracking)
app->Add(new JOmniFactoryGeneratorT<TrackerHitReconstruction_factory>(
"TOFBarrelRecHit",
{"TOFBarrelRawHit"}, // Input data collection tags
{"TOFBarrelRecHit"}, // Output data tag
{
.timeResolution = 10,
},
app
)); // Hit reco default config for factories
// Convert raw digitized hits into hits with geometry info (ready for tracking)
app->Add(new JOmniFactoryGeneratorT<TrackerHitReconstruction_factory>(
"TOFBarrelRecHits",
{"TOFBarrelRawHits"}, // Input data collection tags
{"TOFBarrelRecHits"}, // Output data tag
{
.timeResolution = 10,
},
app
)); // Hit reco default config for factories

app->Add(new JOmniFactoryGeneratorT<BTOFChargeSharing_factory>(
"BTOFChargeSharing",
Expand Down
2 changes: 1 addition & 1 deletion src/global/tracking/tracking.cc
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ void InitPlugin(JApplication *app) {
{"SiBarrelHits", "SiBarrelRawHits", "SiBarrelRawHitAssociations", "SiBarrelTrackerRecHits"},
{"VertexBarrelHits", "SiBarrelVertexRawHits", "SiBarrelVertexRawHitAssociations", "SiBarrelVertexRecHits"},
{"TrackerEndcapHits", "SiEndcapTrackerRawHits", "SiEndcapTrackerRawHitAssociations", "SiEndcapTrackerRecHits"},
{"TOFBarrelHits", "TOFBarrelRawHits", "TOFBarrelRawHitAssociations", "TOFBarrelRecHit"},
{"TOFBarrelHits", "TOFBarrelRawHits", "TOFBarrelRawHitAssociations", "TOFBarrelRecHits"},
{"TOFEndcapHits", "TOFEndcapRawHits", "TOFEndcapRawHitAssociations", "TOFEndcapRecHits"},
{"MPGDBarrelHits", "MPGDBarrelRawHits", "MPGDBarrelRawHitAssociations", "MPGDBarrelRecHits"},
{"OuterMPGDBarrelHits", "OuterMPGDBarrelRawHits", "OuterMPGDBarrelRawHitAssociations", "OuterMPGDBarrelRecHits"},
Expand Down
4 changes: 2 additions & 2 deletions src/services/io/podio/JEventProcessorPODIO.cc
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,10 @@ JEventProcessorPODIO::JEventProcessorPODIO() {
"SiEndcapTrackerRawHitAssociations",

// TOF
"TOFBarrelRecHit",
"TOFBarrelRecHits",
"TOFEndcapRecHits",

"TOFBarrelRawHit",
"TOFBarrelRawHits",
"TOFEndcapRawHits",

"TOFBarrelHits",
Expand Down

0 comments on commit 5f092d4

Please sign in to comment.