Skip to content

Commit

Permalink
fix o2-linter
Browse files Browse the repository at this point in the history
  • Loading branch information
hanseopark committed Jan 10, 2025
1 parent 8c3ba2a commit ce5e4ae
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion PWGJE/TableProducer/heavyFlavourDefinition.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -108,5 +108,5 @@ using JetHfDefinitionCharged = HeavyFlavourDefinitionTask<soa::Join<aod::Charged
WorkflowSpec defineDataProcessing(ConfigContext const& cfgc)
{
return WorkflowSpec{
adaptAnalysisTask<JetHfDefinitionCharged>(cfgc, TaskName{"jet-hf-definition-charged"})};
adaptAnalysisTask<JetHfDefinitionCharged>(cfgc, TaskName{"jet-hf-definition-charged"})}; // o2-linter: disable=name/o2-task
}
4 changes: 2 additions & 2 deletions PWGJE/TableProducer/jetTaggerHF.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,6 @@ WorkflowSpec defineDataProcessing(ConfigContext const& cfgc)
{

return WorkflowSpec{
adaptAnalysisTask<JetTaggerhfDataCharged>(cfgc, SetDefaultProcesses{}, TaskName{"jet-taggerhf-data-charged"}),
adaptAnalysisTask<JetTaggerhfMCDCharged>(cfgc, SetDefaultProcesses{}, TaskName{"jet-taggerhf-mcd-charged"})};
adaptAnalysisTask<JetTaggerhfDataCharged>(cfgc, SetDefaultProcesses{}, TaskName{"jet-taggerhf-data-charged"}), // o2-linter: disable=name/o2-task
adaptAnalysisTask<JetTaggerhfMCDCharged>(cfgc, SetDefaultProcesses{}, TaskName{"jet-taggerhf-mcd-charged"})}; // o2-linter: disable=name/o2-task
}
30 changes: 15 additions & 15 deletions PWGJE/TableProducer/secondaryVertexReconstruction.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.

// Task to produce a SV indices table joinable to the jet tables and 3/2-prong SV for hf jet tagging
//
/// \file secondaryVertexReconstruction.cxx
/// \brief Task to produce a SV indices table joinable to the jet tables and 3/2-prong SV for hf jet tagging
/// \author Hadi Hassan <[email protected]>

#include <type_traits>
Expand Down Expand Up @@ -272,12 +272,12 @@ struct SecondaryVertexReconstruction {

// fill histograms
if (fillHistograms) {
double DecayLengthNormalised = RecoDecay::distance(std::array{primaryVertex.getX(), primaryVertex.getY(), primaryVertex.getZ()}, std::array{secondaryVertex[0], secondaryVertex[1], secondaryVertex[2]}) / errorDecayLength;
double DecayLengthXYNormalised = RecoDecay::distanceXY(std::array{primaryVertex.getX(), primaryVertex.getY()}, std::array{secondaryVertex[0], secondaryVertex[1]}) / errorDecayLengthXY;
double decayLengthNormalised = RecoDecay::distance(std::array{primaryVertex.getX(), primaryVertex.getY(), primaryVertex.getZ()}, std::array{secondaryVertex[0], secondaryVertex[1], secondaryVertex[2]}) / errorDecayLength;
double decayLengthXYNormalised = RecoDecay::distanceXY(std::array{primaryVertex.getX(), primaryVertex.getY()}, std::array{secondaryVertex[0], secondaryVertex[1]}) / errorDecayLengthXY;

registry.fill(HIST("hMassNProngs"), massSV, numProngs);
registry.fill(HIST("hLxySNProngs"), DecayLengthXYNormalised, numProngs);
registry.fill(HIST("hLSNProngs"), DecayLengthNormalised, numProngs);
registry.fill(HIST("hLxySNProngs"), decayLengthXYNormalised, numProngs);
registry.fill(HIST("hLSNProngs"), decayLengthNormalised, numProngs);
registry.fill(HIST("hFeNProngs"), energySV / analysisJet.energy() > 1. ? 0.99 : energySV / analysisJet.energy(), numProngs);
}

Expand Down Expand Up @@ -306,7 +306,7 @@ struct SecondaryVertexReconstruction {

void processData3Prongs(JetCollisionwPIs::iterator const& collision, aod::Collisions const& /*realColl*/, soa::Join<aod::ChargedJets, aod::ChargedJetConstituents> const& jets, JetTracksData const& tracks, OriginalTracks const& /*tracks*/, aod::BCsWithTimestamps const& /*bcWithTimeStamps*/)
{
for (auto& jet : jets) {
for (const auto& jet : jets) {
std::vector<int> svIndices;
runCreatorNProng<3, false>(collision.template collision_as<aod::Collisions>(), jet, tracks, svIndices, df3);
sv3prongIndicesTableData(svIndices);
Expand All @@ -316,7 +316,7 @@ struct SecondaryVertexReconstruction {

void processData3ProngsExternalMagneticField(JetCollisionwPIs::iterator const& collision, aod::Collisions const& /*realColl*/, soa::Join<aod::ChargedJets, aod::ChargedJetConstituents> const& jets, JetTracksData const& tracks, OriginalTracks const& /*tracks*/)
{
for (auto& jet : jets) {
for (const auto& jet : jets) {
std::vector<int> svIndices;
runCreatorNProng<3, true>(collision.template collision_as<aod::Collisions>(), jet, tracks, svIndices, df3);
sv3prongIndicesTableData(svIndices);
Expand All @@ -326,7 +326,7 @@ struct SecondaryVertexReconstruction {

void processData2Prongs(JetCollisionwPIs::iterator const& collision, aod::Collisions const& /*realColl*/, soa::Join<aod::ChargedJets, aod::ChargedJetConstituents> const& jets, JetTracksData const& tracks, OriginalTracks const& /*tracks*/, aod::BCsWithTimestamps const& /*bcWithTimeStamps*/)
{
for (auto& jet : jets) {
for (const auto& jet : jets) {
std::vector<int> svIndices;
runCreatorNProng<2, false>(collision.template collision_as<aod::Collisions>(), jet, tracks, svIndices, df2);
sv2prongIndicesTableData(svIndices);
Expand All @@ -336,7 +336,7 @@ struct SecondaryVertexReconstruction {

void processData2ProngsExternalMagneticField(JetCollisionwPIs::iterator const& collision, aod::Collisions const& /*realColl*/, soa::Join<aod::ChargedJets, aod::ChargedJetConstituents> const& jets, JetTracksData const& tracks, OriginalTracks const& /*tracks*/)
{
for (auto& jet : jets) {
for (const auto& jet : jets) {
std::vector<int> svIndices;
runCreatorNProng<2, true>(collision.template collision_as<aod::Collisions>(), jet, tracks, svIndices, df2);
sv2prongIndicesTableData(svIndices);
Expand All @@ -346,7 +346,7 @@ struct SecondaryVertexReconstruction {

void processMCD3Prongs(JetCollisionwPIs::iterator const& collision, aod::Collisions const& /*realColl*/, soa::Join<aod::ChargedMCDetectorLevelJets, aod::ChargedMCDetectorLevelJetConstituents> const& mcdjets, JetTracksMCDwPIs const& tracks, OriginalTracks const& /*tracks*/, aod::BCsWithTimestamps const& /*bcWithTimeStamps*/)
{
for (auto& jet : mcdjets) {
for (const auto& jet : mcdjets) {
std::vector<int> svIndices;
runCreatorNProng<3, false>(collision.template collision_as<aod::Collisions>(), jet, tracks, svIndices, df3);
sv3prongIndicesTableMCD(svIndices);
Expand All @@ -356,7 +356,7 @@ struct SecondaryVertexReconstruction {

void processMCD3ProngsExternalMagneticField(JetCollisionwPIs::iterator const& collision, aod::Collisions const& /*realColl*/, soa::Join<aod::ChargedMCDetectorLevelJets, aod::ChargedMCDetectorLevelJetConstituents> const& mcdjets, JetTracksMCDwPIs const& tracks, OriginalTracks const& /*tracks*/)
{
for (auto& jet : mcdjets) {
for (const auto& jet : mcdjets) {
std::vector<int> svIndices;
runCreatorNProng<3, true>(collision.template collision_as<aod::Collisions>(), jet, tracks, svIndices, df3);
sv3prongIndicesTableMCD(svIndices);
Expand All @@ -366,7 +366,7 @@ struct SecondaryVertexReconstruction {

void processMCD2Prongs(JetCollisionwPIs::iterator const& collision, aod::Collisions const& /*realColl*/, soa::Join<aod::ChargedMCDetectorLevelJets, aod::ChargedMCDetectorLevelJetConstituents> const& mcdjets, JetTracksMCDwPIs const& tracks, OriginalTracks const& /*tracks*/, aod::BCsWithTimestamps const& /*bcWithTimeStamps*/)
{
for (auto& jet : mcdjets) {
for (const auto& jet : mcdjets) {
std::vector<int> svIndices;
runCreatorNProng<2, false>(collision.template collision_as<aod::Collisions>(), jet, tracks, svIndices, df2);
sv2prongIndicesTableMCD(svIndices);
Expand All @@ -376,7 +376,7 @@ struct SecondaryVertexReconstruction {

void processMCD2ProngsExternalMagneticField(JetCollisionwPIs::iterator const& collision, aod::Collisions const& /*realColl*/, soa::Join<aod::ChargedMCDetectorLevelJets, aod::ChargedMCDetectorLevelJetConstituents> const& mcdjets, JetTracksMCDwPIs const& tracks, OriginalTracks const& /*tracks*/)
{
for (auto& jet : mcdjets) {
for (const auto& jet : mcdjets) {
std::vector<int> svIndices;
runCreatorNProng<2, true>(collision.template collision_as<aod::Collisions>(), jet, tracks, svIndices, df2);
sv2prongIndicesTableMCD(svIndices);
Expand All @@ -387,5 +387,5 @@ struct SecondaryVertexReconstruction {

WorkflowSpec defineDataProcessing(ConfigContext const& cfgc)
{
return WorkflowSpec{adaptAnalysisTask<SecondaryVertexReconstruction>(cfgc, TaskName{"jet-sv-reconstruction-charged"})};
return WorkflowSpec{adaptAnalysisTask<SecondaryVertexReconstruction>(cfgc, TaskName{"jet-sv-reconstruction-charged"})}; // o2-linter: disable=name/o2-task
}
2 changes: 1 addition & 1 deletion PWGJE/Tasks/jetTaggerHFQA.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1592,5 +1592,5 @@ using JetTaggerhfQACharged = JetTaggerHFQA<JetTaggerQAChargedDataJets, aod::Char
WorkflowSpec defineDataProcessing(ConfigContext const& cfgc)
{
return WorkflowSpec{
adaptAnalysisTask<JetTaggerhfQACharged>(cfgc, TaskName{"jet-taggerhf-qa-charged"})};
adaptAnalysisTask<JetTaggerhfQACharged>(cfgc, TaskName{"jet-taggerhf-qa-charged"})}; // o2-linter: disable=name/o2-task
}

0 comments on commit ce5e4ae

Please sign in to comment.