ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/OSUT3Analysis/AnaTools/plugins/OSUAnalysis.cc
(Generate patch)

Comparing UserCode/OSUT3Analysis/AnaTools/plugins/OSUAnalysis.cc (file contents):
Revision 1.31 by ahart, Mon Mar 18 10:21:44 2013 UTC vs.
Revision 1.32 by qpython, Tue Mar 19 18:05:23 2013 UTC

# Line 1856 | Line 1856 | OSUAnalysis::valueLookup (const BNtrack*
1856    else if(variable == "nHitsMissingOuter") value = object->nHitsMissingOuter;
1857    else if(variable == "nHitsMissingInner") value = object->nHitsMissingInner;
1858    else if(variable == "nHitsMissingMiddle") value = object->nHitsMissingMiddle;
1859 +  
1860 +
1861    //user defined variables
1862    else if(variable == "d0wrtBS") value = (object->vx-events->at(0).BSx)*object->py/object->pt - (object->vy-events->at(0).BSy)*object->px/object->pt;
1863    else if(variable == "dZwrtBS") value = object->dZ - events->at(0).BSz;
1864    else if(variable == "caloTotDeltaRp5") value =(object->caloHadDeltaRp5 + object->caloEMDeltaRp5);
1865    else if(variable == "caloTotDeltaRp5ByP") value =( (object->caloHadDeltaRp5 + object->caloEMDeltaRp5)/pMag);
1866 +
1867 +
1868 +
1869 +
1870 +
1871    else if(variable == "isIso") value = getTrkIsIso(object, tracks.product());
1872    else if(variable == "isMatchedDeadEcal") value = getTrkIsMatchedDeadEcal(object);
1873    else if(variable == "ptErrorByPt") value = (object->ptError/object->pt);
# Line 2279 | Line 2286 | OSUAnalysis::valueLookup (const BNmuon*
2286   else if(variable == "muon2timeAtIpInOut"){
2287      value = object2->timeAtIpInOut;
2288    }
2289 + else if(variable == "muon1correctedD0")
2290 +   {
2291 +     value = object1->correctedD0;
2292 +   }
2293 + else if(variable == "muon1correctedD0Vertex")
2294 +   {
2295 +     value = object1->correctedD0Vertex;
2296 +   }
2297    else{std::cout << "WARNING: invalid variable '" << variable << "'\n"; value = -999;}
2298  
2299    value = applyFunction(function, value);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines