-
Notifications
You must be signed in to change notification settings - Fork 0
/
TagAndProbe.cc
21 lines (16 loc) · 1.23 KB
/
TagAndProbe.cc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "TagAndProbe.h"
TagAndProbe::TagAndProbe( std::vector<double>& vPt, std::vector<double>& vEta, std::vector<double>& vCent, std::string beam, std::string config, std::string charge,
std::string tpType) : EfficiencyCorrection(vPt,vEta,vCent,beam,config,charge,tpType){
if(strcmp(beam.c_str(),"data")==0) std::cout << "[TagAndProbe::TagAndProbe] Running T&P analysis with data." << std::endl;
else if(strcmp(beam.c_str(),"pp")==0) std::cout << "[TagAndProbe::TagAndProbe] Running T&P analysis with p+p MC." << std::endl;
else if(strcmp(beam.c_str(),"pn")==0) std::cout << "[TagAndProbe::TagAndProbe] Running T&P analysis with p+n MC." << std::endl;
else if(strcmp(beam.c_str(),"np")==0) std::cout << "[TagAndProbe::TagAndProbe] Running T&P analysis with n+p MC." << std::endl;
else {
std::cout << "[TagAndProbe::TagAndProbe] ERROR: Cannot identify beam type. Please select data, pp, np, or pn. " << std::endl;
return;
}
std::cout << "[TagAndProbe::TagAndProbe] Performing T&P analysis for " << tpType << std::endl;
}
void TagAndProbe::fillTPHistos(double pt, double eta, double centrality, double charge, std::string type){
fillHistos(pt,eta,centrality,charge,type);
}