00001 #include "Alignment/MuonAlignmentAlgorithms/interface/DTMuonLocalAlignment.h" 00002 00003 00004 00005 00006 00007 DTMuonLocalAlignment::DTMuonLocalAlignment(){} 00008 DTMuonLocalAlignment::~DTMuonLocalAlignment(){} 00009 00010 00011 void DTMuonLocalAlignment::initNTuples(int nMtxSection) { 00012 00013 tali = new TChain("InfoTuple"); 00014 00015 int iFile = 0; 00016 if (nMtxSection>0) iFile = (nMtxSection - 1)*numberOfRootFiles; 00017 00018 for(int n_file = iFile; n_file < iFile+numberOfRootFiles; ++n_file) { 00019 00020 char theNameOfTheFile[150]; 00021 sprintf(theNameOfTheFile, "%sMyNtupleResidual_Craft09_%d.root", ntuplePath.c_str(), n_file); 00022 tali->Add(theNameOfTheFile); 00023 00024 } 00025 00026 setBranchAddressTree(); 00027 00028 } 00029 00030 00031 00032 00033 void DTMuonLocalAlignment::setBranchAddressTree() { 00034 00035 tali->SetBranchAddress("p", &p); 00036 tali->SetBranchAddress("pt", &pt); 00037 tali->SetBranchAddress("eta", &eta); 00038 tali->SetBranchAddress("phi", &phi); 00039 tali->SetBranchAddress("charge", &charge); 00040 tali->SetBranchAddress("nseg", &nseg); 00041 tali->SetBranchAddress("nphihits", nphihits); 00042 tali->SetBranchAddress("nthetahits", nthetahits); 00043 tali->SetBranchAddress("nhits", nhits); 00044 tali->SetBranchAddress("xSl", xSl); 00045 tali->SetBranchAddress("dxdzSl", dxdzSl); 00046 tali->SetBranchAddress("exSl", exSl); 00047 tali->SetBranchAddress("edxdzSl", edxdzSl); 00048 tali->SetBranchAddress("exdxdzSl", edxdzSl); 00049 tali->SetBranchAddress("ySl", ySl); 00050 tali->SetBranchAddress("dydzSl", dydzSl); 00051 tali->SetBranchAddress("eySl", eySl); 00052 tali->SetBranchAddress("edydzSl", edydzSl); 00053 tali->SetBranchAddress("eydydzSl", eydydzSl); 00054 tali->SetBranchAddress("xSlSL1", xSlSL1); 00055 tali->SetBranchAddress("dxdzSlSL1", dxdzSlSL1); 00056 tali->SetBranchAddress("exSlSL1", exSlSL1); 00057 tali->SetBranchAddress("edxdzSlSL1", edxdzSlSL1); 00058 tali->SetBranchAddress("xSL1SL3", xSL1SL3); 00059 tali->SetBranchAddress("xSlSL3", xSlSL3); 00060 tali->SetBranchAddress("dxdzSlSL3", dxdzSlSL3); 00061 tali->SetBranchAddress("exSlSL3", exSlSL3); 00062 tali->SetBranchAddress("edxdzSlSL3", edxdzSlSL3); 00063 tali->SetBranchAddress("xSL3SL1", xSL3SL1); 00064 tali->SetBranchAddress("xc", xc); 00065 tali->SetBranchAddress("yc", yc); 00066 tali->SetBranchAddress("zc", zc); 00067 tali->SetBranchAddress("ex", ex); 00068 tali->SetBranchAddress("xcp", xcp); 00069 tali->SetBranchAddress("ycp", ycp); 00070 tali->SetBranchAddress("excp", excp); 00071 tali->SetBranchAddress("eycp", eycp); 00072 tali->SetBranchAddress("wh", wh); 00073 tali->SetBranchAddress("st", st); 00074 tali->SetBranchAddress("sr", sr); 00075 tali->SetBranchAddress("sl", sl); 00076 tali->SetBranchAddress("la", la); 00077 00078 } 00079