Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
kjvbrt committed Feb 28, 2024
1 parent 4e10ef6 commit 6bc8a07
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 10 deletions.
12 changes: 8 additions & 4 deletions analyzers/dataframe/FCCAnalyses/CaloNtupleizer.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,16 @@ ROOT::VecOps::RVec<float> getCaloHit_x (const ROOT::VecOps::RVec<edm4hep::Calori
ROOT::VecOps::RVec<float> getCaloHit_y (const ROOT::VecOps::RVec<edm4hep::CalorimeterHitData>& in);
ROOT::VecOps::RVec<float> getCaloHit_z (const ROOT::VecOps::RVec<edm4hep::CalorimeterHitData>& in);
ROOT::VecOps::RVec<float> getCaloHit_phi (const ROOT::VecOps::RVec<edm4hep::CalorimeterHitData>& in);
ROOT::VecOps::RVec<int> getCaloHit_phiIdx (const ROOT::VecOps::RVec<edm4hep::CalorimeterHitData>& in);
ROOT::VecOps::RVec<int> getCaloHit_moduleIdx (const ROOT::VecOps::RVec<edm4hep::CalorimeterHitData>& in);
ROOT::VecOps::RVec<int>
getCaloHit_phiIdx(const ROOT::VecOps::RVec<edm4hep::CalorimeterHitData> &in);
ROOT::VecOps::RVec<int>
getCaloHit_moduleIdx(const ROOT::VecOps::RVec<edm4hep::CalorimeterHitData> &in);
ROOT::VecOps::RVec<float> getCaloHit_theta (const ROOT::VecOps::RVec<edm4hep::CalorimeterHitData>& in);
ROOT::VecOps::RVec<int> getCaloHit_thetaIdx (const ROOT::VecOps::RVec<edm4hep::CalorimeterHitData>& in);
ROOT::VecOps::RVec<int>
getCaloHit_thetaIdx(const ROOT::VecOps::RVec<edm4hep::CalorimeterHitData> &in);
ROOT::VecOps::RVec<float> getCaloHit_eta (const ROOT::VecOps::RVec<edm4hep::CalorimeterHitData>& in);
ROOT::VecOps::RVec<int> getCaloHit_etaIdx (const ROOT::VecOps::RVec<edm4hep::CalorimeterHitData>& in);
ROOT::VecOps::RVec<int>
getCaloHit_etaIdx(const ROOT::VecOps::RVec<edm4hep::CalorimeterHitData> &in);
ROOT::VecOps::RVec<int> getCaloHit_layer (const ROOT::VecOps::RVec<edm4hep::CalorimeterHitData>& in);
ROOT::VecOps::RVec<float> getCaloHit_energy (const ROOT::VecOps::RVec<edm4hep::CalorimeterHitData>& in);
ROOT::VecOps::RVec<TVector3> getCaloHit_positionVector3 (const ROOT::VecOps::RVec<edm4hep::CalorimeterHitData>& in);
Expand Down
16 changes: 10 additions & 6 deletions analyzers/dataframe/src/CaloNtupleizer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@ ROOT::VecOps::RVec<float> getCaloHit_phi (const ROOT::VecOps::RVec<edm4hep::Calo
return result;
}

ROOT::VecOps::RVec<int> getCaloHit_phiIdx (const ROOT::VecOps::RVec<edm4hep::CalorimeterHitData>& in){
ROOT::VecOps::RVec<int>
getCaloHit_phiIdx(const ROOT::VecOps::RVec<edm4hep::CalorimeterHitData> &in) {
ROOT::VecOps::RVec<int> result;
for (auto & p: in){
dd4hep::DDSegmentation::CellID cellId = p.cellID;
Expand All @@ -174,18 +175,20 @@ ROOT::VecOps::RVec<int> getCaloHit_phiIdx (const ROOT::VecOps::RVec<edm4hep::Cal
return result;
}

ROOT::VecOps::RVec<int> getCaloHit_moduleIdx (const ROOT::VecOps::RVec<edm4hep::CalorimeterHitData>& in){
ROOT::VecOps::RVec<int> getCaloHit_moduleIdx(
const ROOT::VecOps::RVec<edm4hep::CalorimeterHitData> &in) {
ROOT::VecOps::RVec<int> result;
for (auto & p: in){
for (auto &p : in) {
dd4hep::DDSegmentation::CellID cellId = p.cellID;
result.push_back(m_decoder->get(cellId, "module"));
}
return result;
}

ROOT::VecOps::RVec<int> getCaloHit_thetaIdx (const ROOT::VecOps::RVec<edm4hep::CalorimeterHitData>& in){
ROOT::VecOps::RVec<int>
getCaloHit_thetaIdx(const ROOT::VecOps::RVec<edm4hep::CalorimeterHitData> &in) {
ROOT::VecOps::RVec<int> result;
for (auto & p: in){
for (auto &p : in) {
dd4hep::DDSegmentation::CellID cellId = p.cellID;
result.push_back(m_decoder->get(cellId, "theta"));
}
Expand All @@ -212,7 +215,8 @@ ROOT::VecOps::RVec<float> getCaloHit_eta (const ROOT::VecOps::RVec<edm4hep::Calo
return result;
}

ROOT::VecOps::RVec<int> getCaloHit_etaIdx (const ROOT::VecOps::RVec<edm4hep::CalorimeterHitData>& in){
ROOT::VecOps::RVec<int>
getCaloHit_etaIdx(const ROOT::VecOps::RVec<edm4hep::CalorimeterHitData> &in) {
ROOT::VecOps::RVec<int> result;
for (auto & p: in){
dd4hep::DDSegmentation::CellID cellId = p.cellID;
Expand Down

0 comments on commit 6bc8a07

Please sign in to comment.