diff --git a/sbnobj/SBND/CMakeLists.txt b/sbnobj/SBND/CMakeLists.txt index 7eeaf198..adc35346 100644 --- a/sbnobj/SBND/CMakeLists.txt +++ b/sbnobj/SBND/CMakeLists.txt @@ -4,3 +4,4 @@ add_subdirectory(Trigger) add_subdirectory(ToF) add_subdirectory(Timing) add_subdirectory(Blip) +add_subdirectory(QELambdaReco) \ No newline at end of file diff --git a/sbnobj/SBND/QELambdaReco/CMakeLists.txt b/sbnobj/SBND/QELambdaReco/CMakeLists.txt new file mode 100644 index 00000000..f0c5c6f3 --- /dev/null +++ b/sbnobj/SBND/QELambdaReco/CMakeLists.txt @@ -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() \ No newline at end of file diff --git a/sbnobj/SBND/QELambdaReco/LambdaPID.cc b/sbnobj/SBND/QELambdaReco/LambdaPID.cc new file mode 100644 index 00000000..738f7280 --- /dev/null +++ b/sbnobj/SBND/QELambdaReco/LambdaPID.cc @@ -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; +} \ No newline at end of file diff --git a/sbnobj/SBND/QELambdaReco/LambdaPID.hh b/sbnobj/SBND/QELambdaReco/LambdaPID.hh new file mode 100644 index 00000000..14b94e50 --- /dev/null +++ b/sbnobj/SBND/QELambdaReco/LambdaPID.hh @@ -0,0 +1,26 @@ +#ifndef SBND_LAMBDAPID_H +#define SBND_LAMBDAPID_H + +#include + +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 \ No newline at end of file diff --git a/sbnobj/SBND/QELambdaReco/LambdaProducts.cc b/sbnobj/SBND/QELambdaReco/LambdaProducts.cc new file mode 100644 index 00000000..4d4cd19d --- /dev/null +++ b/sbnobj/SBND/QELambdaReco/LambdaProducts.cc @@ -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; +} diff --git a/sbnobj/SBND/QELambdaReco/LambdaProducts.hh b/sbnobj/SBND/QELambdaReco/LambdaProducts.hh new file mode 100644 index 00000000..b75e289c --- /dev/null +++ b/sbnobj/SBND/QELambdaReco/LambdaProducts.hh @@ -0,0 +1,51 @@ +#ifndef SBND_LAMBDAPRODUCTS_H +#define SBND_LAMBDAPRODUCTS_H + +#include + +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 \ No newline at end of file diff --git a/sbnobj/SBND/QELambdaReco/classes.h b/sbnobj/SBND/QELambdaReco/classes.h new file mode 100644 index 00000000..a1811400 --- /dev/null +++ b/sbnobj/SBND/QELambdaReco/classes.h @@ -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 \ No newline at end of file diff --git a/sbnobj/SBND/QELambdaReco/classes_def.xml b/sbnobj/SBND/QELambdaReco/classes_def.xml new file mode 100644 index 00000000..e460de69 --- /dev/null +++ b/sbnobj/SBND/QELambdaReco/classes_def.xml @@ -0,0 +1,18 @@ + + + + + + + + + + + + + \ No newline at end of file