16 using namespace findNode;
19 namespace SColdQcdCorrelatorAnalysis {
23 void SCorrelatorJetTree::SetEvtVzRange(
const pair<double, double> vzRange) {
25 m_evtVzRange[0] = vzRange.first;
26 m_evtVzRange[1] = vzRange.second;
33 void SCorrelatorJetTree::SetEvtVrRange(
const pair<double, double> vrRange) {
35 m_evtVrRange[0] = vrRange.first;
36 m_evtVrRange[1] = vrRange.second;
43 void SCorrelatorJetTree::SetParPtRange(
const pair<double, double> ptRange) {
45 m_parPtRange[0] = ptRange.first;
46 m_parPtRange[1] = ptRange.second;
53 void SCorrelatorJetTree::SetParEtaRange(
const pair<double, double> etaRange) {
55 m_parEtaRange[0] = etaRange.first;
56 m_parEtaRange[1] = etaRange.second;
63 void SCorrelatorJetTree::SetTrackPtRange(
const pair<double, double> ptRange) {
65 m_trkPtRange[0] = ptRange.first;
66 m_trkPtRange[1] = ptRange.second;
73 void SCorrelatorJetTree::SetTrackEtaRange(
const pair<double, double> etaRange) {
75 m_trkEtaRange[0] = etaRange.first;
76 m_trkEtaRange[1] = etaRange.second;
83 void SCorrelatorJetTree::SetTrackQualityRange(
const pair<double, double> qualRange) {
85 m_trkQualRange[0] = qualRange.first;
86 m_trkQualRange[1] = qualRange.second;
93 void SCorrelatorJetTree::SetTrackNMvtxRange(
const pair<double, double> nMvtxRange) {
95 m_trkNMvtxRange[0] = nMvtxRange.first;
96 m_trkNMvtxRange[1] = nMvtxRange.second;
103 void SCorrelatorJetTree::SetTrackNInttRange(
const pair<double, double> nInttRange) {
105 m_trkNInttRange[0] = nInttRange.first;
106 m_trkNInttRange[1] = nInttRange.second;
113 void SCorrelatorJetTree::SetTrackNTpcRange(
const pair<double, double> nTpcRange) {
115 m_trkNTpcRange[0] = nTpcRange.first;
116 m_trkNTpcRange[1] = nTpcRange.second;
123 void SCorrelatorJetTree::SetTrackDcaRangeXY(
const pair<double, double> dcaRangeXY) {
125 m_trkDcaRangeXY[0] = dcaRangeXY.first;
126 m_trkDcaRangeXY[1] = dcaRangeXY.second;
133 void SCorrelatorJetTree::SetTrackDcaRangeZ(
const pair<double, double> dcaRangeZ) {
135 m_trkDcaRangeZ[0] = dcaRangeZ.first;
136 m_trkDcaRangeZ[1] = dcaRangeZ.second;
143 void SCorrelatorJetTree::SetTrackDeltaPtRange(
const pair<double, double> deltaPtRange) {
145 m_trkDeltaPtRange[0] = deltaPtRange.first;
146 m_trkDeltaPtRange[1] = deltaPtRange.second;
153 void SCorrelatorJetTree::SetTrackDcaSigmaParameters(
const bool doDcaSigmaCut,
const pair<double, double> ptFitMax,
const pair<double, double> nSigma,
const vector<double> paramDcaXY,
const vector<double> paramDcaZ) {
155 m_doDcaSigmaCut = doDcaSigmaCut;
156 m_dcaPtFitMaxXY = ptFitMax.first;
157 m_dcaPtFitMaxZ = ptFitMax.second;
158 m_nSigCutXY = nSigma.first;
159 m_nSigCutZ = nSigma.second;
160 for (uint8_t iParam = 0; iParam < CONST::NParam; iParam++) {
164 m_parSigDcaXY[iParam] = paramDcaXY.at(iParam);
165 }
catch (std::out_of_range &
out) {
166 cerr <<
"SCorrelatorJetTree::SetTrackDcaSigmaParameters: WARNING!\n"
167 <<
" Tried to pass a vector of wrong size for sigma dca xy fit parameters!\n"
168 <<
" Size of vector was " << paramDcaXY.size() <<
" but should've been " << CONST::NParam <<
"..."
170 assert(paramDcaXY.size() == CONST::NParam);
175 m_parSigDcaZ[iParam] = paramDcaZ.at(iParam);
176 }
catch (std::out_of_range &out) {
177 cerr <<
"SCorrelatorJetTree::SetTrackDcaSigmaParameters: WARNING!\n"
178 <<
" Tried to pass a vector of wrong size for sigma dca z fit parameters!\n"
179 <<
" Size of vector was " << paramDcaZ.size() <<
" but should've been " << CONST::NParam <<
"..."
181 assert(paramDcaZ.size() == CONST::NParam);
190 void SCorrelatorJetTree::SetFlowPtRange(
const pair<double, double> ptRange) {
192 m_flowPtRange[0] = ptRange.first;
193 m_flowPtRange[1] = ptRange.second;
200 void SCorrelatorJetTree::SetFlowEtaRange(
const pair<double, double> etaRange) {
202 m_flowEtaRange[0] = etaRange.first;
203 m_flowEtaRange[1] = etaRange.second;
210 void SCorrelatorJetTree::SetECalPtRange(
const pair<double, double> ptRange) {
212 m_ecalPtRange[0] = ptRange.first;
213 m_ecalPtRange[1] = ptRange.second;
220 void SCorrelatorJetTree::SetECalEtaRange(
const pair<double, double> etaRange) {
222 m_ecalEtaRange[0] = etaRange.first;
223 m_ecalEtaRange[1] = etaRange.second;
230 void SCorrelatorJetTree::SetHCalPtRange(
const pair<double, double> ptRange) {
232 m_hcalPtRange[0] = ptRange.first;
233 m_hcalPtRange[1] = ptRange.second;
240 void SCorrelatorJetTree::SetHCalEtaRange(
const pair<double, double> etaRange) {
242 m_hcalEtaRange[0] = etaRange.first;
243 m_hcalEtaRange[1] = etaRange.second;
250 void SCorrelatorJetTree::SetJetAlgo(
const ALGO jetAlgo) {
259 case ALGO::CAMBRIDGE:
272 void SCorrelatorJetTree::SetRecombScheme(
const RECOMB recombScheme) {
274 switch(recombScheme) {
275 case RECOMB::E_SCHEME:
278 case RECOMB::PT_SCHEME:
281 case RECOMB::PT2_SCHEME:
284 case RECOMB::ET_SCHEME:
287 case RECOMB::ET2_SCHEME:
300 void SCorrelatorJetTree::SetJetParameters(
const double rJet, uint32_t jetType,
const ALGO jetAlgo,
const RECOMB recombScheme) {
305 SetRecombScheme(recombScheme);