CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Member Functions | Private Attributes
Var Class Reference

Public Member Functions

void fill (TaggingVariableList &list)
 
 Var (char type, TTree *tree, const char *name)
 

Static Public Member Functions

static bool order (const boost::shared_ptr< Var > &a, const boost::shared_ptr< Var > &b)
 

Private Attributes

double D
 
std::vector< double > d
 
int I
 
std::vector< int > i
 
void * indirect
 
char type
 
TaggingVariableName var
 

Detailed Description

Definition at line 107 of file JetTagMVATreeTrainer.cc.

Constructor & Destructor Documentation

Var::Var ( char  type,
TTree *  tree,
const char *  name 
)
inline

Definition at line 109 of file JetTagMVATreeTrainer.cc.

References Exhume::I, and i.

109  :
111  {
112  switch(type) {
113  case 'D':
114  tree->SetBranchAddress(name, &D);
115  break;
116  case 'I':
117  tree->SetBranchAddress(name, &I);
118  break;
119  case 'd':
120  indirect = &d;
121  tree->SetBranchAddress(name, &indirect);
122  break;
123  case 'i':
124  indirect = &i;
125  tree->SetBranchAddress(name, &indirect);
126  break;
127  }
128  }
type
Definition: HCALResponse.h:21
void * indirect
std::vector< int > i
std::vector< double > d
TaggingVariableName getTaggingVariableName(const std::string &name)
TaggingVariableName var

Member Function Documentation

void Var::fill ( TaggingVariableList list)
inline

Definition at line 130 of file JetTagMVATreeTrainer.cc.

References Exhume::I, i, reco::TaggingVariableList::insert(), and AlCaHLTBitMon_ParallelJobs::p.

131  {
132  switch(type) {
133  case 'D':
134  list.insert(var, D, true);
135  break;
136  case 'I':
137  list.insert(var, I, true);
138  break;
139  case 'd':
140  for(std::vector<double>::const_iterator p = d.begin();
141  p != d.end(); p++)
142  list.insert(var, *p, true);
143  break;
144  case 'i':
145  for(std::vector<int>::const_iterator p = i.begin();
146  p != i.end(); p++)
147  list.insert(var, *p, true);
148  break;
149  }
150  }
type
Definition: HCALResponse.h:21
std::vector< int > i
std::vector< double > d
TaggingVariableName var
void insert(const TaggingVariable &variable, bool delayed=false)
static bool Var::order ( const boost::shared_ptr< Var > &  a,
const boost::shared_ptr< Var > &  b 
)
inlinestatic

Definition at line 152 of file JetTagMVATreeTrainer.cc.

Referenced by JetTagMVATreeTrainer::analyze().

154  { return a->var < b->var; }
double b
Definition: hdecay.h:120
double a
Definition: hdecay.h:121

Member Data Documentation

double Var::D
private

Definition at line 159 of file JetTagMVATreeTrainer.cc.

std::vector<double> Var::d
private

Definition at line 161 of file JetTagMVATreeTrainer.cc.

int Var::I
private

Definition at line 160 of file JetTagMVATreeTrainer.cc.

std::vector<int> Var::i
private

Definition at line 162 of file JetTagMVATreeTrainer.cc.

void* Var::indirect
private

Definition at line 163 of file JetTagMVATreeTrainer.cc.

char Var::type
private
TaggingVariableName Var::var
private

Definition at line 158 of file JetTagMVATreeTrainer.cc.