Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
EpFinder Class Reference

#include <analysis/blob/master/EpFinder/EpFinder.h>

+ Collaboration diagram for EpFinder:

Public Member Functions

 EpFinder (int nEventTypeBins=10, char const *OutFileName="EpFinderCorrectionHistograms_OUTPUT.root", char const *CorrectionFileName="EpFinderCorrectionHistograms_INPUT.root", int pbinsx=1, int pbinsy=1)
 
 ~EpFinder ()
 
void SetnMipThreshold (double thresh)
 
void SetMaxTileWeight (double MAX)
 
void Finish ()
 
EpInfo Results (std::vector< EpHit > *EpdHits, int EventTypeID)
 
TString Report ()
 

Private Member Functions

bool OrderOutsideRange (int order)
 
double GetPsiInRange (double Qx, double Qy, int order)
 

Private Attributes

int mNumberOfEventTypeBins
 
double mThresh
 
double mMax
 
TProfile * mAveCosDeltaPsi [_EpOrderMax]
 
TFile * mCorrectionInputFile
 
TFile * mCorrectionOutputFile
 
TProfile2D * mEpShiftOutput_sin [_EpOrderMax]
 
TProfile2D * mEpShiftOutput_cos [_EpOrderMax]
 
TProfile2D * mEpShiftInput_sin [_EpOrderMax]
 
TProfile2D * mEpShiftInput_cos [_EpOrderMax]
 
TH2D * mPhiWeightInput
 
TH2D * mPhiWeightOutput
 
TH2D * mPhiAveraged
 

Detailed Description

Definition at line 106 of file EpFinder.h.

View newest version in sPHENIX GitHub at line 106 of file EpFinder.h

Constructor & Destructor Documentation

EpFinder::EpFinder ( int  nEventTypeBins = 10,
char const *  OutFileName = "EpFinderCorrectionHistograms_OUTPUT.root",
char const *  CorrectionFileName = "EpFinderCorrectionHistograms_INPUT.root",
int  pbinsx = 1,
int  pbinsy = 1 
)

Constructor. Initializes values and reads correction file, if it exists. This file is actually PRODUCED by the code in an earlier run. The user must rename the file EpFinderCorrectionHistograms_OUTPUT.root if he wants to use it.

Parameters
CorrectionFileNameFull name of the .root file with correction histograms.
nEventTypeBinsNumber of EventType bins that the user is using. Up to the user to have a consistent usage, here and in analysis.
pbinsx,pbinsyNumber of detector index bins for phi correction

Definition at line 16 of file EpFinder.C.

View newest version in sPHENIX GitHub at line 16 of file EpFinder.C

References _EpOrderMax, _EpTermsMax, mCorrectionInputFile, mCorrectionOutputFile, mEpShiftInput_cos, mEpShiftInput_sin, mEpShiftOutput_cos, mEpShiftOutput_sin, mNumberOfEventTypeBins, mPhiAveraged, mPhiWeightInput, and mPhiWeightOutput.

EpFinder::~EpFinder ( )
inline

Definition at line 117 of file EpFinder.h.

View newest version in sPHENIX GitHub at line 117 of file EpFinder.h

Member Function Documentation

void EpFinder::Finish ( )

call this method at the end of your run to output correction histograms to a file (you can choose to use these or not) and to calculate EP resolutions

Definition at line 67 of file EpFinder.C.

View newest version in sPHENIX GitHub at line 67 of file EpFinder.C

References mCorrectionInputFile, mCorrectionOutputFile, mPhiAveraged, and mPhiWeightOutput.

Referenced by EpFinderEval::End().

+ Here is the caller graph for this function:

double EpFinder::GetPsiInRange ( double  Qx,
double  Qy,
int  order 
)
private

Definition at line 213 of file EpFinder.C.

View newest version in sPHENIX GitHub at line 213 of file EpFinder.C

References double().

Referenced by Results().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool EpFinder::OrderOutsideRange ( int  order)
private

Definition at line 225 of file EpFinder.C.

View newest version in sPHENIX GitHub at line 225 of file EpFinder.C

References _EpOrderMax.

TString EpFinder::Report ( )

Returns a big string that tells in text what the settings were. This is for your convenience and is of course optional. I like to put a concatenation of such Reports into a text file, so I "autodocument" what were the settings for a given run

Definition at line 239 of file EpFinder.C.

View newest version in sPHENIX GitHub at line 239 of file EpFinder.C

References mMax, mNumberOfEventTypeBins, and mThresh.

Referenced by EpFinderEval::Init().

+ Here is the caller graph for this function:

EpInfo EpFinder::Results ( std::vector< EpHit > *  EpdHits,
int  EventTypeID 
)

returns all information about the EP. A large object of type StEpdEpInfo is returned, so you don't have to call the EpFinder over and over again for various information

Parameters
EpdHitsEpd Hits in a TClones array. Will be decoded as StEpdHit, StMuEpdHit, or StPicoEpdHit as dictated by mFormatUsed
primVertexprimary vertex position for this event
EventTypeIDuser-defined integer specifying EventType of the event. User must use same convention in correction histograms and weights

note the "+1" since EventTypeId begins at zero

note the "+1" since EventTypeId begins at zero

Definition at line 81 of file EpFinder.C.

View newest version in sPHENIX GitHub at line 81 of file EpFinder.C

References _EpOrderMax, _EpTermsMax, assert, double(), GetPsiInRange(), i, mEpShiftInput_cos, mEpShiftInput_sin, mEpShiftOutput_cos, mEpShiftOutput_sin, mMax, mNumberOfEventTypeBins, mPhiAveraged, mPhiWeightInput, mPhiWeightOutput, mThresh, ActsTests::PropagationDatasets::phi, pi, EpInfo::PsiPhiWeighted, EpInfo::PsiPhiWeightedAndShifted, EpInfo::PsiRaw, EpInfo::QphiWeightedOneSide, EpInfo::QrawOneSide, Acts::Test::tmp(), EpInfo::WheelSumWeightsPhiWeighted, EpInfo::WheelSumWeightsRaw, ambiguity_solver_full_chain::x, and y.

Referenced by EpFinderEval::fill_tree().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void EpFinder::SetMaxTileWeight ( double  MAX)
inline

sets the maximum weight, in units of nMIP, for determining tile weights TileWeight = (EpdHit->nMIP()>thresh)?((EpdHit->nMIP()>MAX)?MAX:EpdHit->nMIP()):0;

Parameters
MAXmaximum tile weight. If epdHit->nMIP()>MAX then weight=MAX

Definition at line 127 of file EpFinder.h.

View newest version in sPHENIX GitHub at line 127 of file EpFinder.h

References Acts::Logging::MAX, and mMax.

Referenced by EpFinderEval::Init().

+ Here is the caller graph for this function:

void EpFinder::SetnMipThreshold ( double  thresh)
inline

sets the threshold, in units of nMIP, for determining tile weights TileWeight = (EpdHit->nMIP()>thresh)?((EpdHit->nMIP()>MAX)?MAX:EpdHit->nMIP()):0;

Parameters
threshthreshold. If epdHit->nMIP() is less than thresh, then weight is zero

Definition at line 122 of file EpFinder.h.

View newest version in sPHENIX GitHub at line 122 of file EpFinder.h

References mThresh.

Referenced by EpFinderEval::Init().

+ Here is the caller graph for this function:

Member Data Documentation

TProfile* EpFinder::mAveCosDeltaPsi[_EpOrderMax]
private

Definition at line 159 of file EpFinder.h.

View newest version in sPHENIX GitHub at line 159 of file EpFinder.h

TFile* EpFinder::mCorrectionInputFile
private

Definition at line 161 of file EpFinder.h.

View newest version in sPHENIX GitHub at line 161 of file EpFinder.h

Referenced by EpFinder(), and Finish().

TFile* EpFinder::mCorrectionOutputFile
private

Definition at line 162 of file EpFinder.h.

View newest version in sPHENIX GitHub at line 162 of file EpFinder.h

Referenced by EpFinder(), and Finish().

TProfile2D* EpFinder::mEpShiftInput_cos[_EpOrderMax]
private

Definition at line 169 of file EpFinder.h.

View newest version in sPHENIX GitHub at line 169 of file EpFinder.h

Referenced by EpFinder(), and Results().

TProfile2D* EpFinder::mEpShiftInput_sin[_EpOrderMax]
private

Definition at line 168 of file EpFinder.h.

View newest version in sPHENIX GitHub at line 168 of file EpFinder.h

Referenced by EpFinder(), and Results().

TProfile2D* EpFinder::mEpShiftOutput_cos[_EpOrderMax]
private

Definition at line 166 of file EpFinder.h.

View newest version in sPHENIX GitHub at line 166 of file EpFinder.h

Referenced by EpFinder(), and Results().

TProfile2D* EpFinder::mEpShiftOutput_sin[_EpOrderMax]
private

Definition at line 165 of file EpFinder.h.

View newest version in sPHENIX GitHub at line 165 of file EpFinder.h

Referenced by EpFinder(), and Results().

double EpFinder::mMax
private

Definition at line 157 of file EpFinder.h.

View newest version in sPHENIX GitHub at line 157 of file EpFinder.h

Referenced by Report(), Results(), and SetMaxTileWeight().

int EpFinder::mNumberOfEventTypeBins
private

Definition at line 153 of file EpFinder.h.

View newest version in sPHENIX GitHub at line 153 of file EpFinder.h

Referenced by EpFinder(), Report(), and Results().

TH2D* EpFinder::mPhiAveraged
private

Definition at line 173 of file EpFinder.h.

View newest version in sPHENIX GitHub at line 173 of file EpFinder.h

Referenced by EpFinder(), Finish(), and Results().

TH2D* EpFinder::mPhiWeightInput
private

Definition at line 171 of file EpFinder.h.

View newest version in sPHENIX GitHub at line 171 of file EpFinder.h

Referenced by EpFinder(), and Results().

TH2D* EpFinder::mPhiWeightOutput
private

Definition at line 172 of file EpFinder.h.

View newest version in sPHENIX GitHub at line 172 of file EpFinder.h

Referenced by EpFinder(), Finish(), and Results().

double EpFinder::mThresh
private

Definition at line 156 of file EpFinder.h.

View newest version in sPHENIX GitHub at line 156 of file EpFinder.h

Referenced by Report(), Results(), and SetnMipThreshold().


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