Changeset 2875


Ignore:
Timestamp:
01/21/04 17:00:32 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r2874 r2875  
    44
    55                                                 -*-*- END OF LINE -*-*-
     6
     7 2004/01/21: Thomas Bretz
     8
     9   * mraw/MRawRead.cc:
     10     - restore the fake time for all runs (current time stamp in
     11       the data seems to be toally nonsense)
     12 
     13   * mraw/MRawEvtHeader.cc:
     14     - removed decoding of real time (current time stamp in the data
     15       seems to be toally nonsense)
     16
    617
    718 2004/01/21: Abelardo moralejo
     
    2839     - Adapted to change above. Changed also task instance name from
    2940       mccalibcalc to mccalibupdate.
     41
    3042
    3143
  • trunk/MagicSoft/Mars/mraw/MRawEvtHeader.cc

    r2748 r2875  
    239239{
    240240    // BADC|1032 --> DCBA|3210 (Byte swap - exchange MSB and LSB)
    241     *fLog << hex << all << endl << abstime[0] << " " << abstime[1] << endl;
     241    /*
     242    *fLog << hex << all << setfill('0') << setw(8) << abstime[0] << " " << setw(8) << abstime[1] << "  ";
     243
     244    for (int i=4*8-1; i>=0; i--)
     245        *fLog << (int)(abstime[0]&BIT(i)?1:0);
     246    *fLog << " ";
     247    for (int i=4*8-1; i>=0; i--)
     248       *fLog << (int)(abstime[1]&BIT(i)?1:0);
     249    */
     250    *fLog << endl;
    242251
    243252    abstime[0] = (abstime[0]<<16) | (abstime[0]>>16);
     
    249258    abstime[1] = abstime[1]<<8&0xff00 | abstime[1]>>8&0x00ff | abstime[1]&0xffff0000;
    250259
    251     for (int i=4*8-1; i>=0; i--)
    252         *fLog << (int)(abstime[0]&BIT(i)?1:0);
    253     *fLog << " ";
    254     for (int i=4*8-1; i>=0; i--)
    255         *fLog << (int)(abstime[1]&BIT(i)?1:0);
    256     *fLog << endl;
    257260
    258261/*    *fLog << hex << abstime[0] << " " << abstime[1] << endl;
     
    286289    // hms   =3210 -->  h=2:4 m=3:4 s=3:4
    287290    // subsec=DCBA --> subsec?
     291    /*
    288292    *fLog << all << dec << setfill('0') << setw(2) << (int)h << ":" << setw(2) << (int)m << ":" << setw(2) << (int)s;
    289293    *fLog << " " << hex;
     
    293297    *fLog << (int)(abstime[0]>> 0 & 0xf);
    294298    *fLog << endl;
    295 
     299    */
    296300    // Update the time stamp with the current event time.
    297301    // Make sure, that the time stamp was initialized correctly
     
    300304    // Here the nanosec precision is ignored... (FIXME!)
    301305
     306    return kTRUE;
     307
    302308    static int i=0;
    303309    i++;
    304     fTime->Print();
    305     fTime->UpdMagicTime(h, m, s, 0/*ms*/);
    306     fTime->Print();
    307     return i<5;
     310    //fTime->Print();
     311    //    fTime->UpdMagicTime(h, m, s, 0/*ms*/);
     312    //fTime->Print();
     313    return i<25;
    308314    //return fTime->UpdMagicTime(h, m, s, ms);
    309315}
     
    324330    fin.read((char*)&fDAQEvtNumber, 4);  // Total=4
    325331
    326     *fLog << "N: " << fDAQEvtNumber << endl;
    327 
    328332    UInt_t abstime[2];                   // BADC|1032
    329333    fin.read((char*)abstime,        8);  // Total=12
     334    /*
    330335    if (!DecodeTime(abstime))
    331336    {
     
    333338        return kFALSE;
    334339    }
    335 
     340    */
    336341    Byte_t dummy[4];
    337342    fin.read((char*)&fNumTrigLvl1,  4);  // Total=16
     
    342347    fin.read((char*)fPixLoGainOn->GetArray(), fPixLoGainOn->GetSize());
    343348
    344     *fLog << "T: " << fTrigType << endl;
    345 
    346349    fNumLoGainOn = 0;
    347350    for (unsigned int i=0; i<fPixLoGainOn->GetSize(); i++)
  • trunk/MagicSoft/Mars/mraw/MRawRead.cc

    r2748 r2875  
    146146    m %= 360; // 6h
    147147
    148     fRawEvtTime->Set(fRawRunHeader->GetRunStart().Year(),
    149                      fRawRunHeader->GetRunStart().Month(),
    150                      fRawRunHeader->GetRunStart().Day(),
    151                      m/60, m%60, s, ms, ns);
     148    fRawEvtTime->UpdMagicTime(m/60, m%60, s, ms/*, ns*/);
    152149}
    153150
     
    203200    // for which no time stamp was available.
    204201    // For this runs a fake time stamp is created
    205     if (fRawRunHeader->GetRunNumber()<3490)
    206         CreateFakeTime();
     202    //if (fRawRunHeader->GetRunNumber()<3490)
     203    CreateFakeTime();
    207204
    208205    // FIXME: For all other runs we should enhance the precision
Note: See TracChangeset for help on using the changeset viewer.