Skip to content

Commit

Permalink
Fix clamsy Weffc++ warnings...
Browse files Browse the repository at this point in the history
  • Loading branch information
dudarboh committed Oct 1, 2024
1 parent 07a5602 commit db04302
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
22 changes: 11 additions & 11 deletions Analysis/TOFAnalysis/include/BohdanAna.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ class BohdanAna : public marlin::Processor, EventDisplayer {
int _nEvent{};
float _bField{};

std::unique_ptr<TFile> _file;
std::unique_ptr<TTree> _tree;
std::unique_ptr<TTree> _treeEvents;
std::unique_ptr<TFile> _file{};
std::unique_ptr<TTree> _tree{};
std::unique_ptr<TTree> _treeEvents{};

bool _dst_mode{};
bool _produce_refit_output{};
bool _produce_csv_output{};
std::ofstream _csv_output_file;
std::ofstream _csv_output_file{};
int _global_pfo_number{};

// Event information
Expand Down Expand Up @@ -240,13 +240,13 @@ class BohdanAna : public marlin::Processor, EventDisplayer {
std::array<float, 16> _tofFit{};

// ECAL HITS FOR FURTHER TOF RECONSTRUCTION
int _nHits;
std::vector<float> _xHit;
std::vector<float> _yHit;
std::vector<float> _zHit;
std::vector<float> _tHit;
std::vector<int> _layerHit;
std::vector<float> _energyHit;
int _nHits{};
std::vector<float> _xHit{};
std::vector<float> _yHit{};
std::vector<float> _zHit{};
std::vector<float> _tHit{};
std::vector<int> _layerHit{};
std::vector<float> _energyHit{};

MarlinTrk::IMarlinTrkSystem* _trkSystem = nullptr;
TApplication _application = TApplication("app", 0, nullptr);
Expand Down
2 changes: 1 addition & 1 deletion Analysis/TOFAnalysis/include/BohdanUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include <vector>

struct VertexData{
dd4hep::rec::Vector3D pos;
dd4hep::rec::Vector3D pos{};
std::vector<EVENT::MCParticle* > mcs{};
bool isPrimary = false;
bool isV0 = false;
Expand Down
4 changes: 2 additions & 2 deletions Analysis/TOFAnalysis/include/CreateRefitPFO.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ class CreateRefitPFO : public marlin::Processor{
TLorentzVector getTrackFourMomentum(EVENT::Track* track , double mass);
std::vector<float> updateChargedPFOCovMat(EVENT::Track* track , double mass);
private:
int _nEvt;
double _bField;
int _nEvt{};
double _bField{};
};

#endif
2 changes: 1 addition & 1 deletion Analysis/TOFAnalysis/include/TrackLength.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ enum class TrackLengthOption{

struct HitState{
// Struct which contains a combination of the simulated, reconstructed tracker hit and the track state of the track at this reconstructed hit position
IMPL::TrackStateImpl ts;
IMPL::TrackStateImpl ts{};
EVENT::TrackerHit* hit = nullptr;
EVENT::SimTrackerHit* simHit = nullptr;
};
Expand Down
2 changes: 1 addition & 1 deletion Analysis/TOFAnalysis/src/BohdanDrawing.cc
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ void plotTrackParams(const std::vector<HitState>& trackHitStates, EVENT::MCParti
TStyle* myStyle = getMyStyle();

struct Margin{
float left, right, top, bottom;
float left{}, right{}, top{}, bottom{};
Margin(float l, float r, float t, float b){
left = l;
right = r;
Expand Down

0 comments on commit db04302

Please sign in to comment.