1 #include "tutorialVariationSystematics.hxx" 2 #include "EventBoxTracker.hxx" 3 #include "ND280AnalysisUtils.hxx" 85 std::cout << itrk <<
" --> p0 = " << track->
Momentum << std::endl;
92 std::cout <<
"p = " << p << std::endl;
137 if (det == SubDetId::kFGD1){
138 IDs[0] = EventBoxTracker::kTracksWithTPCInFGD1FV;
141 else if (det == SubDetId::kFGD2){
142 IDs[0] = EventBoxTracker::kTracksWithTPCInFGD2FV;
145 else if (det == SubDetId::kFGD){
146 IDs[0] = EventBoxTracker::kTracksWithTPCInFGD1FV;
147 IDs[1] = EventBoxTracker::kTracksWithTPCInFGD2FV;
Int_t _index
The index of this systematic (needed by SystematicsManager);.
const AnaTrackB * GetOriginalTrack() const
Return a casted version of the original AnaParticleB associated.
Int_t GetRelevantRecObjectGroups(const SelectionBase &sel, Int_t *IDs) const
Get the TrackGroup IDs array for this systematic.
Float_t * Variations
the vector of Variations, one for each of the systematic parameters
Float_t _scaleError
Width of the scale distribution.
tutorialVariationSystematics()
SystBoxB * GetSystBox(const AnaEventC &event, Int_t isel=0, Int_t ibranch=0) const
Get the SystBox corresponding to a selection, branch and event.
Float_t Momentum
The reconstructed momentum of the particle, at the start position.
Representation of a global track.
ToyVariations * GetToyVariations(UInt_t index) const
returns the variations for a given systematic (index)
virtual bool UndoSystematic(AnaEventC &event)
Undo the systematic variations done by ApplyVariation. This is faster tha reseting the full Spill...
Int_t nRelevantRecObjects
----—— Relevant rec objects and true objects for each systematic ------------—— ...
bool GetParametersForBin(Int_t index, Float_t &mean, Float_t &sigma)
Gets the bin values for a source provided the bin index.
Float_t _scale
Mean of the scale distribution.
virtual void Apply(const ToyExperiment &toy, AnaEventC &event)
Apply the systematic.
SubDetId_h GetDetectorFV(Int_t ibranch=0) const
Get the detector in which the Fiducial Volume is defined.