Ignore:
Timestamp:
06/23/03 11:19:04 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mraw
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mraw/MRawEvtData.cc

    r2200 r2207  
    6464#include "MArrayS.h"
    6565#include "MArrayB.h"
     66#include "MGeomCam.h"
    6667#include "MRawRunHeader.h"
    6768#include "MRawEvtPixelIter.h"
     
    472473}
    473474
    474 Bool_t MRawEvtData::GetPixelContent(Float_t &val, Int_t idx, Float_t ratio, Int_t type) const
     475Bool_t MRawEvtData::GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type) const
    475476{
    476477    MRawEvtPixelIter Next(const_cast<MRawEvtData*>(this));
     
    478479        return kFALSE;
    479480
    480     val = Next.GetSumHiGainSamples();
     481    val = Next.GetSumHiGainSamples()-(float)GetNumHiGainSamples()*fHiGainFadcSamples->GetArray()[0];
     482    val *= cam.GetPixRatio(idx);
     483
    481484    return kTRUE;
    482485}
  • trunk/MagicSoft/Mars/mraw/MRawEvtData.h

    r2200 r2207  
    6464    void ReadEvt(istream &fin);
    6565
    66     Bool_t GetPixelContent(Float_t &val, Int_t idx, Float_t ratio=1, Int_t type=0) const;
     66    Bool_t GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const;
    6767    void   DrawPixelContent(Int_t num) const
    6868    {
  • trunk/MagicSoft/Mars/mraw/MRawEvtPixelIter.cc

    r2178 r2207  
    203203}
    204204
     205Byte_t MRawEvtPixelIter::GetNumMaxHiGainSample() const
     206{
     207    Byte_t max  = 0;
     208    Byte_t maxi = 0;
     209
     210    for (int i=0; i<fNumHiGainSamples; i++)
     211        if (fHiGainPos[i]>max)
     212        {
     213            max = fHiGainPos[i];
     214            maxi = i;
     215        }
     216
     217    return maxi;
     218}
     219
    205220// --------------------------------------------------------------------------
    206221//
  • trunk/MagicSoft/Mars/mraw/MRawEvtPixelIter.h

    r2178 r2207  
    8181    Float_t GetVarHiGainSamples() const;
    8282
     83    Byte_t GetNumMaxHiGainSample() const;
     84
    8385    Bool_t HasLoGain() const
    8486    {
  • trunk/MagicSoft/Mars/mraw/MRawFileRead.cc

    r2173 r2207  
    128128// Now the EvtHeader and EvtData containers are initialized.
    129129//
    130 Bool_t MRawFileRead::PreProcess(MParList *pList)
     130Int_t MRawFileRead::PreProcess(MParList *pList)
    131131{
    132132    //
     
    192192//  - the raw data information of one event is read
    193193//
    194 Bool_t MRawFileRead::Process()
     194Int_t MRawFileRead::Process()
    195195{
    196196    //
     
    236236//  if it doesn't match.
    237237//
    238 Bool_t MRawFileRead::PostProcess()
     238Int_t MRawFileRead::PostProcess()
    239239{
    240240    //
  • trunk/MagicSoft/Mars/mraw/MRawFileRead.h

    r2173 r2207  
    2929    ifstream       *fIn;            //! buffered input stream (file to read from)
    3030
     31    Int_t PreProcess(MParList *pList);
     32    Int_t Process();
     33    Int_t PostProcess();
     34
     35
    3136public:
    3237    MRawFileRead(const char *filename, const char *name=NULL, const char *title=NULL);
    3338    ~MRawFileRead();
    34 
    35     Bool_t PreProcess(MParList *pList);
    36     Bool_t Process();
    37     Bool_t PostProcess();
    3839
    3940    ClassDef(MRawFileRead, 0)   // Task to read the raw data binary file
  • trunk/MagicSoft/Mars/mraw/MRawFileWrite.cc

    r2173 r2207  
    109109// are created.
    110110//
    111 Bool_t MRawFileWrite::PreProcess (MParList *pList)
     111Int_t MRawFileWrite::PreProcess (MParList *pList)
    112112{
    113113    //
     
    231231// event should be filled in and fills  it into this tree.
    232232//
    233 Bool_t MRawFileWrite::Process()
     233Int_t MRawFileWrite::Process()
    234234{
    235235    //
  • trunk/MagicSoft/Mars/mraw/MRawFileWrite.h

    r2199 r2207  
    4141    ~MRawFileWrite();
    4242
    43     Bool_t PreProcess(MParList *pList);
    44     Bool_t Process();
     43    Int_t PreProcess(MParList *pList);
     44    Int_t Process();
    4545
    4646    ClassDef(MRawFileWrite, 0)  // Task to write the raw data containers to a root file
  • trunk/MagicSoft/Mars/mraw/Makefile

    r2178 r2207  
    2222#  connect the include files defined in the config.mk file
    2323#
    24 INCLUDES = -I. -I../mbase -I../MBase -I../mgui
     24INCLUDES = -I. -I../mbase -I../mgui -I../mgeom -I../MBase
    2525
    2626#------------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.