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
std::vector< double > _apdcuts[2][nOutVar]
Definition: TAPD.h:12
TMom * mom[nOutVar]
Definition: TAPD.h:15
void setAPDCut(double, double)
Definition: TAPD.cc:141
TAPD()
Definition: TAPD.cc:19
Definition: TAPD.h:8
void addEntry(double, double, double, double, double, double, double)
Definition: TAPD.cc:42
void init()
Definition: TAPD.cc:24
Definition: TMom.h:7
std::vector< double > getAPDoPN0()
Definition: TAPD.cc:224
void setTimeCut(double, double)
Definition: TAPD.cc:145
void setCut(int, double, double)
Definition: TAPD.cc:90
void set2DAPDoPN0Cut(const std::vector< double > &, const std::vector< double > &)
Definition: TAPD.cc:166
void set2DAPDoAPD1Cut(const std::vector< double > &, const std::vector< double > &)
Definition: TAPD.cc:181
void setAPDoPN0Cut(double, double)
Definition: TAPD.cc:143
std::vector< double > getAPDoPN1()
Definition: TAPD.cc:228
std::vector< double > getAPDoAPD0()
Definition: TAPD.cc:236
void set2DAPDoAPD0Cut(const std::vector< double > &, const std::vector< double > &)
Definition: TAPD.cc:173
virtual ~TAPD()
Definition: TAPD.cc:22
outVar
Definition: TAPD.h:10
std::vector< double > getAPDoAPD1()
Definition: TAPD.cc:241
std::vector< double > getAPD()
Definition: TAPD.cc:216
void set2DAPDoPN1Cut(const std::vector< double > &, const std::vector< double > &)
Definition: TAPD.cc:169
void set2DCut(int, const std::vector< double > &, const std::vector< double > &)
Definition: TAPD.cc:151
void set2DAPDoPNCut(const std::vector< double > &, const std::vector< double > &)
Definition: TAPD.cc:163
std::vector< double > getAPDoPN()
Definition: TAPD.cc:220
void set2DTimeCut(const std::vector< double > &, const std::vector< double > &)
Definition: TAPD.cc:190
std::vector< double > getTime()
Definition: TAPD.cc:232
void set2DAPDCut(const std::vector< double > &, const std::vector< double > &)
Definition: TAPD.cc:160
void setAPDoPNCut(double, double)
Definition: TAPD.cc:142
std::vector< int > _cutvars[nOutVar]
Definition: TAPD.h:13
void setAPDoPN1Cut(double, double)
Definition: TAPD.cc:144