Skip to content

Commit

Permalink
disable TOF BC usage in cpass0
Browse files Browse the repository at this point in the history
  • Loading branch information
shahor02 committed Jul 7, 2015
1 parent e3e4a87 commit a878efb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
10 changes: 10 additions & 0 deletions STEER/ESD/AliVertexerTracks.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ fMVMaxWghNtr(10.),
fMVFinalWBinary(kTRUE),
fBCSpacing(50),
fMVVertices(0),
fDisableBCInCPass0(kTRUE),
fClusterize(kFALSE),
fDeltaZCutForCluster(0.1),
fnSigmaZCutForCluster(999999.)
Expand Down Expand Up @@ -140,6 +141,7 @@ fMVMaxWghNtr(10.),
fMVFinalWBinary(kTRUE),
fBCSpacing(50),
fMVVertices(0),
fDisableBCInCPass0(kTRUE),
fClusterize(kFALSE),
fDeltaZCutForCluster(0.1),
fnSigmaZCutForCluster(999999.)
Expand Down Expand Up @@ -1041,6 +1043,14 @@ void AliVertexerTracks::SetCuts(Double_t *cuts, Int_t ncuts)
if ( (fAlgo==kMultiVertexer || fClusterize) && fBCSpacing>0) SetSelectOnTOFBunchCrossing(kTRUE,kTRUE);
else SetSelectOnTOFBunchCrossing(kFALSE,kTRUE);
//
// Don't use BCSpacing in CPass0
TString cpass = gSystem->Getenv("CPass");
if (cpass=="0" && fDisableBCInCPass0) {
AliInfoF("CPass%s declared, switch off using BC from TOF",cpass.Data());
SetBCSpacing(-25);
SetSelectOnTOFBunchCrossing(kFALSE,kTRUE);
}

return;
}
//---------------------------------------------------------------------------
Expand Down
5 changes: 4 additions & 1 deletion STEER/ESD/AliVertexerTracks.h
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,9 @@ class AliVertexerTracks : public TObject {
void SetUseTrackClusterization(Bool_t opt=kFALSE){fClusterize=opt;}
void SetDeltaZCutForCluster(Double_t cut){fDeltaZCutForCluster=cut;}
void SetnSigmaZCutForCluster(Double_t cut){fnSigmaZCutForCluster=cut;}
void SetDisableBCInCPass0(Bool_t v=kTRUE) {fDisableBCInCPass0 = v;}

Bool_t GetDisableBCInCPass0() const {return fDisableBCInCPass0;}
Bool_t GetUseTrackClusterization() const {return fClusterize;}
Double_t GetDeltaZCutForCluster() const {return fDeltaZCutForCluster;}
Double_t GetnSigmaZCutForCluster() const {return fnSigmaZCutForCluster;}
Expand Down Expand Up @@ -238,6 +240,7 @@ class AliVertexerTracks : public TObject {
Int_t fBCSpacing; // BC Spacing in ns (will define the rounding of BCid)
TObjArray* fMVVertices; // array of found vertices

Bool_t fDisableBCInCPass0; // do not use BC from TOF in CPass0
Bool_t fClusterize; // flag to activate track clusterization into vertices before vertex finder
Double_t fDeltaZCutForCluster; // minimum distance in z between tracks to create new cluster
Double_t fnSigmaZCutForCluster; // minimum distacnce in number of sigma along z to create new cluster
Expand All @@ -246,7 +249,7 @@ class AliVertexerTracks : public TObject {
AliVertexerTracks(const AliVertexerTracks & source);
AliVertexerTracks & operator=(const AliVertexerTracks & source);

ClassDef(AliVertexerTracks,17) // 3D Vertexing with tracks
ClassDef(AliVertexerTracks,18) // 3D Vertexing with tracks
};

#endif
Expand Down

0 comments on commit a878efb

Please sign in to comment.