StMtdEvtFilterMaker Class Reference

This class is used to check number of muon candidates in each event. It runs both on StEvent and MuDst. The events containing the required number of muon candidates, ususally two, are retained in the offline reconstruction. Otherwise, the events are discarded to save prodction time since they do not contain interested physics process. More...

#include <StMtdEvtFilterMaker.h>

Inheritance diagram for StMtdEvtFilterMaker:
StMaker

List of all members.

Public Types

typedef vector< int > IntVec

Public Member Functions

 StMtdEvtFilterMaker (const Char_t *name="StMtdEvtFilterMaker")
Int_t Init ()
Int_t InitRun (const Int_t runNumber)
Int_t Make ()
void setSaveHistos (const bool save)
bool isRejectEvent ()
int shouldHaveRejectEvent ()
bool isMuonCandidate (StTrack *track)
bool isMuonCandidate (StMuTrack *track)
void setMinTrackPt (const double min)
void setMinLeadTrackPt (const double min)
void setMinNHitsFit (const int min)
void setMinNHitsDedx (const int min)
void setMinFitHitsFraction (const double min)
void setMaxDca (const double max)
void setMaxDeltaZ (const double max)
void setMinMuonCandidates (const int min)
void setNsigmaPiCut (const double min, const double max)
virtual const char * GetCVS () const

Detailed Description

This class is used to check number of muon candidates in each event. It runs both on StEvent and MuDst. The events containing the required number of muon candidates, ususally two, are retained in the offline reconstruction. Otherwise, the events are discarded to save prodction time since they do not contain interested physics process.

Author:
Rongrong Ma

Definition at line 27 of file StMtdEvtFilterMaker.h.


Member Function Documentation

bool StMtdEvtFilterMaker::isMuonCandidate ( StMuTrack *  track  ) 

check if the StMuTrack a muon candidate

Definition at line 441 of file StMtdEvtFilterMaker.cxx.

bool StMtdEvtFilterMaker::isMuonCandidate ( StTrack *  track  ) 

check if the StTrack a muon candidate

Definition at line 397 of file StMtdEvtFilterMaker.cxx.

bool StMtdEvtFilterMaker::isRejectEvent (  ) 

check if this event should be discarded, namely it does not contain a j/psi candidate

Definition at line 203 of file StMtdEvtFilterMaker.cxx.

Referenced by Make().

Int_t StMtdEvtFilterMaker::Make (  )  [virtual]

The Make() method is the one responsible for calling the maker's InitRun(). Note that that InitRun() is called for real data and if both of the following are true

  • a header exists
  • the run number changes

This is the ONLY place calling the InitRun() routine.

check privilege to skip event

Reimplemented from StMaker.

Definition at line 152 of file StMtdEvtFilterMaker.cxx.

References StMaker::AddData(), isRejectEvent(), and shouldHaveRejectEvent().

int StMtdEvtFilterMaker::shouldHaveRejectEvent (  ) 

check whether this event should have been discarded, had it not contain MTD triggers other than the di-muon trigger

Definition at line 214 of file StMtdEvtFilterMaker.cxx.

Referenced by Make().


The documentation for this class was generated from the following files:
 All Classes Functions Variables

Generated on 30 Apr 2015 for STDATAFILTERMAKER by  doxygen 1.6.1