Skip to content

Commit

Permalink
More clang fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
ktf committed May 10, 2014
1 parent 067ffe8 commit 529af5e
Show file tree
Hide file tree
Showing 13 changed files with 9 additions and 30 deletions.
2 changes: 1 addition & 1 deletion DataFormats/ParticleFlowCandidate/interface/PFCandidate.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ namespace reco {
/* return CandidateBaseRef(sourceRef_); */
/* } */

//using reco::Candidate::setSourceCandidatePtr;
using reco::Candidate::setSourceCandidatePtr;
void setSourceCandidatePtr(const PFCandidatePtr& ptr) { sourcePtr_ = ptr; }

size_t numberOfSourceCandidatePtrs() const {
Expand Down
2 changes: 0 additions & 2 deletions PhysicsTools/JetMCUtils/interface/combination.h
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ inline bool prev_combination(BidIt n_begin, BidIt n_end,
BidIt r_begin, BidIt r_end)
{

bool boolsame=false;
BidIt marked;//for r
BidIt r_marked;
BidIt n_marked;
Expand Down Expand Up @@ -242,7 +241,6 @@ inline bool prev_combination(
Prediate Equal)
{

bool boolsame=false;
BidIt marked;//for r
BidIt r_marked;
BidIt n_marked;
Expand Down
1 change: 1 addition & 0 deletions RecoMuon/L3TrackFinder/interface/L3MuonTrajectoryBuilder.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class L3MuonTrajectoryBuilder : public GlobalTrajectoryBuilderBase {
/// destructor
~L3MuonTrajectoryBuilder();
/// reconstruct trajectories from standalone and tracker only Tracks
using GlobalTrajectoryBuilderBase::trajectories;
MuonTrajectoryBuilder::CandidateContainer trajectories(const TrackCand&);
/// pass the Event to the algo at each event
virtual void setEvent(const edm::Event&);
Expand Down
1 change: 0 additions & 1 deletion RecoParticleFlow/PFTracking/interface/PFElecTkProducer.h
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ class PFElecTkProducer : public edm::stream::EDProducer<> {
bool modemomentum_;
bool applySel_;
bool applyGsfClean_;
bool useFifthStep_;
bool useFifthStepForEcalDriven_;
bool useFifthStepForTrackDriven_;
// bool useFifthStepSec_;
Expand Down
2 changes: 1 addition & 1 deletion RecoTracker/TkMSParametrization/interface/MSLayer.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class MSLayer {

DataX0 theX0Data;

friend struct MSLayersKeeper;
friend class MSLayersKeeper;
friend std::ostream& operator<<( std::ostream& s, const MSLayer & l);

};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class ConfigurableTertiaryTracksVertexFinder : public VertexReconstructor {

virtual ~ConfigurableTertiaryTracksVertexFinder();

using VertexReconstructor::vertices;
virtual std::vector<TransientVertex>
vertices(const std::vector<reco::TransientTrack> &) const;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class TertiaryTracksVertexFinder : public VertexReconstructor {

virtual ~TertiaryTracksVertexFinder();

using VertexReconstructor::vertices;
virtual std::vector<TransientVertex>
vertices(const std::vector<reco::TransientTrack> & tracks) const {
return theFinder->vertices(tracks);
Expand Down
6 changes: 3 additions & 3 deletions RecoVertex/TertiaryTracksVertexFinder/src/GetLineCovMatrix.cc
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ GlobalError GetLineCovMatrix::GetMatrix(GlobalPoint PointThree)
{
// the linear equation is K = PointOne + (PointTwo-PointOne)*s
double s;
if( !fabs(PointTwo.x() - PointOne.x()) < 0.00000001 )
if( !(fabs(PointTwo.x() - PointOne.x()) < 0.00000001) )
s = (PointThree.x() - PointOne.x()) / (PointTwo.x() - PointOne.x()) ;
else {
if( !fabs(PointTwo.y() - PointOne.y()) < 0.00000001 )
if( !(fabs(PointTwo.y() - PointOne.y()) < 0.00000001) )
s = (PointThree.y() - PointOne.y()) / (PointTwo.y() - PointOne.y()) ;
else {
if( !fabs(PointTwo.z() - PointOne.z()) < 0.00000001 )
if( !(fabs(PointTwo.z() - PointOne.z()) < 0.00000001) )
s = (PointThree.z() - PointOne.z()) / (PointTwo.z() - PointOne.z()) ;
else {
GlobalError EmptyError(0, 0, 0, 0, 0, 0);
Expand Down
13 changes: 0 additions & 13 deletions SimCalorimetry/EcalElectronicsEmulation/bin/GenABIO.cc
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,6 @@ ssize_t getline (char **lineptr, size_t *n, FILE *fp)

using namespace std;

/** Number of crystals along eta in barrel
*/
const static int nBarrelEtaBins = 170;
/** Number of crystals in a eta ring of the barrel
*/
const static int nBarrelPhiBins = 360;
/** Range of the x-index of endcap crystals (xman-xmin+1).
*/
const static int nEndcapXBins = 100;
Expand All @@ -127,12 +121,6 @@ const static int nSupercrystalXBins = nEndcapXBins/supercrystalEdge;
/** Range of endcap supercrystal y-index (ymay-ymin+1)
*/
const static int nSupercrystalYBins = nEndcapYBins/supercrystalEdge;
/** Number of trigger tower along eta in the barrel
*/
const static int nBarrelTowerEtaBins = nBarrelEtaBins/5;
/** Number of trigger tower in a eta ring of the barrel
*/
const static int nBarrelTowerPhiBins = nBarrelPhiBins/5;
/** Number of endcap, obviously tow
*/
const static int nEndcaps = 2;
Expand Down Expand Up @@ -163,7 +151,6 @@ const int nABTCCCh = 12;//nbr of TCC inputs on an AB
const int nDCCCh = 12;//nbr of DCC outputs on an AB
const int nTCCInEta = 6; //nbr of TCC bins along eta
const int nAB = nABInPhi*nABInEta;
const int nTTInABAlongEta=nTTInEta/nABInEta;
const int nTTInABAlongPhi=nTTInPhi/nABInPhi;
const int iTTEtaMin[nABInEta] = {0,11,28,45};
const int iTTEtaMax[nABInEta] = {10,27,44,55};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ const int nrFiles = 51;
const TString path = "dcap://maite.iihe.ac.be:/pnfs/iihe/becms/heyninck/TtSemiMuEvents_TopRex_Juni/TtSemiMuEvents_";

//matching variables
const bool useSpaceAngle = true;
const double SumAlphaCut = 0.7;

//select which observables to use
Expand Down
3 changes: 0 additions & 3 deletions TopQuarkAnalysis/TopSkimming/src/TtDecayChannelSelector.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
// TtDecayChannelSelector::search functions
static const std::string kGenParticles = "genParticles";

// number of top branches for decay selection
static const unsigned int kTopBranches = 2;

// maximal number of possible leptonic decay
// channels
static const unsigned int kDecayChannels = 3;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// #include "CommonDet/DetUtilities/interface/DetailedDetTimer.h"

AnalyticalImpactPointExtrapolator::AnalyticalImpactPointExtrapolator (const MagneticField* field) :
thePropagator(new AnalyticalPropagator(theField, anyDirection)),
thePropagator(new AnalyticalPropagator(field, anyDirection)),
theField(field)
{}

Expand Down
4 changes: 0 additions & 4 deletions Validation/RecoTau/plugins/DQMHistPlotter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
#include <iostream>

//defaults for cfgEntryProcess
const double defaultScaleFactor = 1.;
const std::string type_smMC = "smMC";
const std::string type_bsmMC = "bsmMC";
const std::string type_smSumMC = "smSumMC";
Expand Down Expand Up @@ -85,9 +84,6 @@ const std::string defaultDrawOptionLegend = "lpf";

const std::string drawOption_eBand = "eBand";

// defaults for cfgEntryDrawJob
const bool defaultDoOverlayPlots = false;

// global defaults
const int defaultCanvasSizeX = 800;
const int defaultCanvasSizeY = 600;
Expand Down

0 comments on commit 529af5e

Please sign in to comment.