1 #include "MomentumScaleSystematics.hxx" 2 #include "ND280AnalysisUtils.hxx" 3 #include "EventBoxTracker.hxx" 4 #include "Parameters.hxx" 13 _useP0DFV = (bool) ND::params().
GetParameterI(
"psycheSystematics.Tracker.UseP0DFV");
30 ApplyP0DTPC(toy,event);
39 std::cout << itrk <<
" --> p0 = " << track->
Momentum << std::endl;
46 std::cout <<
"p = " << p << std::endl;
58 std::cout <<
"MomentumScaleSystematics::ApplyVariation(): " << box->
nRelevantRecObjects <<
" and? "<<toy.Variations[0]<< std::endl;
65 if (!p0dTrack || p0dTrack->ELoss < 0)
continue;
67 double trackerMomentum = track->
Momentum - p0dTrack->ELoss;
70 std::cout << itrk <<
" --> p0 = " << track->
Momentum << std::endl;
79 std::cout <<
"p = " << track->
Momentum << std::endl;
112 if (det == SubDetId::kFGD1 || det == SubDetId::kFGD){
113 IDs[ngroups++] = EventBoxTracker::kTracksWithTPCInFGD1FV;
115 if (det == SubDetId::kFGD2 || det == SubDetId::kFGD){
116 IDs[ngroups++] = EventBoxTracker::kTracksWithTPCInFGD2FV;
118 if (det == SubDetId::kP0D){
119 IDs[ngroups++] = EventBoxTracker::kTracksWithTPCInP0DFV;
Int_t _index
The index of this systematic (needed by SystematicsManager);.
const AnaTrackB * GetOriginalTrack() const
Return a casted version of the original AnaParticleB associated.
AnaP0DParticleB * P0DSegments[NMAXP0DS]
The P0D segments that contributed to this global track.
Float_t * Variations
the vector of Variations, one for each of the systematic parameters
int GetParameterI(std::string)
Get parameter. Value is returned as integer.
SystBoxB * GetSystBox(const AnaEventC &event, Int_t isel=0, Int_t ibranch=0) const
Get the SystBox corresponding to a selection, branch and event.
bool UndoSystematic(AnaEventC &event)
Undo the systematic variations done by ApplyVariation. This is faster tha reseting the full Spill...
Float_t Momentum
The reconstructed momentum of the particle, at the start position.
void Apply(const ToyExperiment &toy, AnaEventC &event)
Apply the systematic.
Int_t GetRelevantRecObjectGroups(const SelectionBase &sel, Int_t *IDs) const
Get the TrackGroup IDs array for this systematic.
Float_t _scaleError
Width of the scale distribution.
Representation of a global track.
ToyVariations * GetToyVariations(UInt_t index) const
returns the variations for a given systematic (index)
UInt_t GetNBranches() const
Return the number of branches.
Int_t nRelevantRecObjects
----—— Relevant rec objects and true objects for each systematic ------------—— ...
Representation of a P0D segment of a global track.
SubDetId_h GetDetectorFV(Int_t ibranch=0) const
Get the detector in which the Fiducial Volume is defined.
MomentumScaleSystematics()
bool GetSigmaValueForBin(Int_t index, Float_t &sigma)
Get only mean or sigma.