CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 {
10 
11  public:
12 
13 
15 
16  std::vector<double> _apdcuts[2][nOutVar];
17  std::vector<int> _cutvars[nOutVar];
18 
20 
21  // Default Constructor, mainly for Root
22  TAPD();
23 
24  // Destructor: Does nothing
25  virtual ~TAPD();
26 
27  void init();
28 
29  void setCut(int, double, double);
30  void setCut(int , std::vector<int> , std::vector<double> , std::vector<double>);
31 
32  void addEntry(double, double, double, double, double, double, double);
33  void addEntry(double, double, double, double, double);
34 
35  // Simple 1D cuts on main variable at 2 sigmas
36  // ===========================================
37 
38  void setAPDCut(double, double);
39  void setAPDoPNCut(double, double);
40  void setAPDoPN0Cut(double, double);
41  void setAPDoPN1Cut(double, double);
42  void setTimeCut(double, double);
43 
44  // More complicated 2D cuts
45  // =========================
46  void set2DCut(int, std::vector<double> ,std::vector<double> );
47  void set2DAPDCut(std::vector<double>,std::vector<double>);
48  void set2DAPDoPNCut(std::vector<double>,std::vector<double> );
49  void set2DAPDoPN0Cut(std::vector<double>,std::vector<double> );
50  void set2DAPDoPN1Cut(std::vector<double>,std::vector<double> );
51  void set2DAPDoAPD0Cut(std::vector<double>,std::vector<double> );
52  void set2DAPDoAPD1Cut(std::vector<double>,std::vector<double> );
53  void set2DTimeCut(std::vector<double>,std::vector<double> );
54 
55  std::vector<double> get(int);
56  std::vector<double> getAPD();
57  std::vector<double> getAPDoPN();
58  std::vector<double> getAPDoPN0();
59  std::vector<double> getAPDoPN1();
60  std::vector<double> getAPDoAPD0();
61  std::vector<double> getAPDoAPD1();
62  std::vector<double> getTime();
63 
64 
65 
66  public:
67 
68  // ClassDef(TAPD,0)
69 };
70 
71 #endif
std::vector< double > _apdcuts[2][nOutVar]
Definition: TAPD.h:16
TMom * mom[nOutVar]
Definition: TAPD.h:19
void setAPDCut(double, double)
Definition: TAPD.cc:148
TAPD()
Definition: TAPD.cc:21
Definition: TAPD.h:8
void addEntry(double, double, double, double, double, double, double)
Definition: TAPD.cc:54
void set2DAPDoPN0Cut(std::vector< double >, std::vector< double >)
Definition: TAPD.cc:176
void init()
Definition: TAPD.cc:32
Definition: TMom.h:7
std::vector< double > getAPDoPN0()
Definition: TAPD.cc:238
void setTimeCut(double, double)
Definition: TAPD.cc:152
void setCut(int, double, double)
Definition: TAPD.cc:97
void set2DTimeCut(std::vector< double >, std::vector< double >)
Definition: TAPD.cc:203
void setAPDoPN0Cut(double, double)
Definition: TAPD.cc:150
std::vector< double > getAPDoPN1()
Definition: TAPD.cc:239
void set2DAPDoPNCut(std::vector< double >, std::vector< double >)
Definition: TAPD.cc:173
std::vector< double > getAPDoAPD0()
Definition: TAPD.cc:241
void set2DAPDoAPD0Cut(std::vector< double >, std::vector< double >)
Definition: TAPD.cc:184
virtual ~TAPD()
Definition: TAPD.cc:28
outVar
Definition: TAPD.h:14
std::vector< double > getAPDoAPD1()
Definition: TAPD.cc:246
std::vector< double > getAPD()
Definition: TAPD.cc:236
void set2DCut(int, std::vector< double >, std::vector< double >)
Definition: TAPD.cc:158
void set2DAPDCut(std::vector< double >, std::vector< double >)
Definition: TAPD.cc:170
void set2DAPDoAPD1Cut(std::vector< double >, std::vector< double >)
Definition: TAPD.cc:193
std::vector< double > getAPDoPN()
Definition: TAPD.cc:237
void set2DAPDoPN1Cut(std::vector< double >, std::vector< double >)
Definition: TAPD.cc:179
std::vector< double > getTime()
Definition: TAPD.cc:240
void setAPDoPNCut(double, double)
Definition: TAPD.cc:149
std::vector< int > _cutvars[nOutVar]
Definition: TAPD.h:17
void setAPDoPN1Cut(double, double)
Definition: TAPD.cc:151