library: libTMVA
#include "Event.h"

TMVA::Event


class description - header file - source file - inheritance tree (.pdf)

class TMVA::Event

Inheritance Chart:
TMVA::Event

    public:
Event() Event(vector<Double_t>& v, Double_t w = 1, Int_t t = -1) Event(TTree* tree, Int_t ievt, vector<TString>* fInputVars) Event(const TMVA::Event&) virtual ~Event() static TClass* Class() const vector<Double_t>& GetData() const const Double_t& GetData(Int_t i) const Int_t GetEventSize() const Int_t GetType() const Int_t GetType2() const Double_t GetWeight() const void Insert(Double_t v) virtual TClass* IsA() const TMVA::Event& operator=(const TMVA::Event&) void Print(ostream& os) const TMVA::Event* Read(ifstream& is) void SetType(Int_t t) void SetWeight(Double_t w) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members

    private:
vector<Double_t> fVar the vector of event variables Double_t fWeight event weight Int_t fType event type (sigal=1 bkg = 0)

Class Description

_______________________________________________________________________
                                                                      
 Variables of an event as used for the Binary Tree                    
                                                                      
______________________________________________________________________
Event(TTree* tree, Int_t ievt, std::vector<TString>* fInputVars)
event constructor reading variables from a ROOT tree
const Double_t& GetData(Int_t i)
 return reference to "i-th" event variable
void Print(ostream& os)
print event variables and event weight
TMVA::Event* Read(ifstream& is)
read event e.g. from a text file
Event()
 default constructor
Event( std::vector<Double_t> &v, Double_t w = 1 , Int_t t=-1)
 constructor specifying the event variables
Event( TTree* tree, Int_t ievt, std::vector<TString>* fInputVars )
 constructor reading the Event from the ROOT tree
virtual ~Event()
 destructor
Int_t GetEventSize()
 return the number of the event variabels
void Insert( Double_t v )
 add an event variable
void SetWeight( Double_t w )
 set an event weight
Double_t GetWeight()
return the event weight
Int_t GetType()
 return the event type (signal = 1, bkg = 0);
Int_t GetType2()
 return alternative type variables (signal = 1, bkg = -1)
void SetType( Int_t t )
 set the event type (signal = 1, bkg = 0);

Author: Andreas Hoecker, Joerg Stelzer, Helge Voss, Kai Voss
Last update: root/tmva $Id: Event.cxx,v 1.3 2006/05/23 19:35:06 brun Exp $
Copyright (c) 2005: *


ROOT page - Class index - Class Hierarchy - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.