ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitHzz4l/LeptonSelection/src/MuonSelection.cc
(Generate patch)

Comparing UserCode/MitHzz4l/LeptonSelection/src/MuonSelection.cc (file contents):
Revision 1.3 by anlevin, Wed Feb 29 10:10:18 2012 UTC vs.
Revision 1.26 by khahn, Tue Jun 5 15:00:20 2012 UTC

# Line 1 | Line 1
1   #include <math.h>
2   #include <iostream>
3  
4 #include "HiggsAnaDefs.hh"
5
4   #include "MuonSelection.h"
5   #include "ParseArgs.h"
6   #include "SelectionStatus.h"
7  
8 < SelectionStatus noPreSelection( ControlFlags &ctrl,  const mithep::TMuon * mu ) {
9 <        SelectionStatus status;
10 <        status.setStatus(SelectionStatus::PRESELECTION);
11 <        if(ctrl.debug) cout << "muon presel returning status : " << status.getStatus() << endl;
12 <        return status;
8 > #include "Track.h"
9 > #include "MuonTools.h"
10 > #include "MuonQuality.h"
11 > #include "MuonIDMVA.h"
12 >
13 > mithep::MuonIDMVA * muIDMVA;
14 > mithep::MuonTools muTools;
15 >
16 > extern vector<bool> PFnoPUflag;
17 > extern Float_t computePFMuonIso(const mithep::Muon *mu,
18 >                        const mithep::Vertex * vtx,
19 >                        const mithep::Array<mithep::PFCandidate> * pfCandidates,
20 >                        const Double_t dRMax);
21 >
22 > bool trackToPFMuonSelection( const mithep::Track *track, const mithep::MuonCol * muoncol )
23 > {
24 >        bool pass = false;
25 >  for(UInt_t i=0; i<muoncol->GetEntries(); ++i) {
26 >    const mithep::Muon *mu = muoncol->At(i);
27 >                if(mu->TrackerTrk() == track && (mu->IsGlobalMuon() || mu->IsTrackerMuon()) && mu->IsPFMuon())
28 >                        pass = true;
29 >        }              
30 >                
31 >        return pass;            
32 >                
33   }
34  
35 < SelectionStatus muonPreSelection( ControlFlags &ctrl,  const mithep::TMuon * mu ) {
36 <  if(ctrl.debug) cout << "inside muonpresel ... " << endl;
37 <  bool ret = isMuFO(mu);
38 <  if(ctrl.debug) cout << "iS fo? ... " << ret << endl;  
39 <  ret &= ( fabs(mu->ip3dSig) < 4 );
40 <  if(ctrl.debug) cout << "and pass IP (" << mu->ip3dSig << ") ? ... " << ret << endl;  
23 <  ret &= ( mu->pt > 5 );
24 <  if(ctrl.debug) cout << "and >5 GeV ? ... " << ret << endl;  
25 <  ret &= ( fabs(mu->eta) < 2.4 );
26 <  if(ctrl.debug) cout << "and < 2.4 eta ? ... " << ret << endl;  
27 <
35 > //--------------------------------------------------------------------------------------------------
36 > SelectionStatus muonDummyVeto(ControlFlags &ctrl,
37 >                              const mithep::Muon *muon,
38 >                              const mithep::Vertex * vtx)
39 > //--------------------------------------------------------------------------------------------------
40 > {
41    SelectionStatus status;
42 <  if( ret ) status.setStatus(SelectionStatus::PRESELECTION);
43 <  if(ctrl.debug) cout << "muon presel returning status : " << status.getStatus() << endl;  
44 <  return status;
32 < }
33 <
34 < bool isMuFO( const mithep::TMuon * mu ) {
35 <  bool isgood=true;
36 <  float reliso = mu->pfIso03/mu->pt;
37 <
38 <  if( mu->pt < 5  )         isgood=false;                          
39 <  if ( fabs(mu->dz) > 0.2 ) isgood=false;   // needed to remove cosmics in HF sample
40 <
41 <  //
42 <
43 <  // HF seems to not want tkquality, SS does
44 <  if( mu->pt>20 ) {
45 <    if ( !((mu->typeBits & kGlobal) && mu->nSeg>0  ) ) isgood=false; //&& mu->nValidHits>0
46 <  } else {
47 <    if ( !((mu->typeBits & kGlobal) && mu->nSeg>0 ) //&& //&& mu->nValidHits>0
48 <         && !( (mu->typeBits & kTracker) &&  (mu->qualityBits & kTMOneStationLoose)
49 <               )
50 <         )   isgood=false;
51 <  }
52 <
42 >  status.setStatus(SelectionStatus::PRESELECTION);
43 >  return status;  
44 > }
45  
46 + //--------------------------------------------------------------------------------------------------
47 + SelectionStatus muonCutBasedVeto(ControlFlags &ctrl,
48 +                                 const mithep::Muon *muon,
49 +                                 const mithep::Vertex *vtx)
50 + //--------------------------------------------------------------------------------------------------
51 + {
52    //
53 <  // for HF MC to agree w/ data, cannot put any Tk quality bits
54 <  // but to get to 5% closure in the SS test, we need at least Tk oneStationLoose
55 <
58 <  /*
59 < && ( (mu->qualityBits & kTMOneStationLoose) ||
60 <                                               (mu->qualityBits & kTMLastStationOptimizedBarrelLowPtLoose) ||
61 <                                               (mu->qualityBits & kTMLastStationOptimizedLowPtLoose)
62 <                                               )
63 <  */
64 <
65 <
66 <  // comment for more stats for mu fake shape
67 <  if( mu->pt < 20 ) {
68 <    if( reliso > 3 ) isgood=false;    
69 <  } else {
70 <    if( reliso > 5 ) isgood=false;    
71 <  }
72 <
73 <  return isgood;
74 < };
75 <
76 <
77 < SelectionStatus passSoftMuonSelection( ControlFlags &ctrl, const mithep::TMuon * mu ) {
78 <
79 <  int level=0;
80 <  unsigned failmask=0x0;
81 <  
82 <  if(mu->nTkHits < 11 )  
83 <    failmask |= (1<<level);
84 <  level++;
85 <
86 <  if(fabs(mu->d0) > 0.2)
87 <    failmask |= (1<<level);
88 <  level++;
89 <
90 <  if(fabs(mu->dz) > 0.1)
91 <    failmask |= (1<<level);
92 <  level++;
93 <
94 <  if(!(mu->typeBits & kTracker))
95 <    failmask |= (1<<level);
96 <  level++;
97 <
98 <  if(!(mu->qualityBits & kTMLastStationAngTight))
99 <    failmask |= (1<<level);      
100 <  level++;
101 <
102 <  Double_t iso = (mu->trkIso03 + mu->emIso03 + mu->hadIso03)/mu->pt;
103 <  if(mu->pt>20 && iso<0.1)
104 <    failmask |= (1<<level);
105 <
106 <  bool passtight  = !(failmask);
107 <  bool passloose  = !(failmask);
108 <  return SelectionStatus( passtight | passloose );
53 >  // Loose cut-based ID for isolation veto
54 >  //
55 >  bool ret = true;
56    
57 < }
58 <
59 <
113 < //unsigned passMuonSelectionZZ( const mithep::TMuon * mu ) {
114 < SelectionStatus passMuonSelectionZZ( ControlFlags &ctrl, const mithep::TMuon * mu ) {
115 <  int level=0;
116 <  unsigned failmask=0x0;
117 <
118 <  if(mu->pt < 5) {
119 <    failmask |= (1<<level);
120 <  }
121 <
122 <  level++;
123 <  if(fabs(mu->eta) > 2.4) {
124 <    failmask |= (1<<level);
125 <  }
126 <
127 <  level++;
128 <  if(!(mu->typeBits & kGlobal)) {
129 <    failmask |= (1<<level);
130 <  }
131 <
132 <  level++;
133 <  if(mu->nTkHits          < 10) {
134 <    failmask |= (1<<level);
135 <  }
136 <
57 >  if(!(muon->IsGlobalMuon() || muon->IsTrackerMuon())) ret = false;
58 >  if( muon->NValidHits() < 11 )                        ret = false;
59 >  if( fabs(muon->Ip3dPVSignificance()) >= 4 )          ret = false;
60  
138  level++;  
139  if( (mu->trkIso03/mu->pt) > 0.7 ) {
140    failmask |= (1<<level);
141  }
142
143  //  if(muon->nPixHits   < 1)     return false;
144  //  if(muon->muNchi2    > 10)    return false;
145  //  if(muon->nMatch     < 2)     return false;
146  //  if(muon->nValidHits         < 1)     return false;
147  //  if(muon->pterr/muon->pt > 0.1)   return false;
148  //  if(fabs(muon->dz)       > 0.1)   return false;  
149  
61    SelectionStatus status;
62 <  if( !failmask ) status.setStatus(SelectionStatus::LOOSEID);
152 <  if( !failmask ) status.setStatus(SelectionStatus::TIGHTID);
62 >  if( ret ) status.setStatus(SelectionStatus::PRESELECTION);
63    return status;
64 + }
65  
66  
67 + //--------------------------------------------------------------------------------------------------
68 + SelectionStatus noPreSelection( ControlFlags &ctrl,  const mithep::Muon * mu )
69  
70 < };
70 > //--------------------------------------------------------------------------------------------------
71 > {
72 >        SelectionStatus status;
73 >        status.setStatus(SelectionStatus::PRESELECTION);
74 >        if(ctrl.debug) cout << "muon presel returning status : " << status.getStatus() << endl;
75 >        return status;
76 > }
77  
78 + //--------------------------------------------------------------------------------------------------
79 + SelectionStatus muonPreSelection( ControlFlags &ctrl,  
80 +                                  const mithep::Muon * mu,
81 +                                  const mithep::Vertex * vtx,
82 +                                  const mithep::Array<mithep::PFCandidate> * pfCandidates )
83 + //--------------------------------------------------------------------------------------------------
84 + {
85 +  bool ret = true;
86 +
87 +  ret &= ( fabs(mu->Ip3dPVSignificance()) < 100 );
88 +  ret &= ( mu->Pt() >= 5 );
89 +  ret &= ( fabs(mu->Eta()) <= 2.4 );
90 +  ret &= ( mu->IsTrackerMuon() || mu->IsGlobalMuon() );
91 + //   if( mu->IsTrackerMuon() && mu->HasTrackerTrk() && !mu->IsGlobalMuon() )  
92 + //     ret &=  ( mu->Quality().QualityMask().Mask() & mithep::MuonQuality::AllArbitrated);
93 +  ret &= (  mu->IsoR03SumPt()/mu->Pt() < 0.7 );
94  
95 +  SelectionStatus status;
96 +  if( ret ) status.setStatus(SelectionStatus::PRESELECTION);
97 +  if(ctrl.debug) cout << "muon presel returning status : " << status.getStatus() << endl;  
98 +  return status;
99 + }
100  
101  
162 //
163 // Kevin's WW selection
164 //
165 SelectionStatus passMuonSelection( ControlFlags &ctrl, const mithep::TMuon * mu ) {
166  int level=0;
167  unsigned failmask=0x0;
102  
103 + //--------------------------------------------------------------------------------------------------
104 + SelectionStatus muonReferencePreSelection( ControlFlags &ctrl,  
105 +                                           const mithep::Muon * mu,
106 +                                           const mithep::Vertex * vtx,
107 +                                           const mithep::Array<mithep::PFCandidate> * pfCandidates )
108 + //--------------------------------------------------------------------------------------------------
109 + {
110 +  bool ret = true;
111  
112 <  // 0x1
113 <  if(mu->pt < 5) {
114 <    failmask |= (1<<level);
115 <  }
112 >  if(ctrl.debug) cout << "inside muonpresel ... " << endl;
113 >  ret &= ( fabs(mu->Ip3dPVSignificance()) < 100 );
114 >  if(ctrl.debug) cout << "and pass IP (" << mu->Ip3dPVSignificance() << ") ? ... " << ret << endl;  
115 >  ret &= ( mu->Pt() >= 5 );
116 >  if(ctrl.debug) cout << "and >5 GeV (" << mu->Pt() << ") ? ... " << ret << endl;  
117 >  ret &= ( fabs(mu->Eta()) <= 2.4 );
118 >  if(ctrl.debug) cout << "and < 2.4 eta (" << mu->Eta() << ")? ... " << ret << endl;  
119 >  ret &= ( mu->IsTrackerMuon() || mu->IsGlobalMuon() );
120 >  if(ctrl.debug) cout << "is Tracker or Global? ... " << ret << endl;
121 >  ret &= (mu->HasTrackerTrk() &&
122 >          fabs(mu->TrackerTrk()->D0Corrected(*vtx)) < 0.5 &&
123 >          fabs(mu->TrackerTrk()->DzCorrected(*vtx)) < 1.0);
124 >  if(ctrl.debug) cout << "d0 and dz? ... " << ret << endl;  
125 >          
126 >  //  if( mu->IsTrackerMuon() && mu->HasTrackerTrk() && !mu->IsGlobalMuon() )  
127 >  //    ret &=  ( mu->Quality().QualityMask().Mask() & mithep::MuonQuality::AllArbitrated);
128 >  //  if(ctrl.debug) cout << "if isTrackerMuon, arbitrated ? ... " << ret << endl;  
129 >  //  ret &= ( mu->BestTrk()->DzCorrected(vtx) < 0.1);  
130 >  //  if( ctrl.debug ) cout << "elepresel : ret after dZcorr : " << ret <<  endl;
131  
175  // 0x2
176  level++;
177  if(fabs(mu->eta) > 2.4) {
178    failmask |= (1<<level);
179  }
132  
133 <  // 0x4
134 <  level++;
135 <  if(mu->ptErr/mu->pt > 0.1)   {
136 <    failmask |= (1<<level);
137 <  }
133 >  SelectionStatus status;
134 >  if( ret ) status.setStatus(SelectionStatus::PRESELECTION);
135 >  if(ctrl.debug) cout << "muon presel returning status : " << status.getStatus() << endl;  
136 >  return status;
137 > }
138  
139 <  // 0x8
140 <  level++;
141 <  if( fabs(mu->dz) > 0.1 )   {
142 <    failmask |= (1<<level);
143 <  }
139 > //--------------------------------------------------------------------------------------------------
140 > SelectionStatus muonPreSelectionNoD0DzIP( ControlFlags &ctrl,  
141 >                                          const mithep::Muon * mu,
142 >                                          const mithep::Vertex * vtx,
143 >                                          const mithep::Array<mithep::PFCandidate> * pfCandidates )
144 > //--------------------------------------------------------------------------------------------------
145 > {
146 >  bool ret = true;
147  
148 +  if(ctrl.debug) cout << "inside muonpresel ... " << endl;
149 +  ret &= ( mu->Pt() >= 5 );
150 +  if(ctrl.debug) cout << "and >5 GeV (" << mu->Pt() << ") ? ... " << ret << endl;  
151 +  ret &= ( fabs(mu->Eta()) <= 2.4 );
152 +  if(ctrl.debug) cout << "and < 2.4 eta (" << mu->Eta() << ")? ... " << ret << endl;  
153 +  ret &= ( mu->IsTrackerMuon() || mu->IsGlobalMuon() );
154 +  if(ctrl.debug) cout << "is Tracker or Global? ... " << ret << endl;
155 +          
156 +  //  if( mu->IsTrackerMuon() && mu->HasTrackerTrk() && !mu->IsGlobalMuon() )  
157 +  //    ret &=  ( mu->Quality().QualityMask().Mask() & mithep::MuonQuality::AllArbitrated);
158 +  //  if(ctrl.debug) cout << "if isTrackerMuon, arbitrated ? ... " << ret << endl;  
159 +  //  ret &= ( mu->BestTrk()->DzCorrected(vtx) < 0.1);  
160 +  //  if( ctrl.debug ) cout << "elepresel : ret after dZcorr : " << ret <<  endl;
161  
194  Bool_t isGlobal  = (mu->typeBits & kGlobal) && (mu->muNchi2 < 10) && (mu->nMatch > 1) && (mu->nValidHits > 0);
195  Bool_t isTracker = (mu->typeBits & kTracker) && (mu->qualityBits & kTMLastStationTight);
162  
163 <  // 0x10
164 <  level++;
165 <  if(!isGlobal && !isTracker) {
166 <    failmask |= (1<<level);
167 <  }
163 >  SelectionStatus status;
164 >  if( ret ) status.setStatus(SelectionStatus::PRESELECTION);
165 >  if(ctrl.debug) cout << "muon presel returning status : " << status.getStatus() << endl;  
166 >  return status;
167 > }
168  
203  // 0x20
204  level++;
205  if( mu->nTkHits < 10 ) {
206    failmask |= (1<<level);
207  }
169  
209  level++;
210  if(mu->nPixHits         < 1) {
211    failmask |= (1<<level);
212  }
170  
171  
172 <  level++;
173 <  if(fabs(mu->d0)>0.02)   {
174 <    failmask |= (1<<level);
175 <  }
172 > //--------------------------------------------------------------------------------------------------
173 > SelectionStatus muonIDMVASelection(ControlFlags &ctrl,
174 >                                 const mithep::Muon *mu,
175 >                                 const mithep::Vertex * vtx   )
176 > //--------------------------------------------------------------------------------------------------
177 > {
178 >  double global_rchi2 = (mu->IsGlobalMuon()) ? mu->GlobalTrk()->RChi2() : 0.;
179  
180 +  //
181 +  // WARNING !!! KH hacked out to sync
182 +  //
183    /*
184 <  if(mu->pt>20) {
185 <    if(fabs(mu->d0)>0.02)   {
186 <      failmask |= (1<<level);
187 <    }
188 <  } else {
189 <    if(fabs(mu->d0)>0.01)  {
190 <    failmask |= (1<<level);
191 <    }
192 <  }
184 >  double mvaval = muIDMVA->MVAValue_ID(mu->Pt(),
185 >                                    mu->Eta(),
186 >                                    mu->IsGlobalMuon(),
187 >                                    mu->IsTrackerMuon(),
188 >                                    mu->TrackerTrk()->RChi2(),
189 >                                    global_rchi2,
190 >                                    (Double_t)(mu->NValidHits()),
191 >                                    (Double_t)(mu->TrackerTrk()->NHits()),
192 >                                    (Double_t)(mu->TrackerTrk()->NPixelHits()),
193 >                                    (Double_t)(mu->NMatches()),
194 >                                    mu->TrkKink(),
195 >                                    muTools.GetSegmentCompatability(mu),
196 >                                    muTools.GetCaloCompatability(mu,true,true),
197 >                                    mu->HadEnergy(),
198 >                                    mu->EmEnergy(),
199 >                                    mu->HadS9Energy(),
200 >                                    mu->EmS9Energy(),
201 >                                    (Bool_t)(ctrl.debug) );
202    */
203 +  double mvaval = 0.0;
204  
205    SelectionStatus status;
206 <  if( !failmask ) status.setStatus(SelectionStatus::LOOSEID);
207 <  if( !failmask ) status.setStatus(SelectionStatus::TIGHTID);
208 <  return status;
209 <
210 <
211 < };
212 <
213 < SelectionStatus passMuonSelectionBackDoor( ControlFlags &ctrl, const mithep::TMuon * mu ) {
214 <  int level=0;
215 <  unsigned failmask=0x0;
216 <
217 <  if(mu->pt < 5) {
218 <    failmask |= (1<<level);
206 >  bool pass = false;
207 >  
208 >  if( mu->IsGlobalMuon() && mu->IsTrackerMuon()
209 >      && fabs(mu->Eta()) <= 1.5 && mu->Pt() <= 10 && mvaval >= MUON_IDMVA_CUT_BIN0)  pass = true;
210 >  else if( mu->IsGlobalMuon() && mu->IsTrackerMuon()
211 >           && fabs(mu->Eta()) <= 1.5 && mu->Pt() > 10 && mvaval >= MUON_IDMVA_CUT_BIN1)  pass = true;
212 >  else if( mu->IsGlobalMuon() && mu->IsTrackerMuon()
213 >           && fabs(mu->Eta()) > 1.5 && mu->Pt() <= 10 && mvaval >= MUON_IDMVA_CUT_BIN2)  pass = true;
214 >  else if( mu->IsGlobalMuon() && mu->IsTrackerMuon()
215 >           && fabs(mu->Eta()) > 1.5 && mu->Pt() > 10 && mvaval >= MUON_IDMVA_CUT_BIN3)  pass = true;
216 >  else if( !(mu->IsGlobalMuon()) && mu->IsTrackerMuon() && mvaval >= MUON_IDMVA_CUT_BIN4 )  pass = true;
217 >  else if( mu->IsGlobalMuon() && !(mu->IsTrackerMuon()) && mvaval >= MUON_IDMVA_CUT_BIN5 )  pass = true;
218 >  
219 >
220 >
221 >  if( pass ) {
222 >    status.orStatus(SelectionStatus::LOOSEID);
223 >    status.orStatus(SelectionStatus::TIGHTID);
224    }
225  
226 <  level++;
227 <  if(fabs(mu->eta) > 2.5) {
250 <    failmask |= (1<<level);
251 <  }
226 >  return status;
227 > }
228  
229 <  level++;
230 <  if(!(mu->typeBits & kGlobal) || !(mu->typeBits & kTracker)) {
231 <    failmask |= (1<<level);
232 <  }
229 > //--------------------------------------------------------------------------------------------------
230 > void initMuonIDMVA()
231 > //--------------------------------------------------------------------------------------------------
232 > {
233 >  muIDMVA = new mithep::MuonIDMVA();
234 >  vector<string> weightFiles;
235 >  weightFiles.push_back("./data/MuonIDMVAWeights/MuonIDMVA_BDTG_barrel_lowpt_V2.weights.xml");
236 >  weightFiles.push_back("./data/MuonIDMVAWeights/MuonIDMVA_BDTG_barrel_highpt_V2.weights.xml");
237 >  weightFiles.push_back("./data/MuonIDMVAWeights/MuonIDMVA_BDTG_endcap_lowpt_V2.weights.xml");
238 >  weightFiles.push_back("./data/MuonIDMVAWeights/MuonIDMVA_BDTG_endcap_highpt_V2.weights.xml");
239 >  weightFiles.push_back("./data/MuonIDMVAWeights/MuonIDMVA_BDTG_tracker_V2.weights.xml");
240 >  weightFiles.push_back("./data/MuonIDMVAWeights/MuonIDMVA_BDTG_global_V2.weights.xml");
241 >  muIDMVA->Initialize( "MuonIDMVA",
242 >                       mithep::MuonIDMVA::kIDV0,
243 >                       kTRUE, weightFiles);
244 > }
245  
246 <  level++;
247 <  if(mu->nTkHits          <= 10) {
248 <    failmask |= (1<<level);
246 > //--------------------------------------------------------------------------------------------------
247 > SelectionStatus muonIDPFSelection(ControlFlags &ctrl,
248 >                                  const mithep::Muon *mu,
249 >                                  const mithep::Vertex * vtx,
250 >                                  const mithep::Array<mithep::PFCandidate> * pfCandidates )
251 > //--------------------------------------------------------------------------------------------------
252 > {
253 >  bool pass = false;
254 >  SelectionStatus status; // init'ed to FAIL
255 >
256 >  // check that it matches to a PF muon
257 >  for( int i=0; i<pfCandidates->GetEntries(); i++ ) {
258 >    // tmp
259 >    if( !(PFnoPUflag[i]) ) continue; // my PF no PU hack
260 >
261 >    const mithep::PFCandidate *pf = (mithep::PFCandidate*)((*pfCandidates)[i]);
262 >    if( (pf->TrackerTrk() == mu->TrackerTrk()) && abs(pf->PFType()) == mithep::PFCandidate::eMuon ) {
263 >      pass = true;
264 >      break;
265 >    }
266    }
267 + //      
268 + //      if(mu->IsPFMuon()) pass = true;
269 + //      else pass = false;
270  
271 <        level++;
272 <        if(mu->ip3dSig > 4) {
273 <                failmask |= (1<<level);
274 <        }
275 <        
276 <        level++;
277 <  if(mu->muNchi2          >= 10)  {
278 <                failmask |= (1<<level);
279 <        }
280 <                
281 <        level++;
282 <  if(mu->nValidHits       < 1)   {
283 <                failmask |= (1<<level);
284 <        }
277 <        
278 <        level++;
279 <  if(mu->nMatch   < 2)   {
280 <                failmask |= (1<<level);
281 <        }
282 <  
283 <  SelectionStatus status;
284 <        
285 <  if( !failmask ) status.setStatus(SelectionStatus::LOOSEID);
286 <  if( !failmask ) status.setStatus(SelectionStatus::TIGHTID);
287 <        
288 <        return status;
271 >  //
272 >  // NB : ipsig here for reference synch ...
273 >  //
274 > #ifdef SYNC
275 >  if( pass && fabs(mu->Ip3dPVSignificance()) < 4 ) {
276 >    status.orStatus(SelectionStatus::LOOSEID);
277 >    status.orStatus(SelectionStatus::TIGHTID);
278 >  }
279 > #else
280 >  if( pass ) {
281 >    status.orStatus(SelectionStatus::LOOSEID);
282 >    status.orStatus(SelectionStatus::TIGHTID);
283 >  }
284 > #endif
285  
286 < };
286 >  return status;
287 > }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines