forked from UMN-CMS/ZFinder
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move CutLevel to its own interface file
- Loading branch information
Alexander Gude
committed
May 13, 2014
1 parent
06da0d0
commit e27e17c
Showing
7 changed files
with
46 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#ifndef ZFINDER_CUTLEVEL_H_ | ||
#define ZFINDER_CUTLEVEL_H_ | ||
|
||
// Standard Library | ||
#include <string> // std::string | ||
#include <utility> // std::pair | ||
#include <vector> // std::vector | ||
|
||
namespace zf { | ||
|
||
// Cut level struct | ||
struct CutLevel{ | ||
// Constructor sets all values to false | ||
CutLevel() { | ||
pass = false; | ||
t0p1_pass = false; | ||
t0p1_eff = 1.; | ||
t1p0_pass = false; | ||
t1p0_eff = 1.; | ||
event_weight = 1.; | ||
} | ||
bool pass; | ||
bool t0p1_pass; | ||
bool t1p0_pass; | ||
double t0p1_eff; | ||
double t1p0_eff; | ||
double event_weight; | ||
}; | ||
|
||
|
||
// Used to match cut levels to names | ||
typedef std::pair<std::string, CutLevel> cutlevel_pair; | ||
// Used to pass around cut levels | ||
typedef std::vector<cutlevel_pair> cutlevel_vector; | ||
|
||
} // namespace zf | ||
#endif // ZFINDER_CUTLEVEL_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters