Public Member Functions | Private Attributes | List of all members
secondary_noPion Class Reference

#include <SelectionDefinitions.h>

Public Member Functions

 secondary_noPion (double track_score_cut, double chi2_cut, double dEdX_low, double dEdX_med, double dEdX_high)
 
bool operator() (const std::vector< double > &track_score, const std::vector< int > &trackID, const std::vector< double > &dEdX, const std::vector< double > &chi2, const std::vector< int > &ndof)
 

Private Attributes

double fTrackScoreCut
 
double fChi2Cut
 
double fdEdXLow
 
double fdEdXMed
 
double fdEdXHigh
 

Detailed Description

Definition at line 421 of file SelectionDefinitions.h.

Constructor & Destructor Documentation

secondary_noPion::secondary_noPion ( double  track_score_cut,
double  chi2_cut,
double  dEdX_low,
double  dEdX_med,
double  dEdX_high 
)
inline

Definition at line 427 of file SelectionDefinitions.h.

429  : fTrackScoreCut(track_score_cut),
430  fChi2Cut(chi2_cut),
431  fdEdXLow(dEdX_low),
432  fdEdXMed(dEdX_med),
433  fdEdXHigh(dEdX_high) {}

Member Function Documentation

bool secondary_noPion::operator() ( const std::vector< double > &  track_score,
const std::vector< int > &  trackID,
const std::vector< double > &  dEdX,
const std::vector< double > &  chi2,
const std::vector< int > &  ndof 
)
inline

Definition at line 434 of file SelectionDefinitions.h.

439  {
440  for( size_t i = 0; i < track_score.size(); ++i ) {
441  if ((trackID[i] != -999) && (track_score[i] > fTrackScoreCut)) {
442  if (dEdX[i] < fdEdXMed/*2.8*/ && dEdX[i] > fdEdXLow/*0.5*/) {
443  return false;
444  }
445  //else if (dEdX[i] > 2.8 && dEdX[i] < 3.4) {
446  else if (dEdX[i] < fdEdXHigh) {
447  if (ndof[i] > 0 && chi2[i]/ndof[i] > fChi2Cut) {
448  return false;
449  }
450  }
451  }
452  }
453 
454  return true;
455  }

Member Data Documentation

double secondary_noPion::fChi2Cut
private

Definition at line 424 of file SelectionDefinitions.h.

double secondary_noPion::fdEdXHigh
private

Definition at line 425 of file SelectionDefinitions.h.

double secondary_noPion::fdEdXLow
private

Definition at line 425 of file SelectionDefinitions.h.

double secondary_noPion::fdEdXMed
private

Definition at line 425 of file SelectionDefinitions.h.

double secondary_noPion::fTrackScoreCut
private

Definition at line 423 of file SelectionDefinitions.h.


The documentation for this class was generated from the following file: