Ignore:
Timestamp:
11/11/08 11:49:49 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mhist
Files:
16 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhist/MHCamEvent.cc

    r8964 r9153  
    169169// Fill the histograms with data from a MCamEvent-Container.
    170170//
    171 Bool_t MHCamEvent::Fill(const MParContainer *par, const Stat_t w)
     171Int_t MHCamEvent::Fill(const MParContainer *par, const Stat_t w)
    172172{
    173173    const MCamEvent *evt = par ? dynamic_cast<const MCamEvent*>(par) : fEvt;
     
    175175    {
    176176        *fLog << err << dbginf << "Got no MCamEvent as argument of Fill()..." << endl;
    177         return kFALSE;
     177        return kERROR;
    178178    }
    179179    if (fUseThreshold)
  • trunk/MagicSoft/Mars/mhist/MHCamEvent.h

    r8291 r9153  
    3232
    3333    Bool_t SetupFill(const MParList *pList);
    34     Bool_t Fill(const MParContainer *par, const Stat_t w=1);
     34    Int_t Fill(const MParContainer *par, const Stat_t w=1);
    3535
    3636public:
  • trunk/MagicSoft/Mars/mhist/MHCamEventRot.cc

    r8907 r9153  
    176176// Fill the histogram. For details see the code or the class description
    177177//
    178 Bool_t MHCamEventRot::Fill(const MParContainer *par, const Stat_t w)
     178Int_t MHCamEventRot::Fill(const MParContainer *par, const Stat_t w)
    179179{
    180180    const MCamEvent *evt = dynamic_cast<const MCamEvent*>(par);
     
    182182    {
    183183        *fLog << err << "MHCamEventRot::Fill: No container specified!" << endl;
    184         return kFALSE;
     184        return kERROR;
    185185    }
    186186
  • trunk/MagicSoft/Mars/mhist/MHCamEventRot.h

    r6977 r9153  
    4949
    5050    Bool_t SetupFill(const MParList *pList);
    51     Bool_t Fill(const MParContainer *par, const Stat_t w=1);
     51    Int_t Fill(const MParContainer *par, const Stat_t w=1);
    5252
    5353    TH1 *GetHistByName(const TString name) const { return const_cast<TH2D*>(&fHist); }
  • trunk/MagicSoft/Mars/mhist/MHEvent.cc

    r9141 r9153  
    191191}
    192192
    193 Bool_t MHEvent::Fill(const MParContainer *par, const Stat_t weight)
     193Int_t MHEvent::Fill(const MParContainer *par, const Stat_t weight)
    194194{
    195195    if (fHist->IsFreezed())
     
    197197
    198198    if (!par)
    199         return kFALSE;
     199    {
     200        *fLog << err << "ERROR - par==NULL... abort." << endl;
     201        return kERROR;
     202    }
    200203
    201204    const MCamEvent *event = dynamic_cast<const MCamEvent*>(par);
     
    203206    {
    204207        *fLog << err << par->GetDescriptor() << " doesn't inherit from MCamEvent... abort." << endl;
    205         return kFALSE;
     208        return kERROR;
    206209    }
    207210
  • trunk/MagicSoft/Mars/mhist/MHEvent.h

    r7297 r9153  
    5252
    5353    Bool_t SetupFill(const MParList *plist);
    54     Bool_t Fill(const MParContainer *par, const Stat_t weight=1);
     54    Int_t Fill(const MParContainer *par, const Stat_t weight=1);
    5555
    5656public:
  • trunk/MagicSoft/Mars/mhist/MHHadronness.cc

    r8907 r9153  
    200200// are skipped at the moment.
    201201//
    202 Bool_t MHHadronness::Fill(const MParContainer *par, const Stat_t w)
     202Int_t MHHadronness::Fill(const MParContainer *par, const Stat_t w)
    203203{
    204204    // Preliminary Workaround: FIXME!
     
    206206    {
    207207        *fLog << err << "MHHadronness::Fill: No MHadronness container specified!" << endl;
    208         return kFALSE;
     208        return kERROR;
    209209    }
    210210
     
    214214
    215215    if (!TMath::Finite(h))
    216         return kCONTINUE;
     216        return kTRUE;  // Use kCONTINUE with extreme care!
    217217
    218218    const Int_t particleid = fMatrix ? (Int_t)(*fMatrix)[fMap] : fMcEvt->GetPartId();
  • trunk/MagicSoft/Mars/mhist/MHHadronness.h

    r6890 r9153  
    4949
    5050    Bool_t SetupFill(const MParList *plist);
    51     Bool_t Fill(const MParContainer *par, const Stat_t w=1);
     51    Int_t Fill(const MParContainer *par, const Stat_t w=1);
    5252    Bool_t Finalize();
    5353
  • trunk/MagicSoft/Mars/mhist/MHRate.cc

    r8104 r9153  
    145145// MMuonSearchPar container.
    146146//
    147 Bool_t MHRate::Fill(const MParContainer *par, const Stat_t w)
     147Int_t MHRate::Fill(const MParContainer *par, const Stat_t w)
    148148{
    149149    const MTime *t = dynamic_cast<const MTime*>(par);
  • trunk/MagicSoft/Mars/mhist/MHRate.h

    r7198 r9153  
    4646
    4747    Bool_t SetupFill(const MParList *plist);
    48     Bool_t Fill(const MParContainer *par, const Stat_t w=1);
     48    Int_t Fill(const MParContainer *par, const Stat_t w=1);
    4949
    5050    void Draw(Option_t *opt="");
  • trunk/MagicSoft/Mars/mhist/MHStarMap.cc

    r3666 r9153  
    189189// Be careful: Only call this with an object of type MHillas
    190190//
    191 Bool_t MHStarMap::Fill(const MParContainer *par, const Stat_t w)
     191Int_t MHStarMap::Fill(const MParContainer *par, const Stat_t w)
    192192{
    193193    const MHillas &h = *(MHillas*)par;
  • trunk/MagicSoft/Mars/mhist/MHStarMap.h

    r6977 r9153  
    3333
    3434    Bool_t SetupFill(const MParList *pList);
    35     Bool_t Fill(const MParContainer *par, const Stat_t w=1);
     35    Int_t Fill(const MParContainer *par, const Stat_t w=1);
    3636
    3737    Bool_t ReInit(MParList *pList);
  • trunk/MagicSoft/Mars/mhist/MHTriggerLvl0.cc

    r6977 r9153  
    121121// Fill the histograms with data from a MCamEvent-Container.
    122122//
    123 Bool_t MHTriggerLvl0::Fill(const MParContainer *par, const Stat_t w)
     123Int_t MHTriggerLvl0::Fill(const MParContainer *par, const Stat_t w)
    124124{
    125125    const MCamEvent *evt = par ? dynamic_cast<const MCamEvent*>(par) : fEvt;
     
    127127    {
    128128        *fLog << err << dbginf << "Got no MCamEvent as argument of Fill()..." << endl;
    129         return kFALSE;
     129        return kERROR;
    130130    }
    131131
  • trunk/MagicSoft/Mars/mhist/MHTriggerLvl0.h

    r6977 r9153  
    2121
    2222    Bool_t SetupFill(const MParList *pList);
    23     Bool_t Fill(const MParContainer *par, const Stat_t w=1);
     23    Int_t Fill(const MParContainer *par, const Stat_t w=1);
    2424    Bool_t Finalize();
    2525
  • trunk/MagicSoft/Mars/mhist/MHWeather.cc

    r8940 r9153  
    161161// MMuonSearchPar container.
    162162//
    163 Bool_t MHWeather::Fill(const MParContainer *par, const Stat_t w)
     163Int_t MHWeather::Fill(const MParContainer *par, const Stat_t w)
    164164{
    165165    const MTime *t = dynamic_cast<const MTime*>(par);
  • trunk/MagicSoft/Mars/mhist/MHWeather.h

    r8934 r9153  
    4141
    4242    Bool_t SetupFill(const MParList *plist);
    43     Bool_t Fill(const MParContainer *par, const Stat_t w=1);
     43    Int_t Fill(const MParContainer *par, const Stat_t w=1);
    4444
    4545    // If this is needed be aware that it would be called twice in star
Note: See TracChangeset for help on using the changeset viewer.