Ignore:
Timestamp:
05/03/12 11:55:56 (13 years ago)
Author:
Jens Buss
Message:
bugfix: pixelID in new Pixel
File:
1 edited

Legend:

Unmodified
Added
Removed
  • fact/tools/rootmacros/PulseTemplates/FPulseOverlay.C

    r13534 r13538  
    198198        int             verbosityLevel      = 6,        // different verbosity levels can be implemented here
    199199        int             firstevent          = 1,        // Hast to be between 1 and infinity NOT 0!!!!
    200         int             nevents             = 10,
     200        int             nevents             = -1,
    201201        int             firstpixel          = 0,
    202202        int             npixel              = -1,
     
    214214        )
    215215{
    216 //----------------------------------------------------------------------------
    217 // Initialize Pixel
    218 //----------------------------------------------------------------------------
    219     Pixel** pixel = new Pixel*[sampleSetSize];
    220 
    221     for (int i = 0 ; i < sampleSetSize; i++)
    222     {
    223         pixel[i] = NULL;
    224     }
     216
    225217//----------------------------------------------------------------------------
    226218//      Save-Root-File Settings
     
    401393//-----------------------------------------------------------------------------
    402394
     395//----------------------------------------------------------------------------
     396// Initialize Pixel
     397//----------------------------------------------------------------------------
     398    Pixel** pixel = new Pixel*[npixel-firstpixel];
     399
     400    for (int i = 0 ; i < (npixel-firstpixel); i++)
     401    {
     402        pixel[i] = NULL;
     403    }
    403404//-------------------------------------
    404405// Loop over Pixel Sets
     
    425426            // Get an Event --> consists of 1440 Pixel ...erm....data
    426427            cout << endl << "processing event " << ev << endl;
    427             datafile->GetRow( ev );
     428            datafile->GetRow( ev - 1 );
    428429
    429430            if (verbosityLevel == 1)
Note: See TracChangeset for help on using the changeset viewer.