1 #include "TPCClusterEffSystematics.hxx" 2 #include "ND280AnalysisUtils.hxx" 3 #include "CutUtils.hxx" 4 #include "SystematicUtils.hxx" 43 if (!tpcTrack)
continue;
79 Weight_h weight(TMath::Power(eff_w.Correction,(Float_t)nn)*((nn+1)*(Pineff.Correction)+1. )/ ((nn+1)*(1-Pnom)+1. ),
80 TMath::Power(eff_w.Systematic,(Float_t)nn)*((nn+1)*(Pineff.Systematic)+1. )/ ((nn+1)*(1-Pnom)+1. ));
95 if (det == SubDetId::kFGD1){
96 IDs[0] = EventBoxTracker::kTracksWithTPCInFGD1FV;
99 else if (det == SubDetId::kFGD2){
100 IDs[0] = EventBoxTracker::kTracksWithTPCInFGD2FV;
103 else if (det == SubDetId::kFGD){
104 IDs[0] = EventBoxTracker::kTracksWithTPCInFGD1FV;
105 IDs[1] = EventBoxTracker::kTracksWithTPCInFGD2FV;
107 }
else if (det == SubDetId::kP0D){
108 IDs[0] = EventBoxTracker::kTracksWithTPCInP0DFV;
Int_t _index
The index of this systematic (needed by SystematicsManager);.
Float_t * Variations
the vector of Variations, one for each of the systematic parameters
Int_t SelectionEnabledIndex
The enabled index of this selection this ToyBox belongs to.
Int_t NNodes
The number of nodes in the reconstructed object.
SystBoxB * GetSystBox(const AnaEventC &event, Int_t isel=0, Int_t ibranch=0) const
Get the SystBox corresponding to a selection, branch and event.
void SetNParameters(int N)
Set the number of systematic parameters associated to this systematic.
bool GetBinValues(Float_t value, Float_t &mean, Float_t &sigma)
Gets the bin values for a 1D source.
virtual bool IsRelevantRecObjectForSystematicInToy(const AnaEventC &, const ToyBoxB &, AnaRecObjectC *, SystId_h syst_index, Int_t branch=0) const
Is this track relevant for a given systematic (after selection, called for each toy) ...
Int_t GetRelevantRecObjectGroups(const SelectionBase &sel, Int_t ibranch, Int_t *IDs) const
Get the TrackGroup IDs array for this systematic.
Int_t SuccessfulBranch
The branch that is successful for this toy in the selection this ToyBox belongs to.
Representation of a global track.
TPCClusterEffSystematics()
Representation of a TPC segment of a global track.
ToyVariations * GetToyVariations(UInt_t index) const
returns the variations for a given systematic (index)
Float_t DirectionStart[3]
The reconstructed start direction of the particle.
Float_t meanMCANA
The mean value for each of the systematic parameters of the analysis sample.
Int_t nRelevantRecObjects
----—— Relevant rec objects and true objects for each systematic ------------—— ...
AnaParticleB * GetSegmentWithMostNodesInClosestTpc(const AnaTrackB &track)
Combined function to address NuMu selection needs as efficiently as possible - gets the TPC segment w...
Weight_h ComputeWeight(const ToyExperiment &, const AnaEventC &, const ToyBoxB &)
Int_t GetNBins()
Get the number of bins.
SubDetId_h GetDetectorFV(Int_t ibranch=0) const
Get the detector in which the Fiducial Volume is defined.