1 #include "antiNumuCCFGD2Selection.hxx" 2 #include "antiNumuCCSelection.hxx" 3 #include "numuCCFGD2Selection.hxx" 4 #include "baseSelection.hxx" 5 #include "CutUtils.hxx" 6 #include "SubDetId.hxx" 8 #include "EventBoxUtils.hxx" 11 antiNumuCCFGD2Selection::antiNumuCCFGD2Selection(
bool forceBreak):
SelectionBase(forceBreak,
EventBoxId::kEventBoxTracker) {
42 SetBranchAlias(0,
"trunk");
45 SetPreSelectionAccumLevel(2);
53 SetDetectorFV(SubDetId::kFGD2);
56 _numuCCFGD2Selection.SetDetectorFV(SubDetId::kFGD2);
61 bool antiNumuCCFGD2Selection::FillEventSummary(
AnaEventC& event, Int_t allCutsPassed[]){
64 if(allCutsPassed[0])
static_cast<AnaEventSummaryB*
>(
event.Summary)->EventSample = SampleId::kFGD2AntiNuMuCC;
66 return (static_cast<AnaEventSummaryB*>(event.
Summary)->EventSample != SampleId::kUnassigned);
79 for(
int i = 0; i < 4; i++){
176 return _numuCCFGD2Selection.IsRelevantRecObjectForSystematic(event,track,systId,branch);
183 return _numuCCFGD2Selection.IsRelevantTrueObjectForSystematic(event,trueTrack,systId,branch);
191 if (SystId::kFluxWeightNu)
195 if (SystId::kFluxWeightAntiNu)
199 _numuCCFGD2Selection.IsRelevantSystematic(event, box, systId, branch);
207 _numuCCFGD2Selection.InitializeEvent(event);
214 return _numuCCFGD2Selection.CheckRedoSelection(event,PreviousToyBox,redoFromStep);
void DefineSteps()
Define all steps in the selection.
AnaTrueVertexB * TrueVertex
Pointer to the AnaTrueVertexB of the interaction that created this AnaTrueParticleB.
Float_t PositionStart[4]
The reconstructed start position of the particle.
bool IsRelevantSystematic(const AnaEventC &event, const ToyBoxB &box, SystId_h systId, Int_t branch) const
Is this systematic relevant for this selection.
AnaTrackB * HMPtrack
For storing the highest momentum positive track.
bool IsRelevantTrueObjectForSystematic(const AnaEventC &event, AnaTrueObjectC *trueObj, SystId_h systId, Int_t branch) const
Is this true track relevant for a given systematic (prior to selection, call when initializing the ev...
Leading tracks with good quality in FGD1.
bool CheckRedoSelection(const AnaEventC &event, const ToyBoxB &PreviousToyBox, Int_t &redoFromStep)
void DefineDetectorFV()
Define the detector Fiducial Volume in which this selection is applied.
void InitializeEvent(AnaEventC &event)
Fill the EventBox with the objects needed by this selection.
AnaEventSummaryC * Summary
A summary of the event with high level quantities.
Find the Vertex. For the moment it's just the Star position of the HM track.
AnaTrueParticleB * GetTrueParticle() const
Return a casted version of the AnaTrueObject associated.
A cut on event quality. Requires good beam and ND280 data quality flags.
bool IsRelevantRecObjectForSystematic(const AnaEventC &event, AnaRecObjectC *recObj, SystId_h systId, Int_t branch) const
Is this track relevant for a given systematic (prior to selection, call when initializing the event...
void Initialize()
Initialize this selection: defines the steps and the detectorFV.
bool Apply(AnaEventC &event, ToyBoxB &box) const