Skip to content

Commit

Permalink
Merge pull request JeffersonLab#73 from dglazier/master
Browse files Browse the repository at this point in the history
actually fix rich bug this time, need to set _detector_id_order to 0 …
  • Loading branch information
dglazier authored Jul 22, 2024
2 parents 2df25ae + 079974e commit 90c771b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
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

0 comments on commit 90c771b

Please sign in to comment.