Skip to content

Commit 8cb4b52

Browse files
committed
StGenericVertex: Clean up code
[skip build]
1 parent 9f58810 commit 8cb4b52

File tree

4 files changed

+7
-45
lines changed

4 files changed

+7
-45
lines changed

StRoot/StGenericVertexMaker/Minuit/StMinuitVertexFinder.cxx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ std::vector<UShort_t> StMinuitVertexFinder::mHelixFlags;
2525
std::vector<Double_t > StMinuitVertexFinder::mZImpact;
2626
Bool_t StMinuitVertexFinder::requireCTB;
2727
Int_t StMinuitVertexFinder::nCTBHits;
28+
2829
//==========================================================
2930
//==========================================================
3031
void StMinuitVertexFinder::Clear(){

StRoot/StGenericVertexMaker/StCtbUtility.cxx

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,6 @@ void StCtbUtility::collectCTBhitsMC(St_DataSet *gds){// M-C CTB
114114

115115

116116
gMessMgr->Message("","I") << mCtbHits.size() << " CTB slats accepted from M-C data"<<endm;
117-
118-
return ;
119117
}
120118

121119

@@ -133,7 +131,6 @@ void StCtbUtility::collectCTBhitsData(StTriggerData *trgD){
133131
return ;
134132
}
135133

136-
//assert(trgD);
137134
for (UInt_t slat = 0; slat < 2; slat++)
138135
for (UInt_t tray = 0; tray < 120; tray++) {
139136
ctbHit curHit;
@@ -143,27 +140,6 @@ void StCtbUtility::collectCTBhitsData(StTriggerData *trgD){
143140
ctb_get_slat_from_data(slat,tray,curHit.phi, curHit.eta);
144141
mCtbHits.push_back(curHit);
145142
}
146-
147-
#if 0
148-
// old method , run just for cross check, delete later, JB
149-
150-
StTriggerDetectorCollection* trigCol = event->triggerDetectorCollection();
151-
if(!trigCol){
152-
LOG_WARN << "StCtbUtility scans: no trigCol in Data" << endm;
153-
return ;
154-
}
155-
156-
StCtbTriggerDetector* ctbDet = &(trigCol->ctb());
157-
for (UInt_t slat = 0; slat < ctbDet->numberOfSlats(); slat++)
158-
for (UInt_t tray = 0; tray < ctbDet->numberOfTrays(); tray++) {
159-
ctbHit curHit;
160-
curHit.adc = ctbDet->mips(tray,slat,0);
161-
if(curHit.adc<mCtbThres_ch) continue;
162-
LOG_INFO<<Form("A sl=%3d tr=%3d %4f\n",slat,tray, curHit.adc )<<endm;
163-
}
164-
165-
#endif
166-
return ;
167143
}
168144

169145

@@ -178,4 +154,3 @@ void StCtbUtility::printCtb() {
178154
,mCtbHits[ih].eta,mCtbHits[ih].phi/3.1416*180,mCtbHits[ih].adc)<<endm;
179155
}
180156
}
181-

StRoot/StGenericVertexMaker/StiPPVertex/BtofHitList.h

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,9 @@
11
#ifndef BtofHitList_h
22
#define BtofHitList_h
33

4-
#include "StGenericVertexMaker/StiPPVertex/ScintHitList.h"
54
#include <vector>
65

7-
#ifndef ST_NO_NAMESPACES
8-
using std::vector;
9-
#endif
10-
#ifndef __CINT__
11-
#if !defined(ST_NO_TEMPLATE_DEF_ARGS)
12-
typedef vector<Int_t> IntVec;
13-
#else
14-
typedef vector<Int_t, allocator<Int_t> > IntVec;
15-
#endif
16-
#endif
6+
#include "StGenericVertexMaker/StiPPVertex/ScintHitList.h"
177

188
class StBTofTables;
199
class StBTofCollection;
@@ -37,10 +27,10 @@ class BtofHitList : public ScintHitList {
3727
void build(StBTofCollection *btofColl);
3828
int cell2bin(int tray, int module, int cell);
3929
int addBtofTrack(int tray, int module, int cell);
40-
int addBtofMatch(IntVec ibinVec);
41-
bool isMatched(IntVec ibinVec);
42-
bool isVetoed(IntVec ibinVec);
43-
float getWeight(IntVec ibinVec);
30+
int addBtofMatch(std::vector<int> ibinVec);
31+
bool isMatched(std::vector<int> ibinVec);
32+
bool isVetoed(std::vector<int> ibinVec);
33+
float getWeight(std::vector<int> ibinVec);
4434
virtual int etaBin(float eta);
4535
virtual float bin2EtaLeft(int iEta);
4636

StRoot/StGenericVertexMaker/StppLMVVertexFinder.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,9 @@ class StppLMVVertexFinder: public StGenericVertexFinder , StCtbUtility {
5454
int eveID;
5555
int NCtbMatches();
5656

57-
/*!
58-
* \struct
59-
*/
6057
struct JHelix {StPhysicalHelixD helix; float sigma; };
6158

62-
vector<JHelix> mPrimCand;
63-
59+
std::vector<JHelix> mPrimCand;
6460
};
6561

6662

0 commit comments

Comments
 (0)