Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
120 commits
Select commit Hold shift + click to select a range
2462565
added modules for TAC calibration from sean's fork
sophieehaight Mar 4, 2025
533da18
added TAC calibration modules to assemly and makefiles as well as as …
sophieehaight Mar 4, 2025
434fafd
added MModuleTACcut.cxx
sophieehaight Mar 4, 2025
14fc309
fixed formatting issues to adhere to nuclearizer style guide
sophieehaight Mar 5, 2025
207b6fa
added TAC cal/cut as a preceeding module in depth cal and strip pairi…
sophieehaight Mar 5, 2025
2986357
Cleanup: if/else and loop style conventions
snpike Mar 5, 2025
0675723
CHG: Remove TAC cut and calibration from depth and energy calibration…
snpike Mar 5, 2025
f3cb5da
BUG: Call MModule:Initialize
snpike Mar 5, 2025
524bcfe
ADD: MStripHit now has an m_TAC variable in addition to m_Timing
snpike Mar 5, 2025
7b02444
Cleanup: removed unused single-site only button
snpike Mar 6, 2025
5daf3db
Merge pull request #11 from snpike/tac_cal
snpike Mar 6, 2025
79c95c7
ADD: Charge trapping correction app
snpike Mar 6, 2025
f7f9b80
CHG: Handle all number of strip hits. New error messages
snpike Mar 6, 2025
91130d4
CHG: Only plot depth if Strip pairing is complete
snpike Mar 6, 2025
c1524f2
Fix for TAC calibration file not remembering.
parshadkp Mar 6, 2025
1a7f0c8
BUG: Save and load the state of the card cage override button
snpike Mar 6, 2025
1966091
Maximum and Minimum TAC value added as parameters to config file.
parshadkp Mar 6, 2025
2cb05ed
Merge pull request #15 from parshadkp/develop/em-parshad
snpike Mar 10, 2025
724442d
Merge branch 'main' into depthcal_cleanup
snpike Mar 19, 2025
da44d0d
Merge pull request #14 from snpike/depthcal_cleanup
snpike Mar 19, 2025
b8a3da6
ADD: Variables for nanosecond TAC cut
snpike Mar 21, 2025
01feb30
ADD: Options to input nanosecond TAC cut parameters
snpike Mar 21, 2025
7765c12
ADD: perform nanosecond TAC cut after TAC calibration
snpike Mar 21, 2025
924c7e0
CHG: new x-axis range and label
snpike Mar 21, 2025
98b180f
CHG: TAC calibration occurs after energy calibration
snpike Mar 21, 2025
6ff65f0
CHG: Look for Strip3D type detectors with 1 sensitive volume. Do not …
snpike Mar 31, 2025
043cf4d
CHG: Load splines and coefficients after determining detectors from g…
snpike Mar 31, 2025
3f78407
Cleanup: error handling and style conventions.
snpike Mar 31, 2025
935bd3f
Cleanup: for and if statement style conventions
snpike Apr 1, 2025
7ac319b
CHG: Updated error handling and messages. If any depth-CTD spline fai…
snpike Apr 1, 2025
4501636
Merge pull request #16 from snpike/no_named_detectors
zoglauer Apr 17, 2025
ede39bf
ADD: copied TrappingCorrection into TrappingCorrectionAm241 as a temp…
snpike May 1, 2025
13b800a
CHG: Load strip-by-strip shaping offset and coincidence window as a file
snpike May 2, 2025
f7d9274
CHG: Only plot timing if not cut
snpike May 2, 2025
17bbc01
cleaning up comments
snpike May 2, 2025
68669d4
Merge remote-tracking branch 'upstream/develop/em' into tac_cal_ns
snpike May 2, 2025
3021e41
comment cleanup
snpike May 2, 2025
925c93f
Merge pull request #18 from snpike/tac_cal_ns
snpike May 3, 2025
939cf7e
Merge branch 'main' into trapping_apps
snpike May 6, 2025
120c59b
Created new module, a HDF5 reader, which handles HDF hit data formats…
zoglauer May 13, 2025
913b1d7
BUG: Initialize m_Coeffs_Energy and compare to double
snpike May 22, 2025
9763e9c
BUG: removed unused DetID variable
snpike May 22, 2025
d678409
BUG: Parentheses for explicit ordering of logic
snpike May 22, 2025
2364813
CHG: Added some error checks
zoglauer May 28, 2025
037ebd5
Merge pull request #21 from snpike/warning_cleanup
snpike May 28, 2025
6ea1190
CHG: Parse new and old TAC calibration formats
snpike May 29, 2025
91c2fc2
Merge branch 'main' into new_taccal_format
snpike May 29, 2025
0720a15
Merge pull request #22 from snpike/new_taccal_format
snpike May 29, 2025
483dd40
BUG: l=0 and h=1 when parsing new TAC calibration format
snpike May 29, 2025
785c6af
Merge pull request #23 from snpike/taccal_fix
snpike May 29, 2025
41cecff
ADD: Flags indicating good timing and strip hit type (nearest neighbo…
snpike Jun 3, 2025
8fd748f
Merge pull request #24 from snpike/striphit_flags
snpike Jun 3, 2025
2c0c4b7
CHG: Handle nearest neighbor and guard ring strip hits, check that De…
snpike Jun 6, 2025
11fc59f
Merge branch 'main' into trapping_apps
snpike Jun 6, 2025
8afa53f
CHG: Updated event flags and storing options in roa files
robin4730 Jun 10, 2025
15a7b56
CHG: Upodates to roa event saving
zoglauer Jun 10, 2025
433aebe
CHG: Merged Sean's pull request by hand and added more sanity check
zoglauer Jun 10, 2025
69ae1d6
CHG: Handle Side (LV and HV) more consistently by explicitly mapping …
snpike Jun 10, 2025
5158cd7
Merge branch 'main' into taccal_fix
snpike Jun 11, 2025
670babe
CHG: Updated TAC cut and sanity checks
snpike Jun 11, 2025
ad14f12
typo in GUI
snpike Jun 11, 2025
ecadce8
CHG: Don't skip events just because they contain guard ring strip hits
snpike Jun 11, 2025
278aacf
Merge branch 'main' into trapping_apps
snpike Jun 11, 2025
d15dd6e
CHG: Removed nearest neighbor filter hack
snpike Jun 11, 2025
f3a0014
Revert "CHG: Don't skip events just because they contain guard ring s…
snpike Jun 12, 2025
9475dfd
CHG: Don't plot slow timing
snpike Jun 13, 2025
9a83898
CHG: Moved all TAC cut parameters into the input file rather than hav…
snpike Jun 17, 2025
13f935d
BUG: Repeated reading the same file if continuation was selected
zoglauer Jun 21, 2025
38f9abf
Merge branch 'main' into taccal_fix
snpike Jun 23, 2025
f9a6b9b
Merge pull request #27 from snpike/taccal_fix
snpike Jun 23, 2025
9550ecd
Merge branch 'main' into trapping_apps
snpike Jun 24, 2025
db6ca23
Updated guard ring and shield veto flag, added save option for events…
ckierans Jun 25, 2025
ff620b5
Removed extraneous m_Veto
ckierans Jun 25, 2025
233543b
BUG: Fixed uninitialized DetID when no header line is included in the…
snpike Jun 25, 2025
7a8fe42
Merge pull request #29 from snpike/detID_fix
snpike Jun 25, 2025
41d2b5c
Merge branch 'main' into trapping_apps
snpike Jun 25, 2025
89cb335
Merge branch 'cositools:develop/em' into develop/em
ckierans Jun 26, 2025
db8a4c8
Merge pull request #28 from ckierans/develop/em
snpike Jun 26, 2025
b73b708
CHG: Increase tolerance for detector thickness mismatch
snpike Jun 27, 2025
2448da3
CHG: Don't screen GR events based on tac cut file
snpike Jun 27, 2025
5b30477
CHG: Skip GR Veto events during depth calibration
snpike Jun 27, 2025
9c47306
Merge pull request #30 from snpike/depth_GRhandling
snpike Jun 27, 2025
17fcdc9
Merge branch 'main' into trapping_apps
snpike Jun 27, 2025
2a86979
CHG: Updated to work with updated TAC Calibration module. Also no lon…
snpike Jun 27, 2025
a15cc34
CHG: Enable multi-threaded processing
zoglauer Jun 29, 2025
822e1da
ADD: Protections against zero-data-bug
zoglauer Jun 29, 2025
f207b77
Merge branch 'main' into trapping_apps
snpike Jun 29, 2025
b9398e4
CHG: Read HDF5 files instead ROAs
snpike Jul 1, 2025
68816a3
CHG: Expand criteria up to 3x3 pixels to include nearest neighbors. D…
snpike Jul 1, 2025
d659b27
BUG: return true when passing -h, fix order of initializing messages
snpike Jul 1, 2025
70412c8
Revert "BUG: return true when passing -h, fix order of initializing m…
snpike Jul 1, 2025
c2a5fa3
BUG: fixed order of initialization messages
snpike Jul 1, 2025
2c2ca13
ADD: Nearest neighbot module - which currently just cuts NN events out
zoglauer Jul 2, 2025
83d4d91
CHG: Add option to exclude nearest neighbors
snpike Jul 2, 2025
08c5df5
ADD: Am241 Trapping correction app. Parameter saving not yet implemented
snpike Jul 2, 2025
08e8a00
BUG: Need to protect access to all expos in case we are in batch mode…
zoglauer Jul 3, 2025
d49bd60
CHG: Calculate and save HV and LV slopes (energy loss per CTD)
snpike Jul 7, 2025
fe23a9f
Merge branch 'main' into trapping_apps
snpike Jul 7, 2025
a7de210
BUG: Check to make sure all histograms have enough counts
snpike Jul 9, 2025
6eb4d9d
CHG: Sum up pixel histograms to get detector histograms
snpike Jul 9, 2025
560614c
CHG: rearrange loops, default to full detector parameters when pixel …
snpike Jul 10, 2025
75b3c32
CHG: Updated CTD and photopeak models
snpike Jul 11, 2025
e6ce063
CHG: Place limits on parameters to avoid unreasonable fits
snpike Jul 11, 2025
c85f83c
CHG: Changed naming conventions so that strips are referred to using …
snpike Jul 18, 2025
325fad2
CHG: update header to make function arguments match source file
snpike Jul 18, 2025
18d20ff
Merge pull request #32 from snpike/xy_to_hv
snpike Jul 18, 2025
063c1eb
Merge branch 'main' into trapping_apps
snpike Jul 30, 2025
0069237
CHG: Create and fill a directory for pixel-by-pixel results and plots
snpike Aug 4, 2025
39d5204
CHG: better parameter initialization and bounds for fits
snpike Aug 4, 2025
3ebc9a6
CHG: Write detailed fit results to files. Plot deltaE maps and histog…
snpike Aug 4, 2025
cd28137
CHG: Chi-square cut for saving parameters.
snpike Aug 4, 2025
1be613b
CHG: Comments and changes to global variables
snpike Aug 4, 2025
b6154ca
CHG: Updated comments
snpike Aug 4, 2025
211ac51
minor comment update
snpike Aug 4, 2025
adbc021
Update copyright
snpike Aug 4, 2025
d06858f
CHG: Added protection against empty TAC calibration/caut entries.
zoglauer Sep 8, 2025
a9bf5aa
CHG: New option to suppress HDF5 continuous file reading.
snpike Sep 22, 2025
f827da2
CHG: Better checks on input files
snpike Sep 22, 2025
becdbe2
Improved comments and additional details in help message
snpike Sep 24, 2025
20fa6be
Merge pull request #12 from snpike/trapping_apps
ckierans Oct 1, 2025
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
32 changes: 30 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,33 @@ MAKEFLAGS += --no-builtin-rules
#.NOTPARALLEL: megalib
.SILENT:


#----------------------------------------------------------------
# External libraries
#

H5CXXFLAGS =
H5LIBS =
ifeq ("$(shell pkg-config --exists hdf5 1>&2 2> /dev/null; echo $$?)", "0")
H5CXXFLAGS += $(shell pkg-config --cflags hdf5)
H5LIBS += $(shell pkg-config --libs hdf5)
H5LIBS += -lhdf5_cpp
else
$(error "Unable to find HDF5 headers and libraries")
endif


#----------------------------------------------------------------
# Definitions based on architecture and user options
#

CMD=""
CXXFLAGS += -I$(IN) -I$(MEGALIB)/include -I/opt/local/include
CXXFLAGS += -I$(IN) -I$(MEGALIB)/include -I/opt/local/include $(H5CXXFLAGS)
# Comment this line out if you want to accept warnings
#CXXFLAGS += -Werror -Wno-unused-variable

LIBS += $(H5LIBS)

# Names of the program
NUCLEARIZER_PRG = $(BN)/nuclearizer
NUCLEARIZER_CXX_MAIN = src/MNuclearizerMain.cxx
Expand All @@ -62,6 +80,7 @@ $(LB)/MAspectReconstruction.o \
$(LB)/MHit.o \
$(LB)/MTimeAndCoordinate.o \
$(LB)/MStripHit.o \
$(LB)/MStripMap.o \
$(LB)/MGuardringHit.o \
$(LB)/MDetectorEffectsEngineBalloon.o \
$(LB)/MModuleLoaderSimulationsBalloon.o \
Expand All @@ -71,6 +90,8 @@ $(LB)/MGUIOptionsLoaderSimulations.o \
$(LB)/MModuleLoaderMeasurements.o \
$(LB)/MModuleLoaderMeasurementsROA.o \
$(LB)/MGUIOptionsLoaderMeasurements.o \
$(LB)/MModuleLoaderMeasurementsHDF.o \
$(LB)/MGUIOptionsLoaderMeasurementsHDF.o \
$(LB)/MBinaryFlightDataParser.o \
$(LB)/MModuleReceiverBalloon.o \
$(LB)/MGUIOptionsReceiverBalloon.o \
Expand Down Expand Up @@ -116,6 +137,11 @@ $(LB)/MModuleDiagnostics.o \
$(LB)/MModuleDiagnosticsEnergyPerStrip.o \
$(LB)/MGUIExpoDiagnosticsEnergyPerStrip.o \
$(LB)/MGUIExpoDiagnostics.o \
$(LB)/MModuleTACcut.o \
$(LB)/MGUIExpoTACcut.o \
$(LB)/MGUIOptionsTACcut.o \
$(LB)/MModuleNearestNeighbor.o \




Expand Down Expand Up @@ -190,6 +216,7 @@ $(FRETALON_DEP_FILES): $(LB)/%.d: $(FRETALON_DIR)/src/%.cxx
$(FRETALON_LIBS): $(LB)/%.o: $(FRETALON_DIR)/src/%.cxx $(FRETALON_DIR)/inc/%.h $(LB)/%.d
@echo "Compiling $(subst $(FRETALON_DIR)/src/,,$<) ..."
@$(CXX) $(CXXFLAGS) -c $< -o $@
@echo "$(CXX) $(CXXFLAGS) -c $< -o $@"

$(NUCLEARIZER_DEP_FILES): $(LB)/%.d: src/%.cxx
@echo "Creating dependencies for $(subst src/,,$<) ..."
Expand All @@ -203,7 +230,7 @@ $(NUCLEARIZER_DICT): $(FRETALON_H_FILES) $(NUCLEARIZER_H_FILES)
@echo "Generating LinkDef ..."
@$(BN)/generatelinkdef -o $(NUCLEARIZER_LINKDEF) -i $(NUCLEARIZER_H_FILES) $(FRETALON_H_FILES)
@echo "Generating dictionary ..."
@rootcling -f $@ -I$(IN) -I$(MEGALIB)/include -D___CLING___ -rmf $(NUCLEARIZER_ROOTMAP) -s libNuclearizer -c $(NUCLEARIZER_H_FILES) $(FRETALON_H_FILES) $(NUCLEARIZER_LINKDEF)
@rootcling -f $@ -I$(IN) -I$(MEGALIB)/include $(H5CXXFLAGS) -D___CLING___ -rmf $(NUCLEARIZER_ROOTMAP) -s libNuclearizer -c $(NUCLEARIZER_H_FILES) $(FRETALON_H_FILES) $(NUCLEARIZER_LINKDEF)
@mv $(NUCLEARIZER_ROOTPCM) $(LB)

$(NUCLEARIZER_DICT_LIB): $(NUCLEARIZER_DICT)
Expand All @@ -218,6 +245,7 @@ $(NUCLEARIZER_PRG): $(NUCLEARIZER_SHARED_LIB) $(NUCLEARIZER_CXX_MAIN)
@echo "Linking and compiling $(subst $(BN)/,,$(NUCLEARIZER_PRG)) ... Please stand by ... "
@$(CXX) $(CXXFLAGS) $(LDFLAGS) $(NUCLEARIZER_CXX_MAIN) $(NUCLEARIZER_SHARED_LIB) $(ALLLIBS) $(GLIBS) $(LIBS) -o $(NUCLEARIZER_PRG)


ifneq ($(MAKECMDGOALS),clean)
-include $(NUCLEARIZER_DEP_FILES)
-include $(FRETALON_DEP_FILES)
Expand Down
Loading