CMS 3D CMS Logo

TAPD.h
Go to the documentation of this file.
1 #ifndef TAPD_H
2 #define TAPD_H
3 
4 #include <vector>
5 
6 class TMom;
7 
8 class TAPD {
9 public:
11 
12  std::vector<double> _apdcuts[2][nOutVar];
13  std::vector<int> _cutvars[nOutVar];
14 
16 
17  // Default Constructor, mainly for Root
18  TAPD();
19 
20  // Destructor: Does nothing
21  virtual ~TAPD();
22 
23  void init();
24 
25  void setCut(int, double, double);
26  void setCut(int, const std::vector<int>&, const std::vector<double>&, const std::vector<double>&);
27 
28  void addEntry(double, double, double, double, double, double, double);
29  void addEntry(double, double, double, double, double);
30 
31  // Simple 1D cuts on main variable at 2 sigmas
32  // ===========================================
33 
34  void setAPDCut(double, double);
35  void setAPDoPNCut(double, double);
36  void setAPDoPN0Cut(double, double);
37  void setAPDoPN1Cut(double, double);
38  void setTimeCut(double, double);
39 
40  // More complicated 2D cuts
41  // =========================
42  void set2DCut(int, const std::vector<double>&, const std::vector<double>&);
43  void set2DAPDCut(const std::vector<double>&, const std::vector<double>&);
44  void set2DAPDoPNCut(const std::vector<double>&, const std::vector<double>&);
45  void set2DAPDoPN0Cut(const std::vector<double>&, const std::vector<double>&);
46  void set2DAPDoPN1Cut(const std::vector<double>&, const std::vector<double>&);
47  void set2DAPDoAPD0Cut(const std::vector<double>&, const std::vector<double>&);
48  void set2DAPDoAPD1Cut(const std::vector<double>&, const std::vector<double>&);
49  void set2DTimeCut(const std::vector<double>&, const std::vector<double>&);
50 
51  std::vector<double> get(int);
52  std::vector<double> getAPD();
53  std::vector<double> getAPDoPN();
54  std::vector<double> getAPDoPN0();
55  std::vector<double> getAPDoPN1();
56  std::vector<double> getAPDoAPD0();
57  std::vector<double> getAPDoAPD1();
58  std::vector<double> getTime();
59 
60 public:
61  // ClassDef(TAPD,0)
62 };
63 
64 #endif
TAPD::nOutVar
Definition: TAPD.h:10
TAPD::getAPDoAPD1
std::vector< double > getAPDoAPD1()
Definition: TAPD.cc:241
TAPD::~TAPD
virtual ~TAPD()
Definition: TAPD.cc:22
TAPD::getAPD
std::vector< double > getAPD()
Definition: TAPD.cc:216
TAPD::set2DAPDoPN1Cut
void set2DAPDoPN1Cut(const std::vector< double > &, const std::vector< double > &)
Definition: TAPD.cc:169
TAPD::outVar
outVar
Definition: TAPD.h:10
TAPD::iAPDoPN
Definition: TAPD.h:10
TAPD::set2DAPDoPNCut
void set2DAPDoPNCut(const std::vector< double > &, const std::vector< double > &)
Definition: TAPD.cc:163
TAPD::set2DCut
void set2DCut(int, const std::vector< double > &, const std::vector< double > &)
Definition: TAPD.cc:151
TAPD::iAPDoPN0
Definition: TAPD.h:10
TAPD::getAPDoPN
std::vector< double > getAPDoPN()
Definition: TAPD.cc:220
TAPD::set2DTimeCut
void set2DTimeCut(const std::vector< double > &, const std::vector< double > &)
Definition: TAPD.cc:190
TAPD::iAPD
Definition: TAPD.h:10
TAPD::getTime
std::vector< double > getTime()
Definition: TAPD.cc:232
TAPD::setAPDoPNCut
void setAPDoPNCut(double, double)
Definition: TAPD.cc:142
TAPD::iAPDoAPD0
Definition: TAPD.h:10
TAPD::mom
TMom * mom[nOutVar]
Definition: TAPD.h:15
TAPD::TAPD
TAPD()
Definition: TAPD.cc:19
TAPD::setAPDCut
void setAPDCut(double, double)
Definition: TAPD.cc:141
TAPD::set2DAPDCut
void set2DAPDCut(const std::vector< double > &, const std::vector< double > &)
Definition: TAPD.cc:160
TAPD::_cutvars
std::vector< int > _cutvars[nOutVar]
Definition: TAPD.h:13
TAPD::setAPDoPN1Cut
void setAPDoPN1Cut(double, double)
Definition: TAPD.cc:144
TMom
Definition: TMom.h:7
TAPD::_apdcuts
std::vector< double > _apdcuts[2][nOutVar]
Definition: TAPD.h:12
TAPD::iAPDoPN1
Definition: TAPD.h:10
TAPD::addEntry
void addEntry(double, double, double, double, double, double, double)
Definition: TAPD.cc:42
TAPD
Definition: TAPD.h:8
TAPD::getAPDoPN0
std::vector< double > getAPDoPN0()
Definition: TAPD.cc:224
TAPD::setTimeCut
void setTimeCut(double, double)
Definition: TAPD.cc:145
TAPD::setCut
void setCut(int, double, double)
Definition: TAPD.cc:90
TAPD::set2DAPDoPN0Cut
void set2DAPDoPN0Cut(const std::vector< double > &, const std::vector< double > &)
Definition: TAPD.cc:166
TAPD::set2DAPDoAPD1Cut
void set2DAPDoAPD1Cut(const std::vector< double > &, const std::vector< double > &)
Definition: TAPD.cc:181
TAPD::init
void init()
Definition: TAPD.cc:24
TAPD::iAPDoAPD1
Definition: TAPD.h:10
TAPD::getAPDoAPD0
std::vector< double > getAPDoAPD0()
Definition: TAPD.cc:236
TAPD::iTime
Definition: TAPD.h:10
TAPD::setAPDoPN0Cut
void setAPDoPN0Cut(double, double)
Definition: TAPD.cc:143
TAPD::get
std::vector< double > get(int)
Definition: TAPD.cc:199
TAPD::getAPDoPN1
std::vector< double > getAPDoPN1()
Definition: TAPD.cc:228
TAPD::set2DAPDoAPD0Cut
void set2DAPDoAPD0Cut(const std::vector< double > &, const std::vector< double > &)
Definition: TAPD.cc:173