Skip to content

Commit

Permalink
Merge pull request #137 from JeffersonLab/ns_fix-mkscripts
Browse files Browse the repository at this point in the history
Make code templates compatible with JANA 0.7.4+
  • Loading branch information
mikestaib committed Dec 8, 2015
2 parents 681e943 + 928e07e commit 623b2f2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/programs/Utilities/mkfactory_plugin/mkfactory_plugin
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ class ${classname}_factory${tag_suffix}:public jana::JFactory<${classname}>{
private:
jerror_t init(void); ///< Called once at program start.
jerror_t brun(jana::JEventLoop *eventLoop, int runnumber); ///< Called everytime a new run number is detected.
jerror_t evnt(jana::JEventLoop *eventLoop, int eventnumber); ///< Called every event.
jerror_t brun(jana::JEventLoop *eventLoop, int32_t runnumber); ///< Called everytime a new run number is detected.
jerror_t evnt(jana::JEventLoop *eventLoop, uint64_t eventnumber); ///< Called every event.
jerror_t erun(void); ///< Called everytime run number changes, provided brun has been called.
jerror_t fini(void); ///< Called after last event of last event source has been processed.
};
Expand Down Expand Up @@ -200,15 +200,15 @@ jerror_t ${classname}_factory${tag_suffix}::init(void)
//------------------
// brun
//------------------
jerror_t ${classname}_factory${tag_suffix}::brun(jana::JEventLoop *eventLoop, int runnumber)
jerror_t ${classname}_factory${tag_suffix}::brun(jana::JEventLoop *eventLoop, int32_t runnumber)
{
return NOERROR;
}
//------------------
// evnt
//------------------
jerror_t ${classname}_factory${tag_suffix}::evnt(JEventLoop *loop, int eventnumber)
jerror_t ${classname}_factory${tag_suffix}::evnt(JEventLoop *loop, uint64_t eventnumber)
{
// Code to generate factory data goes here. Add it like:
Expand Down
8 changes: 4 additions & 4 deletions src/programs/Utilities/mkplugin/mkplugin
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ class JEventProcessor_${pluginname}:public jana::JEventProcessor{
private:
jerror_t init(void); ///< Called once at program start.
jerror_t brun(jana::JEventLoop *eventLoop, int runnumber); ///< Called everytime a new run number is detected.
jerror_t evnt(jana::JEventLoop *eventLoop, int eventnumber); ///< Called every event.
jerror_t brun(jana::JEventLoop *eventLoop, int32_t runnumber); ///< Called everytime a new run number is detected.
jerror_t evnt(jana::JEventLoop *eventLoop, uint64_t eventnumber); ///< Called every event.
jerror_t erun(void); ///< Called everytime run number changes, provided brun has been called.
jerror_t fini(void); ///< Called after last event of last event source has been processed.
};
Expand Down Expand Up @@ -174,7 +174,7 @@ jerror_t JEventProcessor_${pluginname}::init(void)
//------------------
// brun
//------------------
jerror_t JEventProcessor_${pluginname}::brun(JEventLoop *eventLoop, int runnumber)
jerror_t JEventProcessor_${pluginname}::brun(JEventLoop *eventLoop, int32_t runnumber)
{
// This is called whenever the run number changes
return NOERROR;
Expand All @@ -183,7 +183,7 @@ jerror_t JEventProcessor_${pluginname}::brun(JEventLoop *eventLoop, int runnumbe
//------------------
// evnt
//------------------
jerror_t JEventProcessor_${pluginname}::evnt(JEventLoop *loop, int eventnumber)
jerror_t JEventProcessor_${pluginname}::evnt(JEventLoop *loop, uint64_t eventnumber)
{
// This is called for every event. Use of common resources like writing
// to a file or filling a histogram should be mutex protected. Using
Expand Down

0 comments on commit 623b2f2

Please sign in to comment.