Changeset 3993 in Sophya for trunk/AddOn/TAcq/brprocGain.cc


Ignore:
Timestamp:
May 13, 2011, 12:37:14 AM (14 years ago)
Author:
ansari
Message:

Ajout possibilite de faire un DataTable (NTuple) avec la puissance spectrale dans plusieurs bandes en fonction du temps, Reza 13/05/2011

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/AddOn/TAcq/brprocGain.cc

    r3992 r3993  
    185185    medfiltspecmtx_.Info()["NPAQSUM"] = nbtot_specwin_;
    186186    medfiltspecmtx_.Info()[buff] = nbtot_specwin_;
    187     //JEC timeStamp in the day @ millisec: faudra gerer le passage a minuit!
    188     medfiltspecmtx_.Info()["TIMEWIN"] = (windowTime_.SecondsPart())*1000.;
    189 
    190 
    191187    if ( nbtot_specwin_ > 0) {
    192188      medfiltspecmtx_.Row(ir)  /= (r_4)nbtot_specwin_;
    193189    }
    194190  }//eo loop on channels
     191  //JEC timeStamp in the day @ millisec: faudra gerer le passage a minuit!
     192  //Reza : getObsTimeSeconds() fournit le temps ecoule en seconde a partir de 0h00 de la date du premier fichier
     193  medfiltspecmtx_.Info()["TIMEWIN"] = (windowTime_.SecondsPart())*1000.;
     194  if (nbpmoyttfc_>1)  {
     195    moyfc_/=(double)nbpmoyttfc_;
     196    moytt_/=(double)nbpmoyttfc_;
     197  }
     198  string ikey,ikdesc;   
     199  ikey="MeanFC";  ikdesc="Mean FrameCounter";
     200  medfiltspecmtx_.Info().SetI(ikey,moyfc_);
     201  medfiltspecmtx_.Info().SetComment(ikey,ikdesc);
     202  ikey="MeanTT";  ikdesc="Mean TimeTag";
     203  medfiltspecmtx_.Info().SetD(ikey,moytt_);
     204  medfiltspecmtx_.Info().SetComment(ikey,ikdesc);
     205
    195206  char nfile[64];
    196207  string flnm;
     
    206217  //increment the file index
    207218  nummedianfile_++;
     219
     220  if (dtpms_!=NULL)  FillPwrTmDTable(mspecmtx_);
    208221   
    209222  //reset the matirx
    210223  medfiltspecmtx_ = (r_4)(0.);
    211 
    212224  //reset counter
    213225  nbtot_specwin_ = 0;
     226  moyfc_=moytt_=0.; 
     227  nbpmoyttfc_=0;
    214228
    215229  return;
Note: See TracChangeset for help on using the changeset viewer.