Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

actually fix rich bug this time, need to set _detector_id_order to 0 … #73

Merged
merged 1 commit into from
Jul 22, 2024
Merged
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
2 changes: 1 addition & 1 deletion Clas12Banks/particle_detector.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ namespace clas12 {
////////////////////////////////////////////////////////////////
//override header notify, called at start of event
void notify() override {
bank::notify();
if(_detector_id_order==-1) return;
bank::notify();
scanIndex();
}

Expand Down
11 changes: 7 additions & 4 deletions Clas12Banks/rich.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ namespace clas12 {
clas12::particle_detector(aschema),
_ring{new richring(ringschema)}
{

// std::cout<<"DEBUG "<<"rich::rich()"<< std::endl;
//aschema.show();
_detector_id_order=0; //dont have a detector bank, but getDetector is fixed
_id_order = aschema.getEntryOrder("id");
_hindex_order = aschema.getEntryOrder("hindex");
_pindex_order = aschema.getEntryOrder("pindex");
Expand All @@ -40,10 +42,11 @@ namespace clas12 {
}
rich::rich(hipo::schema aschema):
clas12::particle_detector(aschema) {


_detector_id_order=0; //dont have a detector bank, but getDetector is fixed
_id_order = aschema.getEntryOrder("id");
_hindex_order = aschema.getEntryOrder("hindex");
_pindex_order = aschema.getEntryOrder("pindex");
_hindex_order = aschema.getEntryOrder("hindex");
_pindex_order = aschema.getEntryOrder("pindex");
_emilay_order = aschema.getEntryOrder("emilay");
_emico_order = aschema.getEntryOrder("emico");
_enico_order = aschema.getEntryOrder("enico");
Expand Down
2 changes: 1 addition & 1 deletion Clas12Banks/rich.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ namespace clas12 {
return 0;
}


private:

friend clas12::rich;
Expand Down