--- UserCode/IPHCalignment2/analysis/TreeProducer.cpp 2011/11/25 16:33:01 1.1 +++ UserCode/IPHCalignment2/analysis/TreeProducer.cpp 2011/12/07 18:31:52 1.4 @@ -87,6 +87,32 @@ void TreeProducer::Init(TTree *tree) fChain->SetBranchAddress("Track_nHitPixel", Track_nHitPixel, &b_Track_nHitPixel); fChain->SetBranchAddress("Track_hitIndexBegin", Track_hitIndexBegin, &b_Track_hitIndexBegin); fChain->SetBranchAddress("Track_hitIndexEnd", Track_hitIndexEnd, &b_Track_hitIndexEnd); + + fChain->SetBranchAddress("d0_Center", &d0_Center, &b_d0_Center); + fChain->SetBranchAddress("d0_BS", &d0_BS, &b_d0_BS); + fChain->SetBranchAddress("d0_PV", &d0_PV, &b_d0_PV); + + //Alessio Plots + fChain->SetBranchAddress("QoverPGen", QoverPGen, &b_QoverPGen ); + fChain->SetBranchAddress("lambdaGen", lambdaGen, &b_lambdaGen ); + fChain->SetBranchAddress("dxyGen", dxyGen, &b_dxyGen ); + fChain->SetBranchAddress("dszGen", dszGen, &b_dszGen ); + fChain->SetBranchAddress("dxy0Gen", dxy0Gen, &b_dxy0Gen ); + fChain->SetBranchAddress("dsz0Gen", dsz0Gen, &b_dsz0Gen ); + + fChain->SetBranchAddress("QoverP", QoverP, &b_QoverP ); + fChain->SetBranchAddress("lambda", lambda, &b_lambda ); + fChain->SetBranchAddress("dxy", dxy, &b_dxy + fChain->SetBranchAddress("dsz", dsz, &b_dsz ); + fChain->SetBranchAddress("dxy0", dxy0, &b_dxy0 ); + fChain->SetBranchAddress("dsz0", dsz0, &b_dsz0 ); + //------------- + + + fChain->SetBranchAddress("BS_X", &BS_X, &b_BS_X); + fChain->SetBranchAddress("BS_Y", &BS_Y, &b_BS_Y); + fChain->SetBranchAddress("BS_Z", &BS_Z, &b_BS_Z); + fChain->SetBranchAddress("TrackGen_p", TrackGen_p, &b_TrackGen_p); fChain->SetBranchAddress("TrackGen_pt", TrackGen_pt, &b_TrackGen_pt); fChain->SetBranchAddress("TrackGen_px", TrackGen_px, &b_TrackGen_px); @@ -123,6 +149,9 @@ void TreeProducer::Init(TTree *tree) fChain->SetBranchAddress("expectedZGlobalPositionError", &expectedZGlobalPositionError, &b_expectedZGlobalPositionError); fChain->SetBranchAddress("RunNumber", &RunNumber, &b_RunNumber); fChain->SetBranchAddress("EventNumber", &EventNumber, &b_EventNumber); + fChain->SetBranchAddress("vxtConverged", &vtxConverged, &b_vtxConverged); + fChain->SetBranchAddress("momConverged", &momConverged, &b_momConverged); + fChain->SetBranchAddress("fullConverged", &fullConverged, &b_fullConverged); Notify(); }