Fix: cmake bluet_base path; Feat: timestamp projection
This commit is contained in:
parent
8fae28b96a
commit
2a301fb8b0
1
.gitignore
vendored
1
.gitignore
vendored
@ -4,6 +4,7 @@ cfg
|
|||||||
|
|
||||||
# Data
|
# Data
|
||||||
data
|
data
|
||||||
|
*.root
|
||||||
|
|
||||||
# build
|
# build
|
||||||
build/
|
build/
|
@ -28,11 +28,10 @@ include_directories($ENV{GARFIELD_INSTALL}/include/Garfield)
|
|||||||
include(${Geant4_USE_FILE})
|
include(${Geant4_USE_FILE})
|
||||||
include_directories(${PROJECT_SOURCE_DIR}/include)
|
include_directories(${PROJECT_SOURCE_DIR}/include)
|
||||||
# Include bluet file
|
# Include bluet file
|
||||||
set(bluet_base "/home/liuyihui/bluet/")
|
include_directories($ENV{bluet_base}/sources/config/include)
|
||||||
include_directories(${bluet_base}/sources/config/include)
|
include_directories($ENV{bluet_base}/sources/modules/include)
|
||||||
include_directories(${bluet_base}/sources/modules/include)
|
include_directories($ENV{bluet_base}/sources/runner/include)
|
||||||
include_directories(${bluet_base}/sources/runner/include)
|
include_directories($ENV{bluet_base}/utils/include)
|
||||||
include_directories(${bluet_base}/utils/include)
|
|
||||||
include_directories($ENV{GARFIELD_INSTALL}/include/Garfield)
|
include_directories($ENV{GARFIELD_INSTALL}/include/Garfield)
|
||||||
|
|
||||||
# Locate sources and headers for this project
|
# Locate sources and headers for this project
|
||||||
@ -42,14 +41,14 @@ file(GLOB analyzer ${PROJECT_SOURCE_DIR}/include/* ${PROJECT_SOURCE_DIR}/src/*)
|
|||||||
add_library(SO_${PROJECT_NAME} SHARED
|
add_library(SO_${PROJECT_NAME} SHARED
|
||||||
${analyzer}
|
${analyzer}
|
||||||
# Bluet
|
# Bluet
|
||||||
${bluet_base}/sources/config/include/BluetDataModel.hh
|
$ENV{bluet_base}/sources/config/include/BluetDataModel.hh
|
||||||
${bluet_base}/utils/include/pugixml.hpp
|
$ENV{bluet_base}/utils/include/pugixml.hpp
|
||||||
${bluet_base}/utils/src/pugixml.cpp
|
$ENV{bluet_base}/utils/src/pugixml.cpp
|
||||||
${bluet_base}/utils/include/xmlparse.hh
|
$ENV{bluet_base}/utils/include/xmlparse.hh
|
||||||
${bluet_base}/utils/src/xmlparse.cc
|
$ENV{bluet_base}/utils/src/xmlparse.cc
|
||||||
${bluet_base}/utils/include/stringhandle.hh
|
$ENV{bluet_base}/utils/include/stringhandle.hh
|
||||||
${bluet_base}/utils/src/stringhandle.cc
|
$ENV{bluet_base}/utils/src/stringhandle.cc
|
||||||
${bluet_base}/utils/include/clipp.h
|
$ENV{bluet_base}/utils/include/clipp.h
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(SO_${PROJECT_NAME} PUBLIC
|
target_link_libraries(SO_${PROJECT_NAME} PUBLIC
|
||||||
|
@ -1010,12 +1010,13 @@ void BluetAnalyzer::saveHistograms(TString filename) {
|
|||||||
hbeamr->Write();
|
hbeamr->Write();
|
||||||
hrinte->Write();
|
hrinte->Write();
|
||||||
htofE->Write();
|
htofE->Write();
|
||||||
htof->Write();
|
|
||||||
htofr0->Write();
|
htofr0->Write();
|
||||||
htofr1->Write();
|
htofr1->Write();
|
||||||
hpull->Write();
|
hpull->Write();
|
||||||
hratio->Write();
|
hratio->Write();
|
||||||
hLengthE->Write();
|
hLengthE->Write();
|
||||||
|
(TH1F *)(hLengthE->ProjectionX())->Write();
|
||||||
|
(TH1F *)(hLengthE->ProjectionY())->Write();
|
||||||
htcath->Write();
|
htcath->Write();
|
||||||
htpad->Write();
|
htpad->Write();
|
||||||
hv0->Write();
|
hv0->Write();
|
||||||
@ -1025,17 +1026,17 @@ void BluetAnalyzer::saveHistograms(TString filename) {
|
|||||||
hdeltacos1->Write();
|
hdeltacos1->Write();
|
||||||
hdeltacos2->Write();
|
hdeltacos2->Write();
|
||||||
hts->Write();
|
hts->Write();
|
||||||
|
(TH1F *)(hts->ProjectionX())->Write();
|
||||||
|
(TH1F *)(hts->ProjectionY())->Write();
|
||||||
htn->Write();
|
htn->Write();
|
||||||
hamp->Write();
|
hamp->Write();
|
||||||
|
(TH1F *)(hamp->ProjectionX())->Write();
|
||||||
|
(TH1F *)(hamp->ProjectionY())->Write();
|
||||||
han->Write();
|
han->Write();
|
||||||
hta->Write();
|
hta->Write();
|
||||||
htt->Write();
|
htt->Write();
|
||||||
hte->Write();
|
hte->Write();
|
||||||
hec->Write();
|
hec->Write();
|
||||||
(TH1F *)(hamp->ProjectionX())->Write();
|
|
||||||
(TH1F *)(hamp->ProjectionY())->Write();
|
|
||||||
(TH1F *)(hLengthE->ProjectionX())->Write();
|
|
||||||
(TH1F *)(hLengthE->ProjectionY())->Write();
|
|
||||||
fout->Close();
|
fout->Close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user