1 #include "antiNumuCCMultiTrackFGD2Selection.hxx" 2 #include "antiNumuCCMultiTrackSelection.hxx" 3 #include "antiNumuCCFGD2Selection.hxx" 4 #include "numuCCMultiPiFGD2Selection.hxx" 5 #include "baseSelection.hxx" 6 #include "CutUtils.hxx" 7 #include "Parameters.hxx" 8 #include "SubDetId.hxx" 10 #include "EventBoxId.hxx" 13 antiNumuCCMultiTrackFGD2Selection::antiNumuCCMultiTrackFGD2Selection(
bool forceBreak):
SelectionBase(forceBreak,
EventBoxId::kEventBoxTracker) {
18 _antiNumuCCMultiTrackSelection.Initialize();
26 CopySteps(_antiNumuCCFGD2Selection);
41 SetBranchAlias(0,
"CC1Track",0);
42 SetBranchAlias(1,
"CCNTracks",1);
45 SetPreSelectionAccumLevel(2);
53 SetDetectorFV(SubDetId::kFGD2);
55 _antiNumuCCFGD2Selection.SetDetectorFV(SubDetId::kFGD2);
56 _antiNumuCCMultiTrackSelection.SetDetectorFV(SubDetId::kFGD2);
60 bool antiNumuCCMultiTrackFGD2Selection::FillEventSummary(
AnaEventC& event, Int_t allCutsPassed[]){
65 static_cast<AnaEventSummaryB*
>(
event.Summary)->EventSample = SampleId::kFGD2AntiNuMuCC1Track;
68 else if (allCutsPassed[1]){
69 static_cast<AnaEventSummaryB*
>(
event.Summary)->EventSample = SampleId::kFGD2AntiNuMuCCNTracks;
73 return (static_cast<AnaEventSummaryB*>(event.
Summary)->EventSample != SampleId::kUnassigned);
86 static_cast<AnaEventSummaryB*>(event.
Summary)->LeptonCandidate[SampleId::kFGD2AntiNuMuCCNTracks] = box.
HMPtrack;
88 for(
int i = 0; i < 4; ++i){
107 EventBoxB* EventBox =
event.EventBoxes[EventBoxId::kEventBoxTracker];
119 EventBoxB* EventBox =
event.EventBoxes[EventBoxId::kEventBoxTracker];
128 return _antiNumuCCFGD2Selection.IsRelevantRecObjectForSystematic(event,track,systId,branch);
135 return _antiNumuCCFGD2Selection.IsRelevantTrueObjectForSystematic(event,trueTrack,systId,branch);
142 return _antiNumuCCMultiTrackSelection.IsRelevantSystematic(event, box, systId, branch);
149 return _antiNumuCCFGD2Selection.InitializeEvent(event);
156 return _antiNumuCCFGD2Selection.CheckRedoSelection(event, PreviousToyBox, redoFromStep);
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 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...
void InitializeEvent(AnaEventC &event)
Fill the EventBox with the objects needed by this selection.
AnaTrackB * MainTrack
For storing the Main Track (The lepton candidate in geranal: HMN or HMP track)
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.
Int_t nRecObjectsInGroup[NMAXRECOBJECTGROUPS]
----—— RecObjects and TrueRecObjects used in the selection and systematics ------------—— ...
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 DefineSteps()
Define all steps in the selection.
AnaEventSummaryC * Summary
A summary of the event with high level quantities.
bool Apply(AnaEventC &event, ToyBoxB &box) const
AnaTrueParticleB * GetTrueParticle() const
Return a casted version of the AnaTrueObject associated.
bool Apply(AnaEventC &event, ToyBoxB &box) const
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