Changeset 14812 for fact


Ignore:
Timestamp:
01/31/13 12:34:30 (12 years ago)
Author:
Jens Buss
Message:
dynamic calulation of overlay window
File:
1 edited

Legend:

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

    r14808 r14812  
    782782    }
    783783
    784 //    mPixelOverlayXaxisRight   =70;   ///TODO: get it from the root file
    785 //    mPixelOverlayXaxisLeft    =230;  ///TODO: get it from the root file
    786 //    mBSLMean                  =-1;   ///TODO: get it from the root file
    787 //    mGainMean                 =9;    ///TODO: get it from the root file
    788 //    mOptions                  ="SRM"; ///TODO: get it from the root file
    789784
    790785    if (mVerbosityLevel > 2) cout << endl << "...load pixel histograms" << endl;
     
    803798        if (mVerbosityLevel > 3) cout << "\t...loading " << HistoName("hEdgeProfile", order) << endl;
    804799        hEdgeProfile[order] = (TProfile*)mDirectory->Get( ChooseCycleNumber( HistoName("hEdgeProfile", order), 1) );
    805     }
     800
     801
     802    }
     803    //    mPixelOverlayXaxisRight   =70;   ///TODO: get it from the root file
     804    //    mPixelOverlayXaxisLeft    =230;  ///TODO: get it from the root file
     805//        mBSLMean                  =-2;   ///TODO: get it from the root file
     806//        mGainMean                 =11;    ///TODO: get it from the root file
     807    //    mOptions                  ="SRM"; ///TODO: get it from the root file
     808
     809    mPixelOverlayXaxisRight = hEdgeOverlay[0]->GetBinCenter(
     810                hEdgeOverlay[0]->GetXaxis()->GetFirst()
     811                );
     812
     813    mPixelOverlayXaxisLeft = hEdgeOverlay[0]->GetBinCenter(
     814                hEdgeOverlay[0]->GetXaxis()->GetLast()
     815                );
    806816
    807817}
Note: See TracChangeset for help on using the changeset viewer.