Skip to content

Commit

Permalink
Apply clang format
Browse files Browse the repository at this point in the history
  • Loading branch information
tvami committed Aug 9, 2024
1 parent 75af59d commit ec25669
Show file tree
Hide file tree
Showing 6 changed files with 129 additions and 106 deletions.
8 changes: 4 additions & 4 deletions DQM/src/DQM/EcalMipTrackingFeatures.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ void EcalMipTrackingFeatures::configure(framework::config::Parameters &ps) {
}

void EcalMipTrackingFeatures::analyze(const framework::Event &event) {
auto veto{event.getObject<ldmx::EcalVetoResult>(ecal_veto_name_,
ecal_veto_pass_)};
auto veto{
event.getObject<ldmx::EcalVetoResult>(ecal_veto_name_, ecal_veto_pass_)};

histograms_.fill("n_straight_tracks", veto.getNStraightTracks());
histograms_.fill("n_linreg_tracks", veto.getNLinRegTracks());
Expand All @@ -23,11 +23,11 @@ void EcalMipTrackingFeatures::analyze(const framework::Event &event) {
histograms_.fill("ep_sep", veto.getEPSep());
auto recoil_mom = veto.getRecoilMomentum();
histograms_.fill("recoil_pz", recoil_mom[2]);
histograms_.fill("recoil_pt", std::sqrt(recoil_mom[0] * recoil_mom[0] + recoil_mom[1] * recoil_mom[1]));
histograms_.fill("recoil_pt", std::sqrt(recoil_mom[0] * recoil_mom[0] +
recoil_mom[1] * recoil_mom[1]));
histograms_.fill("recoil_x", veto.getRecoilX());
histograms_.fill("recoil_y", veto.getRecoilY());


return;
}

Expand Down
2 changes: 1 addition & 1 deletion DQM/src/DQM/EcalShowerFeatures.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ void EcalShowerFeatures::analyze(const framework::Event &event) {
for (const auto &energy : veto.getOutsideContainmentEnergy()) {
histograms_.fill("out_containment_energy", energy);
}

return;
}

Expand Down
6 changes: 4 additions & 2 deletions Ecal/include/Ecal/EcalVetoProcessor.h
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,11 @@ class EcalVetoProcessor : public framework::Producer {
int firstNearPhLayer_{0};
/// Number of hits near the photon trajectory
int nNearPhHits_{0};
/// Angular separation between the projected photon and electron trajectories (currently unused)
/// Angular separation between the projected photon and electron trajectories
/// (currently unused)
float epAng_{0};
/// Distance between the projected photon and electron trajectories at the ECal face
/// Distance between the projected photon and electron trajectories at the
/// ECal face
float epSep_{0};
/// Dot product of the photon and electron momenta unit vectors
float epDot_{0};
Expand Down
28 changes: 15 additions & 13 deletions Ecal/include/Ecal/Event/EcalVetoResult.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@ class EcalVetoResult {
float summedTightIso, float maxCellDep, float showerRMS,
float xStd, float yStd, float avgLayerHit,
float stdLayerHit, float ecalBackEnergy,
int nStraightTracks, int nLinregTracks, int firstNearPhLayer, int nNearPhHits,
int photonTerritoryHits, float epAng, float epSep, float epDot,
int nStraightTracks, int nLinregTracks,
int firstNearPhLayer, int nNearPhHits,
int photonTerritoryHits, float epAng, float epSep,
float epDot,

std::vector<float> electronContainmentEnergy,
std::vector<float> photonContainmentEnergy,
Expand All @@ -46,23 +48,20 @@ class EcalVetoResult {
std::vector<float> outsideContainmentXStd,
std::vector<float> outsideContainmentYStd,

std::vector<float> energySeg,
std::vector<float> xMeanSeg,
std::vector<float> yMeanSeg,
std::vector<float> xStdSeg,
std::vector<float> yStdSeg,
std::vector<float> layerMeanSeg,
std::vector<float> energySeg, std::vector<float> xMeanSeg,
std::vector<float> yMeanSeg, std::vector<float> xStdSeg,
std::vector<float> yStdSeg, std::vector<float> layerMeanSeg,
std::vector<float> layerStdSeg,

std::vector<std::vector<float>> eContEnergy,
std::vector<std::vector<float>> eContXMean,
std::vector<std::vector<float>> eContYMean,
std::vector<std::vector<float>> gContEnergy,
std::vector<std::vector<int>> gContNHits,
std::vector<std::vector<int>> gContNHits,
std::vector<std::vector<float>> gContXMean,
std::vector<std::vector<float>> gContYMean,
std::vector<std::vector<float>> oContEnergy,
std::vector<std::vector<int>> oContNHits,
std::vector<std::vector<int>> oContNHits,
std::vector<std::vector<float>> oContXMean,
std::vector<std::vector<float>> oContYMean,
std::vector<std::vector<float>> oContXStd,
Expand Down Expand Up @@ -255,15 +254,18 @@ class EcalVetoResult {
int nStraightTracks_{0};
/// Number of "linreg" tracks found in the event
int nLinregTracks_{0};
/// Earliest ECal layer in which a hit is found near the projected photon trajectory
/// Earliest ECal layer in which a hit is found near the projected photon
/// trajectory
int firstNearPhLayer_{0};
/// Number of hits near the photon trajectory
int nNearPhHits_{0};
/// Number of hits in the photon territory
int photonTerritoryHits_{0};
/// Angular separation between the projected photon and electron trajectories (currently unused)
/// Angular separation between the projected photon and electron trajectories
/// (currently unused)
float epAng_{0};
/// Distance between the projected photon and electron trajectories at the ECal face
/// Distance between the projected photon and electron trajectories at the
/// ECal face
float epSep_{0};
/// Dot product of the photon and electron momenta unit vectors
float epDot_{0};
Expand Down
Loading

0 comments on commit ec25669

Please sign in to comment.