Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
e1004bc
remove unused stuff
Aug 22, 2023
f80407b
add detectorChanged method (and remove unused imports)
Aug 22, 2023
515af5a
fix formatting
Aug 22, 2023
ce3487c
implement all detectorChanged hooks (and cleanup/formatting)
Aug 22, 2023
c1623d1
synchronize and count changes
Aug 22, 2023
9532edb
allow nulls
Aug 22, 2023
584b069
add empty list check
Aug 22, 2023
da52eef
cleanup/formatting
Aug 22, 2023
d4b242a
use the same wrapper used in clara/recon-util
Aug 22, 2023
84e585c
hardcode it to 11 for now
Aug 22, 2023
0977c7a
implement detectorChanged for cvt
Aug 22, 2023
c71ddc9
implement detector changed for dc
Aug 22, 2023
80c05b8
use the same wrapper used in clara/recon-util
Aug 22, 2023
360d5ee
fix logic oops
Aug 22, 2023
5b2c480
rename processDataEvent/processEvent
Aug 28, 2023
60e4f59
make MLTDEngine respect run number like everyone else, unless overrid…
Sep 19, 2023
c560cde
add newly-required methods
Sep 19, 2023
fc16710
restore initialization
Sep 19, 2023
e035b76
allow run number override from YAML
Oct 17, 2023
3b92271
add missing overrides
baltzell Oct 18, 2024
d11ba82
remove mc/data check
baltzell Oct 18, 2024
fdb9e47
test against gemc/dev
baltzell Nov 7, 2024
a6ca471
fix overrides (maintainence of never-ending PR)
baltzell Jan 3, 2025
3b78945
processDataEvent should be final
baltzell Jan 3, 2025
4cbc56a
cleanup script
baltzell Jan 3, 2025
1c4c19e
remove unused/unnecessary script
baltzell Jan 3, 2025
c16423a
disable workflow for now
baltzell Jan 3, 2025
ff42f33
accounting for tstart, tflight and tprop in MC tracks reconstruction
raffaelladevita Jan 3, 2025
9f3225f
removed check on run number when setting the DC hit uncertainty
raffaelladevita Jan 15, 2025
cdabbb3
Merge branch 'iss59-detChangedHook-redux' into iss59-detChangedHook-r…
raffaelladevita Jan 15, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -497,11 +497,6 @@ private void read_HBHits(TimeToDistanceEstimator tde) {
tFlight[i] = this.id2tidtFlight.get(id[i]);
}

if (event.hasBank("MC::Particle") ||
event.getBank("RUN::config").getInt("run", 0) < 100) {
tProp[i] = 0;
tFlight[i] = 0;
}
}

int size = layer.length;
Expand All @@ -524,12 +519,8 @@ private void read_HBHits(TimeToDistanceEstimator tde) {
continue;
}

if (!event.hasBank("MC::Particle") &&
event.getBank("RUN::config").getInt("run", 0) > 100) {
//T_0 = this.getT0(sector[i], slayer[i], layer[i], wire[i], T0, T0ERR)[0];
if (event.hasBank(recBankName))
if (event.hasBank(recBankName))
T_Start = event.getBank(recBankName).getFloat("startTime", 0);
}

T_0 = this.getT0(sector[i], slayer[i], layer[i], wire[i], t0s)[0];
FittedHit hit = new FittedHit(sector[i], slayer[i], layer[i], wire[i], tdc[i], jitter[i], id[i]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ private DataBank fillTBHitsBank(DataEvent event, List<FittedHit> hitlist) {
if(bank.getDescriptor().hasEntry("beta")){
bank.setFloat("beta", i, (float) hitlist.get(i).get_Beta());
}
if(hitlist.get(i).get_AssociatedTBTrackID()>-1 && !event.hasBank("MC::Particle")) {
if(hitlist.get(i).get_AssociatedTBTrackID()>-1) {
if(hitlist.get(i).getSignalPropagTimeAlongWire()==0 || hitlist.get(i).get_AssociatedTBTrackID()<1) {
bank.setFloat("TProp", i, (float) hitlist.get(i).getTProp()); //old value if track fit failed
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,7 @@ public double get_PosErr(DataEvent event, double B, IndexedTable constants0, Ind
}

double x = this.get_Doca() / this.get_CellSize();
if(event.hasBank("MC::Particle") ||
event.getBank("RUN::config").getInt("run", 0) < 100 ) { // for MC use functional form put in simulation
if(event.hasBank("MC::Particle")) { // for MC use functional form put in simulation

double p1 = constants0.getDoubleValue("parameter1", this.get_Sector(),this.get_Superlayer(),0);
double p2 = constants0.getDoubleValue("parameter2", this.get_Sector(),this.get_Superlayer(),0);
Expand Down
Loading