Skip to content

Commit

Permalink
Another (and final?) batch of obsolete code removal
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed May 3, 2024
1 parent 2343a6b commit ca8842a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 15 deletions.
8 changes: 2 additions & 6 deletions Clustering/PhotonFinderKit/src/KITutil.cc
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,10 @@ void Precalc2(vector< Superhit2* >& shvec,double r, double z, double cell, doubl

unsigned int nPts=shvec.size();
ANNpointArray dataPts;
// ANNpoint queryPt;
ANNidxArray nnIdx;
ANNdistArray dists;
ANNkd_tree* kdTree;

// queryPt=annAllocPt(3); // 3d point
dataPts=annAllocPts(nPts,3);
nnIdx=new ANNidx[36];
dists=new ANNdist[36];
Expand Down Expand Up @@ -287,8 +285,7 @@ void FindCores2(Shitvec2* secal1, vector<Tmpclvec2>& bbb , vector <PROTSEED2> *
unsigned int N, vector<float> miipstep, CoreCut2 Ccut)
{
typedef pair<int,int> test;
// int psl_plun_global=0;


double Diagby2=PGDB[PGdb::ECAL1_BAR].cell_size*sqrt(2.0)/2.0;
double d=PGDB[PGdb::ECAL1_BAR].r_inner;
double z=PGDB[PGdb::ECAL1_CAP].z_inner;
Expand Down Expand Up @@ -341,8 +338,7 @@ void FindCores2(Shitvec2* secal1, vector<Tmpclvec2>& bbb , vector <PROTSEED2> *
}
poslednjipun=im;
}
// psl_plun_global=poslednjipun;


vector < PROTSEED2 > prs;

for(unsigned int im=0;im<bbb[0].size();im++)
Expand Down
7 changes: 0 additions & 7 deletions Clustering/hybridEcalSplitter/src/hybridRecoProcessor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -226,16 +226,12 @@ void hybridRecoProcessor::processEvent( LCEvent * evt ) {

if (_makePlots) {
// first fill some simple MC histos
// float phi=-999;
// float theta=-999;
try {
LCCollection * col = evt->getCollection("MCParticle");
if (col->getNumberOfElements()>0) {
MCParticle * mcp = dynamic_cast<MCParticle*>(col->getElementAt(0) );
TVector3 mom(mcp->getMomentum()[0], mcp->getMomentum()[1], mcp->getMomentum()[2]);
h_phiThetaMC->Fill(mom.Phi(), mom.Theta());
// phi = mom.Phi();
// theta = mom.Theta();
}
}
catch(DataNotAvailableException &e) {};
Expand All @@ -249,7 +245,6 @@ void hybridRecoProcessor::processEvent( LCEvent * evt ) {

std::pair < TVector3, TVector3 > stripEnds;
std::vector <std::string> * toSplit;
// std::vector <std::string> * stripSplitter;
int orientation;

std::map < IMPL::LCCollectionVec*, std::string > outputcolls;
Expand All @@ -270,12 +265,10 @@ void hybridRecoProcessor::processEvent( LCEvent * evt ) {
case 0:
orientation = TRANSVERSE;
toSplit = &_ecalCollectionsTranStrips;
// stripSplitter = &_ecalCollectionsLongStrips;
break;
case 1:
orientation = LONGITUDINAL;
toSplit = &_ecalCollectionsLongStrips;
// stripSplitter = &_ecalCollectionsTranStrips;
break;
default:
streamlog_out ( ERROR ) << "ERROR crazy stuff!!! abandoning event..." << endl;
Expand Down
2 changes: 0 additions & 2 deletions TrackDigi/VTXDigi/src/CCDDigitizer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -669,14 +669,12 @@ void CCDDigitizer::FindLocalPosition(SimTrackerHit * hit,
//cout<<"nLadders "<<nLadders<<" "<<dPhi<<" "<<Phi0<<" "<<endl;


// int iLadder=0;
for (int ic=0; ic<nLadders; ++ic) {
PhiLadder = double(ic)*dPhi + Phi0;
PhiInLocal = PhiInLab - PhiLadder;
//cout<<"Phi "<<PhiLadder<<" "<<PhiInLocal<<" "<<PhiInLab<<" "<<_layerThickness[layer]<<" "<<Radius<<endl;
if (RXY*cos(PhiInLocal)-Radius > -_layerThickness[layer] &&
RXY*cos(PhiInLocal)-Radius < _layerThickness[layer]) {
// iLadder = ic;
break;
}
//cout<<"phi ladder "<<PhiLadder<<endl;
Expand Down

0 comments on commit ca8842a

Please sign in to comment.