susy_cfa  b611ccad937ea179f86a1f5663960264616c0a20
iso_transfer.hpp
Go to the documentation of this file.
1 #ifndef H_ISO_TRANSFER
2 #define H_ISO_TRANSFER
3 
4 #include <cstddef>
5 
6 #include <vector>
7 
8 #include "TLine.h"
9 
10 #include "small_tree.hpp"
11 
12 struct CutBase;
13 
14 typedef int (*IsoCut)(const small_tree &, int &, int &);
15 
16 template<typename T>
17 void Delete(T& vec){
18  for(typename T::iterator it = vec.begin();
19  it != vec.end();
20  ++it){
21  if(*it){
22  delete *it;
23  *it = NULL;
24  }
25  }
26  vec.clear();
27 }
28 
29 bool PassesCuts(const std::vector<CutBase*> &cuts);
30 int GetLeptons(const small_tree &tree,
31  IsoCut cut,
32  int &best_el,
33  int &best_mu);
34 
35 void Fix(const small_tree &tree,
36  int &best_el, int &best_mu);
37 
38 int StandardIso(const small_tree &tree,
39  int &best_el,
40  int &best_mu);
41 int StandardEl(const small_tree &tree,
42  int &best_el);
43 int StandardMu(const small_tree &tree,
44  int &best_mu);
45 
46 int MiniIso(const small_tree &tree,
47  int &best_el,
48  int &best_mu);
49 int MiniEl(const small_tree &tree,
50  int &best_el);
51 int MiniMu(const small_tree &tree,
52  int &best_mu);
53 
54 int VetoStandardIso(const small_tree &tree,
55  int &best_el,
56  int &best_mu);
57 int VetoStandardEl(const small_tree &tree,
58  int &best_el);
59 int VetoStandardMu(const small_tree &tree,
60  int &best_mu);
61 
62 int VetoMiniIso(const small_tree &tree,
63  int &best_el,
64  int &best_mu);
65 int VetoMiniEl(const small_tree &tree,
66  int &best_el);
67 int VetoMiniMu(const small_tree &tree,
68  int &best_mu);
69 
70 void PositiveColors(int pos_cols[]);
71 void SymmetricColors(int sym_cols[]);
72 void SetLineStyle(TLine &line);
73 
74 #endif
int VetoMiniEl(const small_tree &tree, int &best_el)
void PositiveColors(int pos_cols[])
int MiniMu(const small_tree &tree, int &best_mu)
int StandardEl(const small_tree &tree, int &best_el)
int VetoStandardIso(const small_tree &tree, int &best_el, int &best_mu)
int VetoStandardEl(const small_tree &tree, int &best_el)
void Fix(const small_tree &tree, int &best_el, int &best_mu)
void Delete(T &vec)
void SetLineStyle(TLine &line)
void SymmetricColors(int sym_cols[])
bool PassesCuts(const std::vector< CutBase * > &cuts)
int VetoStandardMu(const small_tree &tree, int &best_mu)
Definition: cut.hpp:17
int(* IsoCut)(const small_tree &, int &, int &)
int GetLeptons(const small_tree &tree, IsoCut cut, int &best_el, int &best_mu)
int StandardIso(const small_tree &tree, int &best_el, int &best_mu)
int MiniIso(const small_tree &tree, int &best_el, int &best_mu)
int VetoMiniMu(const small_tree &tree, int &best_mu)
int VetoMiniIso(const small_tree &tree, int &best_el, int &best_mu)
int StandardMu(const small_tree &tree, int &best_mu)
int MiniEl(const small_tree &tree, int &best_el)