Skip to content

Commit

Permalink
Loosen so we can reach other layers
Browse files Browse the repository at this point in the history
  • Loading branch information
tvami committed Aug 29, 2024
1 parent a718692 commit 1fef2d9
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions Ecal/src/Ecal/EcalVetoProcessor.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -990,9 +990,6 @@ void EcalVetoProcessor::produce(framework::Event &event) {
ldmx_log(debug) << "Finding linreg tracks from " << trackingHitList.size()
<< " hits";

std::cout << "Finding linreg tracks from " << trackingHitList.size()
<< " hits" << std::endl;

for (int iHit = 0; iHit < trackingHitList.size(); iHit++) {
int track[34];
int trackLen;
Expand Down Expand Up @@ -1020,7 +1017,8 @@ void EcalVetoProcessor::produce(framework::Event &event) {
continue;
float dstToHit =
(trackingHitList[iHit].pos - trackingHitList[jHit].pos).Mag();
if (dstToHit <= 2 * cellWidth) {
// TODO
if (dstToHit <= 20) {
hitsInRegion[nHitsInRegion] = jHit;
nHitsInRegion++;
}
Expand Down Expand Up @@ -1104,7 +1102,6 @@ void EcalVetoProcessor::produce(framework::Event &event) {
} // end 2nd loop on hits in the region

if (trackLen == 0) continue;
std::cout << " trackLen " << trackLen << std::endl;

// Ordinarily, additional hits in line w/ track would be added here.
// However, this doesn't affect the results of the simple veto. Exclude all
Expand All @@ -1122,10 +1119,6 @@ void EcalVetoProcessor::produce(framework::Event &event) {
<< " straight tracks and " << nLinregTracks_
<< " lin-reg tracks";

std::cout << " MIP tracking completed; found " << nStraightTracks_
<< " straight tracks and " << nLinregTracks_ << " lin-reg tracks"
<< std::endl;

result.setVariables(
nReadoutHits_, deepestLayerHit_, summedDet_, summedTightIso_, maxCellDep_,
showerRMS_, xStd_, yStd_, avgLayerHit_, stdLayerHit_, ecalBackEnergy_,
Expand Down

0 comments on commit 1fef2d9

Please sign in to comment.