Ignore:
Timestamp:
04/19/03 18:39:05 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/manalysis
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/MagicSoft/Mars/manalysis/MBlindPixelCalc.cc

    r1574 r1965  
    7171
    7272static const TString gsDefName  = "MBlindPixelCalc";
    73 static const TString gsDefTitle = "Task to deal with hot spots (star, broken pixels, etc)";
     73static const TString gsDefTitle = "Find hot spots (star, broken pixels, etc)";
    7474
    7575// --------------------------------------------------------------------------
  • TabularUnified trunk/MagicSoft/Mars/manalysis/MCT1PointingCorrCalc.h

    r1952 r1965  
    2727    MParameterD  *fHourAngle;
    2828
    29     Float_t      fMm2Deg;
     29    Float_t       fMm2Deg;
    3030
    3131public:
  • TabularUnified trunk/MagicSoft/Mars/manalysis/MCerPhotCalc.cc

    r1715 r1965  
    6464{
    6565    fName  = name  ? name  : "MCerPhotCalc";
    66     fTitle = title ? title : "Task to calculate pixel signal from raw data";
     66    fTitle = title ? title : "Calculate pixel signal from FADC data";
    6767
    6868    AddToBranchList("MRawEvtData.fHiGainPixId");
  • TabularUnified trunk/MagicSoft/Mars/manalysis/MCerPhotEvt.cc

    r1715 r1965  
    2727
    2828#include <math.h>
     29#include <limits.h>
    2930#include <fstream.h>
    3031
     
    120121    {
    121122        const MCerPhotPix &pix = (*this)[i];
     123        if (!pix.IsPixelUsed())
     124            continue;
    122125
    123126        if (id == pix.GetPixId() && pix.IsPixelUsed())
     
    139142    {
    140143        const MCerPhotPix &pix = (*this)[i];
     144        if (!pix.IsPixelUsed())
     145            continue;
    141146
    142147        if (id == pix.GetPixId() && pix.IsPixelCore())
     
    160165    const UInt_t n = geom->GetNumPixels();
    161166
    162     Float_t minval = (*this)[0].GetNumPhotons();
    163 
    164     for (UInt_t i=1; i<fNumPixels; i++)
    165     {
    166         const MCerPhotPix &pix = (*this)[i];
     167    Float_t minval = FLT_MAX;
     168
     169    for (UInt_t i=1; i<fNumPixels; i++)
     170    {
     171        const MCerPhotPix &pix = (*this)[i];
     172        if (!pix.IsPixelUsed())
     173            continue;
    167174
    168175        const UInt_t id = pix.GetPixId();
     
    195202    const UInt_t n = geom->GetNumPixels();
    196203
    197     Float_t maxval = (*this)[0].GetNumPhotons();
    198 
    199     for (UInt_t i=1; i<fNumPixels; i++)
    200     {
    201         const MCerPhotPix &pix = (*this)[i];
     204    Float_t maxval = -FLT_MAX;
     205
     206    for (UInt_t i=1; i<fNumPixels; i++)
     207    {
     208        const MCerPhotPix &pix = (*this)[i];
     209        if (!pix.IsPixelUsed())
     210            continue;
    202211
    203212        const UInt_t id = pix.GetPixId();
     
    229238    {
    230239        const MCerPhotPix &pix = (*this)[i];
     240        if (!pix.IsPixelUsed())
     241            continue;
    231242
    232243        Float_t testval = pix.GetNumPhotons()/pix.GetErrorPhot();
     
    247258        return -5.;
    248259
    249     Float_t maxval = (*this)[0].GetNumPhotons()/(*this)[0].GetErrorPhot();
    250 
    251     for (UInt_t i=1; i<fNumPixels; i++)
    252     {
    253         const MCerPhotPix &pix = (*this)[i];
     260    Float_t maxval = -FLT_MAX;
     261
     262    for (UInt_t i=1; i<fNumPixels; i++)
     263    {
     264        const MCerPhotPix &pix = (*this)[i];
     265        if (!pix.IsPixelUsed())
     266            continue;
    254267
    255268        Float_t testval = pix.GetNumPhotons()/pix.GetErrorPhot();
     
    272285        return 50.;
    273286
    274     Float_t minval = (*this)[0].GetErrorPhot();
    275 
    276     for (UInt_t i=1; i<fNumPixels; i++)
    277     {
    278         const MCerPhotPix &pix = (*this)[i];
     287    Float_t minval = FLT_MAX;
     288
     289    for (UInt_t i=1; i<fNumPixels; i++)
     290    {
     291        const MCerPhotPix &pix = (*this)[i];
     292        if (!pix.IsPixelUsed())
     293            continue;
    279294
    280295        Float_t testval = pix.GetErrorPhot();
     
    300315        return 50.;
    301316
    302     Float_t maxval = (*this)[0].GetErrorPhot();
    303 
    304     for (UInt_t i=1; i<fNumPixels; i++)
    305     {
    306         const MCerPhotPix &pix = (*this)[i];
     317    Float_t maxval = -FLT_MAX;
     318
     319    for (UInt_t i=1; i<fNumPixels; i++)
     320    {
     321        const MCerPhotPix &pix = (*this)[i];
     322        if (!pix.IsPixelUsed())
     323            continue;
    307324
    308325        Float_t testval = pix.GetErrorPhot();
     
    368385}
    369386*/
     387
     388void MCerPhotEvt::Scale(Double_t f)
     389{
     390    fPixels->ForEach(MCerPhotPix, Scale)(f);
     391}
  • TabularUnified trunk/MagicSoft/Mars/manalysis/MCerPhotEvt.h

    r1715 r1965  
    4848    MCerPhotPix &operator[](int i) const { return *(MCerPhotPix*)(fPixels->UncheckedAt(i)); }
    4949
     50    void Scale(Double_t f);
     51
    5052    MCerPhotPix *GetPixById(int id) const;
    5153
  • TabularUnified trunk/MagicSoft/Mars/manalysis/MCerPhotPix.h

    r1951 r1965  
    4848    void    AddNumPhotons(Float_t f)    { fPhot += f; }
    4949
     50    void    Scale(Float_t f)            { fPhot/=f; }
     51
    5052    void    Print(Option_t *opt = NULL) const;
    5153
  • TabularUnified trunk/MagicSoft/Mars/manalysis/MMcPedestalCopy.cc

    r1540 r1965  
    5757{
    5858    fName  = name  ? name  : "MMcPedestalCopy";
    59     fTitle = title ? title : "Task to copy monte carlo pedestals into MPedestal Container";
     59    fTitle = title ? title : "Copy MC pedestals into MPedestal Container";
    6060
    6161    //
  • TabularUnified trunk/MagicSoft/Mars/manalysis/MMcPedestalNSBAdd.cc

    r1540 r1965  
    7979{
    8080    fName  = name  ? name  : "MMcPedestalNSBAdd";
    81     fTitle = title ? title : "Task to copy monte carlo pedestals into MPedestal Container";
     81    fTitle = title ? title : "Add diffuse NSB to the pedestal signal";
    8282
    8383    //
Note: See TracChangeset for help on using the changeset viewer.