Difference between revisions of "Data Skimming"
From GlueXWiki
(→Physical REST Skims) |
|||
Line 3: | Line 3: | ||
* '''DEventWriterREST''': Persistent object created by the <span style="color:#0000FF">DEventWriterREST</span> factory. | * '''DEventWriterREST''': Persistent object created by the <span style="color:#0000FF">DEventWriterREST</span> factory. | ||
− | * <span style="color:#0000FF">DEventWriterREST</span>::Write_RESTEvent(string) saves the event into the REST file specified by the string. | + | ** <span style="color:#0000FF">DEventWriterREST</span>::<span style="color:#008000">Write_RESTEvent</span>(<span style="color:#0000FF">string</span>) saves the event into the REST file specified by the string. |
<syntaxhighlight> | <syntaxhighlight> |
Revision as of 14:39, 21 January 2015
Physical EVIO Skims
Physical REST Skims
- DEventWriterREST: Persistent object created by the DEventWriterREST factory.
- DEventWriterREST::Write_RESTEvent(string) saves the event into the REST file specified by the string.
//e.g., in your plugin's ::evnt() method: vector<const DEventWriterREST*> locEventWriterRESTVector; locEventLoop->Get(locEventWriterRESTVector); locEventWriterRESTVector[0]->Write_RESTEvent(locEventLoop, "b1pi"); //dana_rest_b1pi.hddm
- Can write (skim) to many different files in the same plugin, even during multi-threaded execution.
//e.g., in your plugin's ::evnt() method: if((locNumPositiveTracks >= 2) && (locNumNegativeTracks >= 2)) locEventWriterRESTVector[0]->Write_RESTEvent(locEventLoop, "2+_2-"); if((locNumPositiveTracks >= 3) && (locNumNegativeTracks >= 2)) locEventWriterRESTVector[0]->Write_RESTEvent(locEventLoop, "3+_2-");