Skip to content

Commit

Permalink
add switch between RECFT::Event EvCAT and category
Browse files Browse the repository at this point in the history
  • Loading branch information
dglazier committed Dec 4, 2019
1 parent 249977d commit b36554d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Clas12Banks/ftbevent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ namespace clas12 {
ftbevent::ftbevent(hipo::schema __schema): hipo::bank(__schema) {
auto sch=getSchema();

_cat_order = sch.getEntryOrder("category");
if(sch.exists("category"))_cat_order = sch.getEntryOrder("category");
else if(sch.exists("EvCAT")){
std::cout<<"Warning, using deprecated item name EvCAT instead of category for REC::FTEvent"<<std::endl;
_cat_order = sch.getEntryOrder("EvCAT");
}
_st_order = sch.getEntryOrder("startTime");
}
}

0 comments on commit b36554d

Please sign in to comment.