Logo ROOT   6.08/07
Reference Guide
BDTEventWrapper.cxx
Go to the documentation of this file.
1 /**********************************************************************************
2  * Project: TMVA - a Root-integrated toolkit for multivariate data analysis *
3  * Package: TMVA *
4  * Class : BDTEventWrapper *
5  * Web : http://tmva.sourceforge.net *
6  * *
7  * Description: *
8  * *
9  * *
10  * Author: Doug Schouten (dschoute@sfu.ca) *
11  * *
12  * *
13  * Copyright (c) 2007: *
14  * CERN, Switzerland *
15  * MPI-K Heidelberg, Germany *
16  * U. of Texas at Austin, USA *
17  * *
18  * Redistribution and use in source and binary forms, with or without *
19  * modification, are permitted according to the terms listed in LICENSE *
20  * (http://tmva.sourceforge.net/LICENSE) *
21  **********************************************************************************/
22 
23 #ifndef ROOT_TMVA_BDTEventWrapper
24 #include "TMVA/BDTEventWrapper.h"
25 #endif
26 
27 #include "RtypesCore.h"
28 
29 using namespace TMVA;
30 
32  // constuctor
33 
34  fBkgWeight = 0.0;
35  fSigWeight = 0.0;
36 }
37 
39  // destructor
40 }
41 
43  // Set the accumulated weight, for sorted signal/background events
44  /**
45  * @param fType - true for signal, false for background
46  * @param weight - the total weight
47  */
48 
49  if(type) fSigWeight = weight;
50  else fBkgWeight = weight;
51 }
52 
54  // Get the accumulated weight
55 
56  if(type) return fSigWeight;
57  return fBkgWeight;
58 }
bool Bool_t
Definition: RtypesCore.h:59
BDTEventWrapper(const Event *)
Double_t GetCumulativeWeight(Bool_t type) const
double Double_t
Definition: RtypesCore.h:55
int type
Definition: TGX11.cxx:120
you should not use this method at all Int_t Int_t Double_t Double_t Double_t e
Definition: TRolke.cxx:630
Abstract ClassifierFactory template that handles arbitrary types.
void SetCumulativeWeight(Bool_t type, Double_t weight)