/**********************************************************************************
 * Project: TMVA - a Root-integrated toolkit for multivariate data analysis       *
 * Package: TMVA                                                                  *
 * Class  : BDTEventWrapper                                                       *
 * Web    : http://tmva.sourceforge.net                                           *
 *                                                                                *
 * Description:                                                                   *
 *                                                                                *
 *                                                                                *
 * Author: Doug Schouten (dschoute@sfu.ca)                                        *
 *                                                                                *
 *                                                                                *
 * Copyright (c) 2007:                                                            *
 *      CERN, Switzerland                                                         *
 *      MPI-K Heidelberg, Germany                                                 *
 *      U. of Texas at Austin, USA                                                *
 *                                                                                *
 * Redistribution and use in source and binary forms, with or without             *
 * modification, are permitted according to the terms listed in LICENSE           *
 * (http://tmva.sourceforge.net/LICENSE)                                          *
 **********************************************************************************/

#ifndef ROOT_TMVA_BDTEventWrapper
#include "TMVA/BDTEventWrapper.h"
#endif

using namespace TMVA;

BDTEventWrapper::BDTEventWrapper(const Event* e) : fEvent(e) {
   // constuctor

  fBkgWeight = 0.0;
  fSigWeight = 0.0;
}

BDTEventWrapper::~BDTEventWrapper() {
   // destructor
}

void BDTEventWrapper::SetCumulativeWeight(Bool_t type, Double_t weight) {
   // Set the accumulated weight, for sorted signal/background events
   /**
    * @param fType - true for signal, false for background
    * @param weight - the total weight
    */

   if(type) fSigWeight = weight;
   else fBkgWeight = weight;
}

Double_t BDTEventWrapper::GetCumulativeWeight(Bool_t type) const {
   // Get the accumulated weight

   if(type) return fSigWeight;
   return fBkgWeight;
}
 BDTEventWrapper.cxx:1
 BDTEventWrapper.cxx:2
 BDTEventWrapper.cxx:3
 BDTEventWrapper.cxx:4
 BDTEventWrapper.cxx:5
 BDTEventWrapper.cxx:6
 BDTEventWrapper.cxx:7
 BDTEventWrapper.cxx:8
 BDTEventWrapper.cxx:9
 BDTEventWrapper.cxx:10
 BDTEventWrapper.cxx:11
 BDTEventWrapper.cxx:12
 BDTEventWrapper.cxx:13
 BDTEventWrapper.cxx:14
 BDTEventWrapper.cxx:15
 BDTEventWrapper.cxx:16
 BDTEventWrapper.cxx:17
 BDTEventWrapper.cxx:18
 BDTEventWrapper.cxx:19
 BDTEventWrapper.cxx:20
 BDTEventWrapper.cxx:21
 BDTEventWrapper.cxx:22
 BDTEventWrapper.cxx:23
 BDTEventWrapper.cxx:24
 BDTEventWrapper.cxx:25
 BDTEventWrapper.cxx:26
 BDTEventWrapper.cxx:27
 BDTEventWrapper.cxx:28
 BDTEventWrapper.cxx:29
 BDTEventWrapper.cxx:30
 BDTEventWrapper.cxx:31
 BDTEventWrapper.cxx:32
 BDTEventWrapper.cxx:33
 BDTEventWrapper.cxx:34
 BDTEventWrapper.cxx:35
 BDTEventWrapper.cxx:36
 BDTEventWrapper.cxx:37
 BDTEventWrapper.cxx:38
 BDTEventWrapper.cxx:39
 BDTEventWrapper.cxx:40
 BDTEventWrapper.cxx:41
 BDTEventWrapper.cxx:42
 BDTEventWrapper.cxx:43
 BDTEventWrapper.cxx:44
 BDTEventWrapper.cxx:45
 BDTEventWrapper.cxx:46
 BDTEventWrapper.cxx:47
 BDTEventWrapper.cxx:48
 BDTEventWrapper.cxx:49
 BDTEventWrapper.cxx:50
 BDTEventWrapper.cxx:51
 BDTEventWrapper.cxx:52
 BDTEventWrapper.cxx:53
 BDTEventWrapper.cxx:54
 BDTEventWrapper.cxx:55
 BDTEventWrapper.cxx:56