FairRoot/PandaRoot
PndGoodTrackSelector.cxx
Go to the documentation of this file.
1 #include "PndGoodTrackSelector.h"
2 #include "PndPidCandidate.h"
4 
5 
6 
7 void PndGoodTrackSelector::SetCriterion ( const char* c )
8 {
9  // Set criteria accroding to PANDA specifications.
10 //FIXME Insert sensible values!!!
11  TString crit ( c );
12 
13  if ( crit=="veryLoose" ) {
14 // SetNHitsCut ( 4 );
15  //SetPrimaryVertexCut ( 1.5,-10.,10. );
16  //SetMomentumCut ( 0,10. );
17  //SetPtCut ( 0.0 );
18  SetFitCut ( 1e8, 0.001 );
19  SetMvdHits(0);
20  SetSttHits(0);
21  SetGemHits(0);
22  SetFtsHits(0);
23  SetShowerEnergy(0);
24  } else if ( crit=="loose" ) {
25 // SetNHitsCut ( 11 );
26  SetPrimaryVertexCut ( 1.5,-10.,10. );
27  SetMomentumCut ( 0,10. );
28  SetPtCut ( 0.1 );
29  SetFitCut ( 1e8, 0.01 );
30  SetMvdHits(3);
31  SetSttHits(0);
32  SetGemHits(0);
33  SetFtsHits(0);
34  SetShowerEnergy(0);
35  } else {
36 // SetNHitsCut ( 19 );
37  SetPrimaryVertexCut ( 1.0,-3.,3. ); //cm
38  SetMomentumCut ( 0.1,10. ); //GeV/c
39  //SetPtCut ( 0.1 ); //GeV/c
40  SetFitCut ( 1e5,0.01 ); // ciqmax,probmin
41  SetMvdHits(3);
42  SetSttHits(0);
43  SetGemHits(0);
44  SetFtsHits(0);
45  SetShowerEnergy(0);
46  }
47 
49 }
50 
51 
52 
53 
54 
56 {
58  if (rc==kFALSE) { return kFALSE; }
59  PndPidCandidate* recocand = dynamic_cast<PndPidCandidate*> (&frecoc); //make use of full panda functionality
60 
61  if (recocand->GetMvdHits() < fMvdHitsMin) { return kFALSE; }
62  if (recocand->GetMvdHits() > fMvdHitsMax) { return kFALSE; }
63  if (recocand->GetSttHits() < fSttHitsMin) { return kFALSE; }
64  if (recocand->GetSttHits() > fSttHitsMax) { return kFALSE; }
65  //if(recocand->Get() < fGemHitsMin) return kFALSE;
66  //if(recocand->Get() > fGemHitsMax) return kFALSE;
67  //if(recocand->Get() < fFtsHitsMin) return kFALSE;
68  //if(recocand->Get() > fFtsHitsMax) return kFALSE;
69  if (recocand->GetEmcCalEnergy() < fEmcMin) { return kFALSE; }
70  if (recocand->GetEmcCalEnergy() > fEmcMax) { return kFALSE; }
71  return kTRUE;
72 }
73 
74 
75 
Float_t GetEmcCalEnergy() const
virtual Bool_t Accept(PndPidCandidate &)
virtual Bool_t Accept(RhoCandidate &b)
Int_t GetSttHits() const
Int_t GetMvdHits() const
virtual void SetCriterion(const char *crit)
ClassImp(PndAnaContFact)