85 for (
int itrack = 0; itrack <
tracks_->size(); ++itrack) {
91 bool isTop = (track->getTanLambda() > 0.0);
92 bool isPos = (track->getOmega() < 0.0);
93 bool isKF = track->isKalmanTrack();
94 int trkType = (int)isTop*2 + (
int)isPos;
95 int n2dhits_onTrack = !track->isKalmanTrack() ? track->getTrackerHitCount() * 2 : track->getTrackerHitCount();
111 std::vector<int> hit_layers;
114 for (
int ihit = 0; ihit<track->getSvtHits().GetEntries(); ++ihit) {
117 hit_layers.push_back(layer);
122 hitCode = hitCode | (0x1 << layer);
130 hitCode = hitCode | (0x1 << (2*layer));
131 hitCode = hitCode | (0x1 << (2*layer+1));
147 if(
debug_) std::cout<<
"Check for region "<<region
149 <<
" lt:"<< !
reg_selectors_[region]->passCutLt(
"hitCode_lt", ((
double)hitCode)-0.5, weight)
150 <<
" gt:"<< !
reg_selectors_[region]->passCutGt(
"hitCode_gt", ((
double)hitCode)+0.5, weight)
153 if ( !
reg_selectors_[region]->passCutLt(
"hitCode_lt", ((
double)hitCode)-0.5, weight) )
continue;
155 if(
debug_) std::cout<<
"Pass Lt cut"<<std::endl;
156 if ( !
reg_selectors_[region]->passCutGt(
"hitCode_gt", ((
double)hitCode)+0.5, weight) )
continue;
158 if(
debug_) std::cout<<
"Pass Gt cut"<<std::endl;
160 if(
debug_) std::cout<<
"Pass region "<<region<<std::endl;
161 reg_histos_[region]->Fill1DHisto(
"hitCode_h", hitCode,weight);
164 reg_histos_[region]->Fill1DTrack(track, weight,
"topPos_");
165 reg_histos_[region]->Fill2DTrack(track, weight,
"topPos_");
169 reg_histos_[region]->Fill1DTrack(track, weight,
"topEle_");
170 reg_histos_[region]->Fill2DTrack(track, weight,
"topEle_");
174 reg_histos_[region]->Fill1DTrack(track, weight,
"botPos_");
175 reg_histos_[region]->Fill2DTrack(track, weight,
"botPos_");
179 reg_histos_[region]->Fill1DTrack(track, weight,
"botEle_");
180 reg_histos_[region]->Fill2DTrack(track, weight,
"botEle_");