HighLAND
|
#include <TPCPIDVariation.hxx>
Public Types | |
enum | HypEnum { kMuon = 0, kElectron, kProton, kPion, kKaon, kNPULLS } |
Enum for particle hypothesis. | |
Public Member Functions | |
TPCPIDVariation () | |
Instantiate the PID variation,. | |
virtual void | ApplyVariation (AnaTrackB *track, const ToyExperiment &exp) |
Apply variation for a track, the most general case given a certain ToyExperiment. | |
virtual bool | GetVariation (const AnaTPCParticleB &tpcTrack, Float_t &mean_var, Float_t &sigma_var, const AnaTrackB &track, const ToyExperiment &exp)=0 |
virtual bool | GetPIDParams (const AnaTPCParticleB &tpcTrack, Float_t &dEdxExp, Float_t &dEdxSigma, const AnaTrackB &track) |
Protected Attributes | |
BinnedParams * | _mean [kNPULLS] |
BinnedParams * | _sigma [kNPULLS] |
This variation that smears that the measured dEdXMeas (CT) for the TPC segments of the track The smearing is done assuming the variation based on pull parameters
Definition at line 12 of file TPCPIDVariation.hxx.
|
virtual |
Get the expected dEdX and error, keep it virtual so that one can easily add new hypothesis, e.g. kaons Global track is also provided so that one can use it for example to retrieve the PID info
Definition at line 89 of file TPCPIDVariation.cxx.
|
pure virtual |
Get the variation, two params: one for mean and one for sigma Sigma_var: is the param to control how one wants to scale the pull sigma: (pull_sigma_new/pull_sigma_old) Mean_var: the shift one wants to apply to pull mean: pull_mean_new - pull_mean_old In principle should be enough to have it for the TPC segment but in the "regular" TPC PID syst code the corresponding truth track and momentum are retrived from the global track so keep it as a parameter as well Toy experiment is used to retrieve the variation
Implemented in TPCPIDPullMCCorrection, and TPCPIDSystematics.
|
protected |
Expect that the derived classes should use some data to store the params for the variations so keep the data-storage here
Definition at line 66 of file TPCPIDVariation.hxx.