/[PAMELA software]/calo/unpacking/azero.cpp
ViewVC logotype

Annotation of /calo/unpacking/azero.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Mon Dec 5 16:23:22 2005 UTC (18 years, 11 months ago) by mocchiut
Branch point for: MAIN, unpacking
Initial revision

1 mocchiut 1.1 /***************************************************************
2     *
3     * change the buffer from bytes to words to read the calorimeter
4     *
5     ***************************************************************/
6     /*
7     * include needed system headers
8     */
9     #include <iostream> /* include standard i/o library */
10     #include <vector.h>
11    
12     void azero_(int *vetto, int *lung)
13     {
14     vector<int> v( *lung );
15     memcpy(&v, &*vetto, *lung);
16     if ( !v.empty() ) {
17     v.clear();
18     memcpy(&*vetto, &v, *lung);
19     };
20     }
21    
22    
23    
24    
25    
26    
27    
28    
29    
30    

  ViewVC Help
Powered by ViewVC 1.1.23