Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce epdot in EcalVeto #1432

Merged
merged 2 commits into from
Sep 4, 2024
Merged
Changes from all commits
Commits
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
7 changes: 4 additions & 3 deletions Ecal/src/Ecal/EcalVetoProcessor.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -744,6 +744,7 @@ void EcalVetoProcessor::produce(framework::Event &event) {
TVector3 e_norm = evec.Unit();
TVector3 pvec = p_traj_end - p_traj_start;
TVector3 p_norm = pvec.Unit();
epDot_ = e_norm.Dot(p_norm);
epAng_ = acos(epDot_) * 180.0 / M_PI;
epSep_ = sqrt(pow(e_traj_start.X() - p_traj_start.X(), 2) +
pow(e_traj_start.Y() - p_traj_start.Y(), 2));
Expand All @@ -758,9 +759,9 @@ void EcalVetoProcessor::produce(framework::Event &event) {
p_traj_end = TVector3(
1000, 1000, geometry_->getZPosition((nEcalLayers_ - 1))); // 1000);
/*ensures event will not be vetoed by angle/separation cut */
epAng_ = 3.0 + 1.0;
epSep_ = 10.0 + 1.0;
epDot_ = 1.0; // default to 1.0 (?)
epAng_ = 999.;
epSep_ = 999.;
epDot_ = 999.;
}

// Near photon step: Find the first layer of the ECal where a hit near the
Expand Down