StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Static Public Member Functions | List of all members
StEmbeddingQAUtilities Class Reference

Public Member Functions

virtual ~StEmbeddingQAUtilities ()
 Destructor. More...
 
Category getCategory (const UInt_t id) const
 
TString getCategoryName (const UInt_t id) const
 Category from category id. More...
 
TString getCategoryTitle (const UInt_t id) const
 Category name from category id. More...
 
Int_t getCategoryId (const TString name) const
 Category title from category id. More...
 
Bool_t isMc (const TString name) const
 Category id from category name. More...
 
Bool_t isMatched (const TString name) const
 Check whether the track is MC track or not. More...
 
Bool_t isGhost (const TString name) const
 Check whether the track is Matched pair or not. More...
 
Bool_t isContaminated (const TString name) const
 Check whether the track is Ghost pair or not. More...
 
Bool_t isMatchedGlobal (const TString name) const
 Check whether the track is Contaminated pair or not. More...
 
Bool_t isPrimary (const TString name) const
 Check whether the track is Contaminated pair or not. More...
 
Bool_t isGlobal (const TString name) const
 Check whether the track is primary track or not. More...
 
Bool_t isEmbedding (const TString name) const
 Check whether the track is global track or not. More...
 
Bool_t isReal (const TString name) const
 Check whether the track is embedding pair or not. More...
 
Bool_t isElectron (const Int_t geantid) const
 Check whether the track is real track or not.
 
Bool_t isPositron (const Int_t geantid) const
 Check the input geantid is e-.
 
Bool_t isPiPlus (const Int_t geantid) const
 Check the input geantid is e+.
 
Bool_t isPiMinus (const Int_t geantid) const
 Check the input geantid is pi+.
 
Bool_t isKPlus (const Int_t geantid) const
 Check the input geantid is pi-.
 
Bool_t isKMinus (const Int_t geantid) const
 Check the input geantid is K+.
 
Bool_t isProton (const Int_t geantid) const
 Check the input geantid is K-.
 
Bool_t isPBar (const Int_t geantid) const
 Check the input geantid is p.
 
Bool_t isElectrons (const Int_t geantid) const
 Check the input geantid is pbar. More...
 
Bool_t isPions (const Int_t geantid) const
 Check the input geantid is electrons. More...
 
Bool_t isKaons (const Int_t geantid) const
 Check the input geantid is pions. More...
 
Bool_t isProtons (const Int_t geantid) const
 Check the input geantid is kaons. More...
 
Bool_t isEPiKP (const Int_t geantid) const
 Check the input geantid is protons. More...
 
Bool_t isGamma (const Int_t geantid) const
 Check the input geantid is e/pi/K/p. More...
 
void setStyle () const
 Check the input geantid is gamma. More...
 
void setStyle (TH1 *h) const
 Set overall styles. More...
 
Int_t getRunId (const Int_t runnumber, const Int_t year) const
 Set font, title and label styles.
 
Int_t getRunNumber (const Int_t runid, const Int_t year) const
 get runid from runnumber
 
StParticleDefinitiongetParticleDefinition (const UInt_t geantid) const
 runnumber = runid - (year - 2000 + 1) * 10^6 More...
 
Bool_t isGeantIdOk (const UInt_t geantid) const
 Check geant id is defined in StParticleTable or not. More...
 
Int_t getGeantId (const UInt_t geantid) const
 Return geant id. More...
 
Float_t getPtMinCut () const
 Get track and event selections.
 
Float_t getPtMaxCut () const
 
Float_t getEtaCut () const
 
Short_t getNHitCut () const
 
Float_t getNHitToNPossCut () const
 
Float_t getDcaCut () const
 
Double_t getNSigmaCut () const
 
Bool_t getBTofPid () const
 
Float_t getRapidityCut () const
 
Float_t getZVertexCut () const
 
Int_t getRefMultMinCut () const
 
Int_t getRefMultMaxCut () const
 
std::vector< UInt_t > getTriggerIdCut () const
 
Float_t setPtMinCut (const Float_t val)
 Set track and event selections, return new value.
 
Float_t setPtMaxCut (const Float_t val)
 
Float_t setEtaCut (const Float_t val)
 
Short_t setNHitCut (const Short_t val)
 
Float_t setNHitToNPossCut (const Float_t val)
 
Float_t setDcaCut (const Float_t val)
 
Double_t setNSigmaCut (const Double_t val)
 
Bool_t setBTofPid (const Bool_t val)
 
Float_t setRapidityCut (const Float_t val)
 
Float_t setZVertexCut (const Float_t val)
 
Int_t setRefMultMinCut (const Int_t val)
 
Int_t setRefMultMaxCut (const Int_t val)
 
void addTriggerIdCut (const UInt_t val)
 
Bool_t isPtOk (const Float_t pt) const
 Track and event cuts.
 
Bool_t isEtaOk (const Float_t eta) const
 
Bool_t isNHitsFitOk (const Float_t nHitsFit) const
 
Bool_t isNHitToNPossOk (const Float_t ratio) const
 
Bool_t isDcaOk (const Float_t dca) const
 
Bool_t isNSigmaOk (const Float_t nsigma) const
 
Bool_t isRapidityOk (const Float_t y) const
 
Bool_t isZVertexOk (const Float_t vz) const
 
Bool_t isRefMultOk (const Int_t refMult) const
 
Bool_t isTriggerOk (const UInt_t trigger) const
 
void PrintCuts () const
 Print all track selections.
 

Static Public Member Functions

static StEmbeddingQAUtilitiesinstance ()
 Get instance. More...
 

Detailed Description

Definition at line 70 of file StEmbeddingQAUtilities.h.

Constructor & Destructor Documentation

StEmbeddingQAUtilities::~StEmbeddingQAUtilities ( )
virtual

Destructor.

Destructor

Definition at line 109 of file StEmbeddingQAUtilities.cxx.

Member Function Documentation

Category StEmbeddingQAUtilities::getCategory ( const UInt_t  id) const

Get category from category id

Definition at line 128 of file StEmbeddingQAUtilities.cxx.

Int_t StEmbeddingQAUtilities::getCategoryId ( const TString  name) const

Category title from category id.

Find category id from the category name

Definition at line 164 of file StEmbeddingQAUtilities.cxx.

TString StEmbeddingQAUtilities::getCategoryName ( const UInt_t  id) const

Category from category id.

Get category name from category id

Definition at line 140 of file StEmbeddingQAUtilities.cxx.

TString StEmbeddingQAUtilities::getCategoryTitle ( const UInt_t  id) const

Category name from category id.

Get category title from category id

Definition at line 152 of file StEmbeddingQAUtilities.cxx.

Referenced by StEmbeddingQA::book().

Int_t StEmbeddingQAUtilities::getGeantId ( const UInt_t  geantid) const

Return geant id.

Return geantid itself except for geantid > 50000

Definition at line 461 of file StEmbeddingQAUtilities.cxx.

StParticleDefinition * StEmbeddingQAUtilities::getParticleDefinition ( const UInt_t  geantid) const

runnumber = runid - (year - 2000 + 1) * 10^6

Get StParticleDefinition from geantid

Take into account the modulus of geant id by 10k

Definition at line 439 of file StEmbeddingQAUtilities.cxx.

References isGeantIdOk().

Referenced by StEmbeddingQADraw::getParticleName(), and StEmbeddingQATrack::isNSigmaOk().

StEmbeddingQAUtilities * StEmbeddingQAUtilities::instance ( )
static
Bool_t StEmbeddingQAUtilities::isContaminated ( const TString  name) const

Check whether the track is Ghost pair or not.

Check the input string whether it is Contaminated pairs or not

Definition at line 212 of file StEmbeddingQAUtilities.cxx.

Referenced by isEmbedding().

Bool_t StEmbeddingQAUtilities::isElectrons ( const Int_t  geantid) const

Check the input geantid is pbar.

Check the input string geant id is electron/positron NOTE: electron/positron id's are currently hard-coded. I'm not sure I can avoid this at this point (H. Masui)

Definition at line 286 of file StEmbeddingQAUtilities.cxx.

References isElectron(), and isPositron().

Referenced by isEPiKP().

Bool_t StEmbeddingQAUtilities::isEmbedding ( const TString  name) const

Check whether the track is global track or not.

Check the input string whether it is Embeeding pairs or not Embedding pairs = (Matched || Ghost || Contaminated || Matched global)

Definition at line 244 of file StEmbeddingQAUtilities.cxx.

References isContaminated(), isGhost(), isMatched(), and isMatchedGlobal().

Bool_t StEmbeddingQAUtilities::isEPiKP ( const Int_t  geantid) const

Check the input geantid is protons.

Check the input string geant id is e/pi/K/p

Definition at line 322 of file StEmbeddingQAUtilities.cxx.

References isElectrons(), isKaons(), isPions(), and isProtons().

Referenced by StEmbeddingQATrack::isNSigmaOk().

Bool_t StEmbeddingQAUtilities::isGamma ( const Int_t  geantid) const

Check the input geantid is e/pi/K/p.

Check geantid is gamma or not

Definition at line 330 of file StEmbeddingQAUtilities.cxx.

Bool_t StEmbeddingQAUtilities::isGeantIdOk ( const UInt_t  geantid) const

Check geant id is defined in StParticleTable or not.

Check geant id in StParticleTable Take into account the modulus of geantid by 10k

Definition at line 452 of file StEmbeddingQAUtilities.cxx.

Referenced by getParticleDefinition().

Bool_t StEmbeddingQAUtilities::isGhost ( const TString  name) const

Check whether the track is Matched pair or not.

Check the input string whether it is Ghost pairs or not

Definition at line 204 of file StEmbeddingQAUtilities.cxx.

Referenced by isEmbedding().

Bool_t StEmbeddingQAUtilities::isGlobal ( const TString  name) const

Check whether the track is primary track or not.

Check the input string whether it is Global tracks (real) or not

Definition at line 236 of file StEmbeddingQAUtilities.cxx.

Referenced by isReal().

Bool_t StEmbeddingQAUtilities::isKaons ( const Int_t  geantid) const

Check the input geantid is pions.

Check the input string geant id is kaons NOTE: kaon id's are currently hard-coded. I'm not sure I can avoid this at this point (H. Masui)

Definition at line 304 of file StEmbeddingQAUtilities.cxx.

References isKMinus(), and isKPlus().

Referenced by isEPiKP().

Bool_t StEmbeddingQAUtilities::isMatched ( const TString  name) const

Check whether the track is MC track or not.

Check the input string whether it is Mathced pairs or not

Definition at line 196 of file StEmbeddingQAUtilities.cxx.

Referenced by isEmbedding().

Bool_t StEmbeddingQAUtilities::isMatchedGlobal ( const TString  name) const

Check whether the track is Contaminated pair or not.

Check the input string whether it is Matched global pairs or not

Definition at line 220 of file StEmbeddingQAUtilities.cxx.

Referenced by isEmbedding().

Bool_t StEmbeddingQAUtilities::isMc ( const TString  name) const

Category id from category name.

Check the input string whether it is MC tracks or not

Definition at line 188 of file StEmbeddingQAUtilities.cxx.

Referenced by StEmbeddingQATrack::isNHitOk(), and StEmbeddingQATrack::isNHitToNPossOk().

Bool_t StEmbeddingQAUtilities::isPions ( const Int_t  geantid) const

Check the input geantid is electrons.

Check the input string geant id is pions NOTE: pion id's are currently hard-coded. I'm not sure I can avoid this at this point (H. Masui)

Definition at line 295 of file StEmbeddingQAUtilities.cxx.

References isPiMinus(), and isPiPlus().

Referenced by isEPiKP().

Bool_t StEmbeddingQAUtilities::isPrimary ( const TString  name) const

Check whether the track is Contaminated pair or not.

Check the input string whether it is Primary tracks (real) or not

Definition at line 228 of file StEmbeddingQAUtilities.cxx.

Referenced by isReal().

Bool_t StEmbeddingQAUtilities::isProtons ( const Int_t  geantid) const

Check the input geantid is kaons.

Check the input string geant id is protons NOTE: proton id's are currently hard-coded. I'm not sure I can avoid this at this point (H. Masui)

Definition at line 313 of file StEmbeddingQAUtilities.cxx.

References isPBar(), and isProton().

Referenced by isEPiKP().

Bool_t StEmbeddingQAUtilities::isReal ( const TString  name) const

Check whether the track is embedding pair or not.

Check the input string whether it is Real tracks or not Real tracks = (Primary || Global)

Definition at line 253 of file StEmbeddingQAUtilities.cxx.

References isGlobal(), and isPrimary().

Referenced by StEmbeddingQATrack::isNSigmaOk(), StEmbeddingQATrack::isPtAndEtaOk(), and StEmbeddingQATrack::isRapidityOk().

void StEmbeddingQAUtilities::setStyle ( ) const

Check the input geantid is gamma.

Set font id (=42)

Do not display statistics

SetPalette(1)

Set Canvas style

Set fill color (=10) for Statistics

Set Text size and font

Set Histogram style Set Ndivision=505

Set label size, offset and font

Set title size, offset and font for x/y/z axes

Set pad title font

Set title style for histograms

Set Legend border size (=0)

Set date attributes

Definition at line 338 of file StEmbeddingQAUtilities.cxx.

Referenced by StEmbeddingQA::book(), and StEmbeddingQADraw::init().

void StEmbeddingQAUtilities::setStyle ( TH1 *  h) const

Set overall styles.

Set style for input histogram

Set font (=42) for x/y/z axes

Set title size and offset for x/y/z axes

Set label size, offset, font and Ndivisions for x/y/z axes

Set line width (=2)

Definition at line 411 of file StEmbeddingQAUtilities.cxx.


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