Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions sbnobj/SBND/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ add_subdirectory(Trigger)
add_subdirectory(ToF)
add_subdirectory(Timing)
add_subdirectory(Blip)
add_subdirectory(QELambdaReco)
16 changes: 16 additions & 0 deletions sbnobj/SBND/QELambdaReco/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
cet_make_library(
LIBRARY_NAME SBND_qelambda
SOURCE LambdaProducts.cc
SOURCE LambdaPID.cc
LIBRARIES
ROOT::Core
lardataobj::RecoBase
)

art_dictionary(
DICTIONARY_LIBRARIES
sbnobj::SBND_qelambda
)

install_headers()
install_source()
16 changes: 16 additions & 0 deletions sbnobj/SBND/QELambdaReco/LambdaPID.cc
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// LambdaPID.cc
#include "LambdaPID.hh"

void qelambda::QELambdaPID::SetDefault() {
VtxX = -999;
VtxY = -999;
VtxZ = -999;
ProtonKE = -999;
PionKE = -999;
ProtonPX = -999;
ProtonPY = -999;
ProtonPZ = -999;
PionPX = -999;
PionPY = -999;
PionPZ = -999;
}
26 changes: 26 additions & 0 deletions sbnobj/SBND/QELambdaReco/LambdaPID.hh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#ifndef SBND_LAMBDAPID_H
#define SBND_LAMBDAPID_H

#include <limits>

namespace qelambda {

struct QELambdaPID {
float VtxX = -999;
float VtxY = -999;
float VtxZ = -999;
float ProtonKE = -999;
float PionKE = -999;
float ProtonPX = -999;
float ProtonPY = -999;
float ProtonPZ = -999;
float PionPX = -999;
float PionPY = -999;
float PionPZ = -999;

void SetDefault();
};

} // namespace qelambda

#endif // SBND_LAMBDAPID_H
39 changes: 39 additions & 0 deletions sbnobj/SBND/QELambdaReco/LambdaProducts.cc
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
// LambdaProducts.cc
#include "LambdaProducts.hh"

void qelambda::QELambdaReco::SetDefault() {
SliceId = -1;

// FRANS
FransNUnassocOrigins = -1;
FransNMaxDirtUnassocHits = -1;
FransNAngles = -1;
FransContainedPhi = -999;
FransPzsign = 0;

FransScore = -999;
FransIota = -999;
FransDelta = -999;
FransEta = -999;
FransFitScore = -999;

// FRANS pfp id
FransTrack1ID = -1;
FransTrack2ID = -1;
FransMainTrackID = -1;

// Reco vertices
HyperonVtxX = -999;
HyperonVtxY = -999;
HyperonVtxZ = -999;
PrimLeptonVtxX = -999;
PrimLeptonVtxY = -999;
PrimLeptonVtxZ = -999;

MichelNMuonTracks = -1;
MichelRssRatio = -999;
MichelAngleQ80 = -999;
MichelDropRadius = -999;
MichelNBlips = -1;
MichelScore = -999;
}
51 changes: 51 additions & 0 deletions sbnobj/SBND/QELambdaReco/LambdaProducts.hh
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
#ifndef SBND_LAMBDAPRODUCTS_H
#define SBND_LAMBDAPRODUCTS_H

#include <limits>

namespace qelambda {

struct QELambdaReco {
// bool IsValid = false;
int SliceId = -1;

// FRANS
int FransNUnassocOrigins = -1;
int FransNMaxDirtUnassocHits = -1;
int FransNAngles = -1;
float FransContainedPhi = -999;
int FransPzsign = 0;

float FransScore = -999;
float FransIota = -999;
float FransDelta = -999;
float FransEta = -999;
float FransFitScore = -999;

// FRANS pfp id
int FransTrack1ID = -1;
int FransTrack2ID = -1;
int FransMainTrackID = -1;

// Reco vertices
float HyperonVtxX = -999;
float HyperonVtxY = -999;
float HyperonVtxZ = -999;
float PrimLeptonVtxX = -999;
float PrimLeptonVtxY = -999;
float PrimLeptonVtxZ = -999;

// Michel tagging
int MichelNMuonTracks = -1;
float MichelRssRatio = -999;
float MichelAngleQ80 = -999;
float MichelDropRadius = -999;
int MichelNBlips = -1;
float MichelScore = -999;

void SetDefault();
};

} // namespace qelambda

#endif
13 changes: 13 additions & 0 deletions sbnobj/SBND/QELambdaReco/classes.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#ifndef SBND_LAMBDARECO_CLASSES_H
#define SBND_LAMBDARECO_CLASSES_H

#include "canvas/Persistency/Common/Assns.h"
#include "canvas/Persistency/Common/Wrapper.h"
#include "canvas/Persistency/Common/Ptr.h"

#include "lardataobj/RecoBase/Slice.h"

#include "sbnobj/SBND/QELambdaReco/LambdaProducts.hh"
#include "sbnobj/SBND/QELambdaReco/LambdaPID.hh"

#endif // SBND_LAMBDARECO_CLASSES_H
18 changes: 18 additions & 0 deletions sbnobj/SBND/QELambdaReco/classes_def.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<lcgdict>
<class name="qelambda::QELambdaReco"/>
<class name="qelambda::QELambdaPID"/>

<!-- <class name="art::Ptr<qelambda::QELambdaReco>"/>
<class name="art::PtrVector<qelambda::QELambdaReco>"/>
<class name="std::vector<qelambda::QELambdaReco>"/>
<class name="std::vector<art::Ptr<qelambda::QELambdaReco>>"/> -->

<class name="art::Wrapper<qelambda::QELambdaReco>"/>
<class name="art::Wrapper<qelambda::QELambdaPID>"/>
<!-- <class name="art::Wrapper<std::vector<qelambda::QELambdaReco>>"/> -->
<!-- <class name="art::Wrapper<std::vector<qelambda::QELambdaPID>>"/> -->
<!-- <class name="std::vector<qelambda::QELambdaPID>"/> -->
<!-- <class name="art::Ptr<qelambda::QELambdaPID>"/>
<class name="art::PtrVector<qelambda::QELambdaPID>"/>
<class name="std::vector<art::Ptr<qelambda::QELambdaPID>>"/> -->
</lcgdict>