Analysis Software
Documentation for sPHENIX simulation software
|
#include <analysis/blob/master/EpFinder/EpFinder.h>
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 |
Definition at line 106 of file EpFinder.h.
View newest version in sPHENIX GitHub at line 106 of file EpFinder.h
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.
CorrectionFileName | Full name of the .root file with correction histograms. |
nEventTypeBins | Number of EventType bins that the user is using. Up to the user to have a consistent usage, here and in analysis. |
pbinsx,pbinsy | Number 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.
|
inline |
Definition at line 117 of file EpFinder.h.
View newest version in sPHENIX GitHub at line 117 of file EpFinder.h
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().
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().
|
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().
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
EpdHits | Epd Hits in a TClones array. Will be decoded as StEpdHit, StMuEpdHit, or StPicoEpdHit as dictated by mFormatUsed |
primVertex | primary vertex position for this event |
EventTypeID | user-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().
|
inline |
sets the maximum weight, in units of nMIP, for determining tile weights TileWeight = (EpdHit->nMIP()>thresh)?((EpdHit->nMIP()>MAX)?MAX:EpdHit->nMIP()):0;
MAX | maximum 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().
|
inline |
sets the threshold, in units of nMIP, for determining tile weights TileWeight = (EpdHit->nMIP()>thresh)?((EpdHit->nMIP()>MAX)?MAX:EpdHit->nMIP()):0;
thresh | threshold. 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().
|
private |
Definition at line 159 of file EpFinder.h.
View newest version in sPHENIX GitHub at line 159 of file EpFinder.h
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().