Changeset 7903 for trunk/MagicSoft


Ignore:
Timestamp:
08/22/06 08:43:27 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r7902 r7903  
    4848     - let condor wait until all jobs are finished and then
    4949       link everything
     50
     51   * mbadpixels/MBadPixelsCam.[h,cc]:
     52     - added a simple function GetNumUnsuitable which can be used
     53       as a rule eg. in a filter.
    5054
    5155
  • trunk/MagicSoft/Mars/Makefile

    r7491 r7903  
    125125endif
    126126
    127 condor: $(CONDOR)
     127rmcondor:
     128        rm -f .makcondor.log
     129
     130condor: rmcondor $(CONDOR)
     131        echo Waiting for jobs to finish...
     132        condor_wait .makecondor.log
     133        rm .makecondor.log
     134        make -j2 $(PROGRAMS)
     135#       find -name "*/.makecondor.*"
     136#       find -maxdepth 2 -name ".makecondor.*" -exec echo {}\\\; cat {}\\\; echo {}\\\; \;
    128137
    129138dox: $(SOLIB)
  • trunk/MagicSoft/Mars/Makefile.rules

    r7682 r7903  
    77$(CONDOR):
    88        @echo " Starting make in $(@:.condor=) via condor"
    9         (cd $(@:.condor=); (condor_run $(MAKE) &); cd ..;)
     9        (echo universe=vanilla; \
     10         echo executable=/bin/bash; \
     11         echo arguments=-c make; \
     12         echo log=../.makecondor.log;    \
     13         echo initialdir=$(@:.condor=); \
     14         echo getenv=true;     \
     15         echo notification=never; \
     16         echo queue) | condor_submit > /dev/null
     17#       (cd $(@:.condor=); (condor_run $(MAKE) &); cd ..;)
     18#         echo output=.makecondor.out; \
     19#         echo error=.makecondor.err;  \
    1020
    1121$(CLEANERS):
  • trunk/MagicSoft/Mars/mbadpixels/MBadPixelsCam.cc

    r7864 r7903  
    237237            rc++;
    238238    }
     239    return rc;
     240}
     241
     242// --------------------------------------------------------------------------
     243//
     244// Count the number of unsuitable pixels.
     245//
     246Short_t MBadPixelsCam::GetNumUnsuitable() const
     247{
     248    const UInt_t n = GetSize();
     249
     250    Short_t rc = 0;
     251    for (UInt_t i=0; i<n; i++)
     252        if ((*this)[i].IsUnsuitable())
     253            rc++;
     254
    239255    return rc;
    240256}
  • trunk/MagicSoft/Mars/mbadpixels/MBadPixelsCam.h

    r7189 r7903  
    4242    Short_t GetNumUnsuitable(MBadPixelsPix::UnsuitableType_t type, const MGeomCam *geom, Int_t aidx=-1) const;
    4343    Short_t GetNumUnsuitable(MBadPixelsPix::UnsuitableType_t type) const { return GetNumUnsuitable(type, 0); }
     44    Short_t GetNumUnsuitable() const;
    4445    Short_t GetNumSuitable(MBadPixelsPix::UnsuitableType_t type, const MGeomCam *geom, Int_t aidx=-1) const;
    4546    Short_t GetNumSuitable(MBadPixelsPix::UnsuitableType_t type) const { return GetNumSuitable(type, 0); }
Note: See TracChangeset for help on using the changeset viewer.