Ignore:
Timestamp:
07/06/03 21:02:56 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/manalysis
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/manalysis/MCerPhotAnal2.cc

    r2259 r2265  
    8686Int_t MCerPhotAnal2::PreProcess(MParList *pList)
    8787{
     88    fSkip = 0;
     89
    8890    fRunHeader = (MRawRunHeader*)pList->FindObject("MRawRunHeader");
    8991    if (!fRunHeader)
     
    149151            if (ptr[i]==255)
    150152                sat++;
     153
    151154            //if (sat>1)
    152155            //    continue;
     
    184187            {
    185188                if (ptr[i]>250)
     189                {
     190                    fSkip++;
    186191                    return kCONTINUE;
     192                }
    187193                if (i<max-fBefore || i>max+fAfter)
    188194                {
     
    237243}
    238244
     245Int_t MCerPhotAnal2::PostProcess()
     246{
     247    if (GetNumExecutions()==0 || fSkip==0)
     248        return kTRUE;
     249
     250    *fLog << inf << endl;
     251    *fLog << GetDescriptor() << " execution statistics:" << endl;
     252    *fLog << dec << setfill(' ');
     253    *fLog << " " << setw(7) << fSkip << " (" << setw(3) << (int)(fSkip*100/GetNumExecutions()) << "%) Evts skipped due to: lo gain saturated." << endl;
     254
     255    return kTRUE;
     256}
  • trunk/MagicSoft/Mars/manalysis/MCerPhotAnal2.h

    r2251 r2265  
    2222class MCerPhotAnal2 : public MTask
    2323{
     24private:
    2425    MPedestalCam  *fPedestals;  // Pedestals of all pixels in the camera
    2526    MRawEvtData   *fRawEvt;     // raw event data (time slices)
     
    3031    Byte_t fAfter;
    3132
    32 public:
    33     MCerPhotAnal2(Byte_t b=2, Byte_t a=5, const char *name=NULL, const char *title=NULL);
     33    Int_t fSkip;                //!
    3434
    3535    Int_t PreProcess(MParList *pList);
    3636    Int_t Process();
     37    Int_t PostProcess();
     38
     39public:
     40    MCerPhotAnal2(Byte_t b=2, Byte_t a=5, const char *name=NULL, const char *title=NULL);
    3741
    3842    ClassDef(MCerPhotAnal2, 0)   // Task to calculate cerenkov photons from raw data
Note: See TracChangeset for help on using the changeset viewer.