Skip to content

Commit

Permalink
Run clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell committed Jan 19, 2024
1 parent 95d85b5 commit b430558
Show file tree
Hide file tree
Showing 14 changed files with 30 additions and 25 deletions.
2 changes: 1 addition & 1 deletion k4FWCore/components/PodioInput.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
#ifndef FWCORE_PODIOINPUT_H
#define FWCORE_PODIOINPUT_H
// Gaudi
#include "Gaudi/Property.h"
#include "Gaudi/Functional/Consumer.h"
#include "Gaudi/Property.h"

// STL
#include <string>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@

#include "k4FWCore/BaseClass.h"

#include <Gaudi/Property.h>
#include <Gaudi/Functional/Consumer.h>
#include <Gaudi/Property.h>
#include <GaudiKernel/ISvcLocator.h>

#include <fmt/core.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
* limitations under the License.
*/

#include "Gaudi/Property.h"
#include "Gaudi/Functional/Consumer.h"
#include "Gaudi/Property.h"

#include "edm4hep/MCParticleCollection.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
* limitations under the License.
*/

#include "Gaudi/Property.h"
#include "Gaudi/Functional/Consumer.h"
#include "Gaudi/Property.h"

#include "edm4hep/MCParticleCollection.h"
#include "edm4hep/SimTrackerHitCollection.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
* limitations under the License.
*/

#include "Gaudi/Property.h"
#include "Gaudi/Functional/Producer.h"
#include "Gaudi/Property.h"
#include "k4FWCore/BaseClass.h"

#include "edm4hep/MCParticleCollection.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
* limitations under the License.
*/

#include "Gaudi/Property.h"
#include "Gaudi/Functional/Producer.h"
#include "Gaudi/Property.h"
#include "k4FWCore/BaseClass.h"

#include "edm4hep/MCParticleCollection.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
* limitations under the License.
*/

#include "Gaudi/Property.h"
#include "Gaudi/Functional/Transformer.h"
#include "Gaudi/Property.h"

#include "edm4hep/MCParticleCollection.h"
#include "edm4hep/MutableMCParticle.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
* limitations under the License.
*/

#include "Gaudi/Property.h"
#include "Gaudi/Functional/Transformer.h"
#include "Gaudi/Property.h"

#include "edm4hep/MCParticleCollection.h"
#include "edm4hep/SimTrackerHitCollection.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,15 @@ class k4FWCoreTest_AlgorithmWithTFile : public Gaudi::Algorithm {
/// Handle for the genparticles to be written
mutable DataHandle<edm4hep::MCParticleCollection> m_mcParticleHandle{"MCParticles", Gaudi::DataHandle::Writer, this};
/// Handle for the genvertices to be written
mutable DataHandle<edm4hep::SimTrackerHitCollection> m_simTrackerHitHandle{"SimTrackerHit", Gaudi::DataHandle::Writer, this};
mutable DataHandle<edm4hep::SimTrackerHitCollection> m_simTrackerHitHandle{"SimTrackerHit", Gaudi::DataHandle::Writer,
this};

mutable DataHandle<podio::UserDataCollection<float>> m_vectorFloatHandle{"VectorFloat", Gaudi::DataHandle::Writer, this};
mutable DataHandle<podio::UserDataCollection<float>> m_vectorFloatHandle{"VectorFloat", Gaudi::DataHandle::Writer,
this};

/// for testing: write a second TFile by user in an algorithm
mutable Float_t m_value;
TFile* m_file;
TTree* m_tree;
TFile* m_file;
TTree* m_tree;
};
#endif /* K4FWCORE_K4FWCORETEST_ALGORITHMWITHTFILE */
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,9 @@ class k4FWCoreTest_CheckExampleEventData : public Gaudi::Algorithm {
Gaudi::Property<bool> m_keepEventNumberZero{this, "keepEventNumberZero", false,
"Don't add the event number to the dummy values written"};
/// Handle for the MCParticles to be written
mutable DataHandle<edm4hep::MCParticleCollection> m_mcParticleHandle{"MCParticles", Gaudi::DataHandle::Reader, this};
mutable DataHandle<podio::UserDataCollection<float>> m_vectorFloatHandle{"VectorFloat", Gaudi::DataHandle::Reader, this};
mutable DataHandle<edm4hep::MCParticleCollection> m_mcParticleHandle{"MCParticles", Gaudi::DataHandle::Reader, this};
mutable DataHandle<podio::UserDataCollection<float>> m_vectorFloatHandle{"VectorFloat", Gaudi::DataHandle::Reader,
this};

mutable int m_event{0};
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,15 @@ class k4FWCoreTest_CreateExampleEventData : public Gaudi::Algorithm {
/// Handle for the MCParticles to be written
mutable DataHandle<edm4hep::MCParticleCollection> m_mcParticleHandle{"MCParticles", Gaudi::DataHandle::Writer, this};
/// Handle for the SimTrackerHits to be written
mutable DataHandle<edm4hep::SimTrackerHitCollection> m_simTrackerHitHandle{"SimTrackerHits", Gaudi::DataHandle::Writer, this};
mutable DataHandle<edm4hep::TrackerHitCollection> m_TrackerHitHandle{"TrackerHits", Gaudi::DataHandle::Writer, this};
mutable DataHandle<edm4hep::SimTrackerHitCollection> m_simTrackerHitHandle{"SimTrackerHits",
Gaudi::DataHandle::Writer, this};
mutable DataHandle<edm4hep::TrackerHitCollection> m_TrackerHitHandle{"TrackerHits", Gaudi::DataHandle::Writer, this};

/// Handle for the Tracks to be written
mutable DataHandle<edm4hep::TrackCollection> m_trackHandle{"Tracks", Gaudi::DataHandle::Writer, this};

mutable DataHandle<podio::UserDataCollection<float>> m_vectorFloatHandle{"VectorFloat", Gaudi::DataHandle::Writer, this};
mutable DataHandle<podio::UserDataCollection<float>> m_vectorFloatHandle{"VectorFloat", Gaudi::DataHandle::Writer,
this};

mutable int m_event{0};
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
#define K4FWCORE_K4FWCORETEST_HELLOWORLDALG

// GAUDI
#include "Gaudi/Property.h"
#include "Gaudi/Algorithm.h"
#include "Gaudi/Property.h"

class k4FWCoreTest_HelloWorldAlg : public Gaudi::Algorithm {
public:
Expand Down
8 changes: 4 additions & 4 deletions test/k4FWCoreTest/src/components/k4FWCoreTest_cellID_reader.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ class k4FWCoreTest_cellID_reader : public Gaudi::Algorithm {

private:
/// Handle for the SimTrackerHits to be read
mutable DataHandle<edm4hep::SimTrackerHitCollection> m_simTrackerHitReaderHandle{"SimTrackerHits", Gaudi::DataHandle::Reader,
this};
mutable MetaDataHandle<std::string> m_cellIDHandle{m_simTrackerHitReaderHandle, edm4hep::CellIDEncoding,
Gaudi::DataHandle::Reader};
mutable DataHandle<edm4hep::SimTrackerHitCollection> m_simTrackerHitReaderHandle{"SimTrackerHits",
Gaudi::DataHandle::Reader, this};
mutable MetaDataHandle<std::string> m_cellIDHandle{m_simTrackerHitReaderHandle, edm4hep::CellIDEncoding,
Gaudi::DataHandle::Reader};
};
#endif /* K4FWCORE_K4FWCORETEST_CELLID */
6 changes: 3 additions & 3 deletions test/k4FWCoreTest/src/components/k4FWCoreTest_cellID_writer.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ class k4FWCoreTest_cellID_writer : public Gaudi::Algorithm {

private:
/// Handle for the SimTrackerHits to be written
mutable DataHandle<edm4hep::SimTrackerHitCollection> m_simTrackerHitWriterHandle{"SimTrackerHits", Gaudi::DataHandle::Writer,
this};
MetaDataHandle<std::string> m_cellIDHandle{m_simTrackerHitWriterHandle, edm4hep::CellIDEncoding,
mutable DataHandle<edm4hep::SimTrackerHitCollection> m_simTrackerHitWriterHandle{"SimTrackerHits",
Gaudi::DataHandle::Writer, this};
MetaDataHandle<std::string> m_cellIDHandle{m_simTrackerHitWriterHandle, edm4hep::CellIDEncoding,
Gaudi::DataHandle::Writer};
};
#endif /* K4FWCORE_K4FWCORETEST_CELLID_WRITER */

0 comments on commit b430558

Please sign in to comment.