本文整理匯總了C++中AddEntry函數的典型用法代碼示例。如果您正苦於以下問題:C++ AddEntry函數的具體用法?C++ AddEntry怎麽用?C++ AddEntry使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了AddEntry函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C++代碼示例。
示例1: TLegend
entry->SetLineWidth(2);
entry->SetMarkerColor(1);
entry->SetMarkerStyle(21);
entry->SetMarkerSize(1);
entry->SetTextFont(42);
leg->Draw();
leg = new TLegend(0.19,0.2,0.42,0.29,NULL,"brNDC");
leg->SetBorderSize(0);
leg->SetTextSize(0.031);
leg->SetLineColor(1);
leg->SetLineStyle(1);
leg->SetLineWidth(1);
leg->SetFillColor(0);
leg->SetFillStyle(1001);
entry=leg->AddEntry("graphobs_lvjwzh13","lvqq","LP");
ci = TColor::GetColor("#053061");
entry->SetLineColor(ci);
entry->SetLineStyle(1);
entry->SetLineWidth(1);
ci = TColor::GetColor("#053061");
entry->SetMarkerColor(ci);
entry->SetMarkerStyle(26);
entry->SetMarkerSize(0.9);
entry->SetTextFont(42);
entry=leg->AddEntry("graphobs_lvjwh13","lvbb","LP");
ci = TColor::GetColor("#2166ac");
entry->SetLineColor(ci);
示例2: TLegend
hframe__6->GetZaxis()->SetLabelFont(42);
hframe__6->GetZaxis()->SetLabelOffset(0.007);
hframe__6->GetZaxis()->SetLabelSize(0.05);
hframe__6->GetZaxis()->SetTitleSize(0.06);
hframe__6->GetZaxis()->SetTitleFont(42);
hframe__6->Draw("sameaxig");
leg = new TLegend(0.3555276,0.6643357,0.8404523,0.8653846,NULL,"brNDC");
leg->SetBorderSize(1);
leg->SetTextSize(0.031);
leg->SetLineColor(1);
leg->SetLineStyle(1);
leg->SetLineWidth(2);
leg->SetFillColor(19);
leg->SetFillStyle(0);
entry=leg->AddEntry("Graph1","Asympt. CL_{S} Expected #pm 1#sigma","LF");
ci = TColor::GetColor("#00ff00");
entry->SetFillColor(ci);
entry->SetFillStyle(1001);
entry->SetLineColor(1);
entry->SetLineStyle(2);
entry->SetLineWidth(3);
entry->SetMarkerColor(1);
entry->SetMarkerStyle(21);
entry->SetMarkerSize(1);
entry->SetTextFont(42);
entry=leg->AddEntry("Graph0","Asympt. CL_{S} Expected #pm 2#sigma","LF");
ci = TColor::GetColor("#ffff00");
entry->SetFillColor(ci);
示例3: AddEntry
void EditTOC::AddEntryAbove()
{
AddEntry(true);
}
示例4: AddEntry
void HelpSystem::SetupCompareMap()
{
AddEntry(m_Deltaview, HIDC_DOCUMENT_SELECTOR ,Selecting_Documents_to_Compare);
//AddEntry(m_Deltaview, HIDC_PROGRAM_PREFERENCES ,Configuring_User_Preferences);
//AddEntry(m_Deltaview, HIDC_DOCUMENT_OPTIONS ,Redline_Options_Rendering_Sets);
//AddEntry(m_Deltaview, HIDC_INSERTED_TEXT_FORMAT ,Inserted_Text_Format);
//AddEntry(m_Deltaview, HIDC_DELETED_TEXT_FORMAT ,Deleted_Text_Format);
//AddEntry(m_Deltaview, HIDC_MOVED_TEXT_FORMAT ,Moved_Text_Format);
//AddEntry(m_Deltaview, HIDC_STYLECHANGE_FORMAT ,Style_Change_Format);
//AddEntry(m_Deltaview, HIDC_SAVE_OPTIONS_SET ,Customizing_Rendering_Sets);
AddEntry(m_Deltaview, HIDC_COMMAND_LINE_OPTIONS ,command_line_options); //ib
AddEntry(m_Deltaview, HIDC_INVALID_OPTIONS_FILE ,D2H_RenderingSets);//ib
AddEntry(m_Deltaview, HIDC_FAILED_TO_OPEN_DOCUMENT ,D2H_DocumentComparison);//ib
AddEntry(m_Deltaview, HIDC_FAILED_TO_COMPARE ,D2H_DocumentComparison);//ib
//AddEntry(m_Deltaview, HIDC_FORMAT_CHANGE_TEXT_FORMAT ,Font_Change_Format);
AddEntry(m_Deltaview, HIDC_EXPIRED_COPY ,D2H_Registrationandevaluation);//ib
AddEntry(m_Deltaview, HIDC_FEATURE_DISBLED ,D2H_DocumentComparison);//ib
AddEntry(m_Deltaview, HIDC_FILE_DOESNT_EXIST ,D2H_DocumentSelectionSourceisnotavailable);//ib
AddEntry(m_Deltaview, HIDC_GOTO_CHANGE ,Navigating_Changes);
//AddEntry(m_Deltaview, HIDC_TABLES_FORMAT ,Table_Cell_Format);
//AddEntry(m_Deltaview, HIDC_SUCCESS_SEND_FILE_DV ,D2H_Sendingaredlinedocumentviaemail);//ib
//AddEntry(m_Deltaview, HIDC_SUCCESS_SEND_FILE ,D2H_Sendingaredlinedocumentviaemail);//ib
AddEntry(m_Deltaview, HIDC_NO_FILE_NAME ,D2H_DocumentSelectionSourceisnotavailable);//ib
AddEntry(m_Deltaview, HIDC_CREATE_DIR_FAILED ,D2H_Localtemporarydirectory);//ib
//AddEntry(m_Deltaview, HIDC_CHANGE_NUMBERING_FORMAT ,Change_Numbering_Format);
AddEntry(m_Deltaview, HIDC_CHANGE_NOT_FOUND ,D2H_GoTodialogbox );//ib
AddEntry(m_Deltaview, HIDC_DMS_OPEN_FAILED ,D2H_DocumentSelectionSourceisnotavailable);//ib
AddEntry(m_Deltaview, HIDC_REDLINE_DOC_MODIFIED ,Editing_Redline_Documents);
AddEntry(m_Deltaview, HIDC_MAIL_DOCUMENTS ,emailing_comparison);
//AddEntry(m_Deltaview, HIDC_PRINT_SOURCE_FAILED ,D2H_Printingtheredlinedocument);//ib
AddEntry(m_Deltaview, HIDC_LOAD_DOC_FAILED ,D2H_DocumentComparison);//ib
//AddEntry(m_Deltaview, HIDC_RENDERING_MANAGEMENT ,Customizing_Rendering_Sets);
//AddEntry(m_Deltaview, HIDC_CONFIG_SAVED ,Saving_Configuration_Files);
//AddEntry(m_Deltaview, HIDC_AUTOOPTIONS ,DV_Config_Manager);
//AddEntry(m_Deltaview, HIDC_UNABLE_TO_SAVE_OPTION_SET ,rights_rend_sets);
//AddEntry(m_Deltaview, HIDC_UNABLE_TO_DELETE_OPTION_SET ,rights_rend_sets);
AddEntry(m_Deltaview, HIDC_COPY_DOC_FAILED ,D2H_DocumentComparison );//ib
AddEntry(m_Deltaview, HIDC_CONVERSION_EXCEPTION ,D2H_DocumentComparison );//ib
AddEntry(m_Deltaview, HIDC_COMPARE_SAME_DOCUMENTS ,D2H_SelectingdocumentsfromwithinDeltaView);//ib
//AddEntry(m_Deltaview, HIDC_SAVE_CONFIG_SECTION ,DV_Config_Manager);
//AddEntry(m_Deltaview, HIDC_SELECT_ONE_SECTION ,Saving_Configuration_Files);
AddEntry(m_Deltaview, HIDC_DELTAFILE_OLD_VERSION ,D2H_VersionsofDeltaView);//ib
AddEntry(m_Deltaview, HIDC_DELTAFILE_NEW_VERSION ,D2H_VersionsofDeltaView);//ib
AddEntry(m_Deltaview, HIDC_REDLINE_LOCKED ,unable_to_perform_a_comparison );
AddEntry(m_Deltaview, HIDC_VERIFY_FAILED ,failed_to_get_license);
AddEntry(m_Deltaview, HIDC_KEYBOARD_SHORTCUTS ,Keyboard_Shortcuts);
//AddEntry(m_Deltaview, HIDC_DOCUMENT_MANAGEMENT_SETUP ,Document_Management_DeltaView_);
//AddEntry(m_Deltaview, HIDC_EMAIL_SETUP ,DV_Config_Email_Settings);
//AddEntry(m_Deltaview, HIDC_REGISTRATION_SETUP ,DeltaView_Registration);
//AddEntry(m_Deltaview, HIDC_ADMINISTRATION_SETUP ,DeltaView_Administration);
//AddEntry(m_Deltaview, HIDC_USER_PREFERENCES_SETUP ,DV_Config_User_Prefs);
//AddEntry(m_Deltaview, HIDC_ASK_CANCEL_COMPARISON ,D2H_TheProgressdialogbox);//ib
AddEntry(m_Deltaview, HIDC_SHOW_COMPARISON ,D2H_TheProgressdialogbox);//ib
//AddEntry(m_Deltaview, HIDC_SELECT_FROM_LOCAL_SYSTEM ,D2H_Opening_SavingadocumentfromalocalharddriveifDeltaViewisintegratedwithadocumentmanagementsystem );//ib
AddEntry(m_Deltaview, HIDC_SAVING_DOCUMENTS ,D2H_Savingdocuments);//ib
//AddEntry(m_Deltaview, HIDC_PASSWORD_PROTECT_CONFIG ,password_protect_config);
//AddEntry(m_Deltaview, HIDC_LICENCING ,License_Workshare);
//AddEntry(m_Deltaview, HIDC_LICENCE_RELEASE ,release_license_compare);
//AddEntry(m_Deltaview, HIDC_DVOUT_INVALID_ATTACHMENT_FORMAT ,D2H_DVOutExt_Invalid_Attachment_Format);//ib
//AddEntry(m_Deltaview, HIDC_COMPARISON_OPTIONS ,Comparison_Options); // TODO: Is this still correct?
//AddEntry(m_Deltaview, HIDC_READABILITY_OPTIONS ,Readability_Options);
//AddEntry(m_Deltaview, HIDC_SECURITY ,DeltaView_Security);
AddEntry(m_Deltaview, HIDC_DV_MINI_PANE ,DV_Mini_Pane);
AddEntry(m_Deltaview, HIDC_PRODUCT_NOT_ENABLED ,Product_Not_Enabled);
AddEntry(m_Deltaview, HIDC_ACCESS_DENIED_SAVING_AS_OTHER_FORMAT, D2H_AccessDeniedSavingDocAsOtherFormat);
AddEntry(m_Deltaview, HIDC_FILE_NOT_VALID_DV_FORMAT ,invalid_deltafile_format);
//AddEntry(m_Deltaview, HIDC_DELTAFILE_NEW_VERSION ,later_version);
AddEntry(m_Deltaview, HIDC_LOAD_REDLINE_FAILURE ,failed_to_load_redline);
AddEntry(m_Deltaview, HIDC_DV_HAD_TO_AUTO_RETRY ,auto_retry_mode);
//AddEntry(m_Deltaview, HIDC_EXEC_CONVERT_TO_PDF ,Excel_Convert_to_PDF);
//AddEntry(m_Deltaview, HIDC_SEND_FOR_REVIEW_FORMAT ,Word_Send_For_Review);
//AddEntry(m_Deltaview, HIDC_NO_FILE_SEND_FOR_REVIEW ,No_File_Send_For_Review);
//AddEntry(m_Deltaview, HIDC_ACT_ON_CHANGES_ERROR ,Act_On_Changes_Error);
//AddEntry(m_Deltaview, HIDC_ACT_ON_CHANGES_FAILURE ,Act_On_Changes_Failure);
//AddEntry(m_Deltaview, HIDC_OCR ,OCR_configuration_manager);
//AddEntry(m_Deltaview, HIDC_INCORRECT_PASSWORD ,password_protect_config);
}
示例5: TLegend
Graph_Graph2->GetZaxis()->SetLabelSize(0.05);
Graph_Graph2->GetZaxis()->SetTitleSize(0.05);
Graph_Graph2->GetZaxis()->SetTitleFont(42);
grae->SetHistogram(Graph_Graph2);
grae->Draw("pe");
leg = new TLegend(0.1744966,0.1818182,0.4630872,0.451049,NULL,"brNDC");
leg->SetBorderSize(0);
leg->SetTextSize(0.03496503);
leg->SetLineColor(1);
leg->SetLineStyle(1);
leg->SetLineWidth(1);
leg->SetFillColor(0);
leg->SetFillStyle(1001);
entry=leg->AddEntry("Graph","0-5%","pe");
entry->SetLineColor(1);
entry->SetLineStyle(1);
entry->SetLineWidth(2);
ci = TColor::GetColor("#ff0000");
entry->SetMarkerColor(ci);
entry->SetMarkerStyle(20);
entry->SetMarkerSize(1.2);
entry->SetTextFont(42);
entry=leg->AddEntry("Graph","5-10%","pe");
entry->SetLineColor(1);
entry->SetLineStyle(1);
entry->SetLineWidth(2);
ci = TColor::GetColor("#0000ff");
示例6: ASSERT
ALERROR CDataFile::WriteVersion (int iEntry, const CString &sData, DWORD *retdwVersion)
// WriteVersion
//
// Writes out a new version of the entry
{
ALERROR error;
ASSERT(IsOpen());
ASSERT(!m_fReadOnly);
// Make sure we're in bounds
if (iEntry < 0 || iEntry >= m_iEntryTableCount)
return ERR_FAIL;
if (m_pEntryTable[iEntry].dwBlock == FREE_ENTRY)
return ERR_FAIL;
// Add a new entry
int iNewEntry;
if (error = AddEntry(sData, &iNewEntry))
return error;
// NOTE: We have to set this pointer AFTER we add the entry because
// AddEntry might move the array.
ENTRYSTRUCT *pEntry = &m_pEntryTable[iEntry];
// Swap so that the original entry has the new saved block
// and the new entry has the old one
ENTRYSTRUCT *pNewEntry = &m_pEntryTable[iNewEntry];
Swap(pEntry->dwBlock, pNewEntry->dwBlock);
Swap(pEntry->dwBlockCount, pNewEntry->dwBlockCount);
Swap(pEntry->dwSize, pNewEntry->dwSize);
pNewEntry->dwVersion = pEntry->dwVersion;
pNewEntry->dwPrevEntry = pEntry->dwPrevEntry;
pNewEntry->dwFlags = pEntry->dwFlags;
// The latest version points back to the previous
pEntry->dwVersion = pNewEntry->dwVersion + 1;
pEntry->dwPrevEntry = (DWORD)iNewEntry;
// The old version points to the latest
pNewEntry->dwLatestEntry = (DWORD)iEntry;
// Done
m_fEntryTableModified = TRUE;
// Flush
if (error = Flush())
return error;
return NOERROR;
}
示例7: TLegend
entry->SetLineWidth(2);
entry->SetMarkerColor(1);
entry->SetMarkerStyle(21);
entry->SetMarkerSize(1);
entry->SetTextFont(42);
leg->Draw();
leg = new TLegend(0.4566667,0.82,0.7822222,0.9066667,NULL,"brNDC");
leg->SetBorderSize(0);
leg->SetTextSize(0.02777778);
leg->SetLineColor(1);
leg->SetLineStyle(1);
leg->SetLineWidth(1);
leg->SetFillColor(0);
leg->SetFillStyle(0);
entry=leg->AddEntry("NULL","#splitline{pp #rightarrow h #rightarrow 2n_{1} #rightarrow 2n_{D} + 2 #gamma_{D} #rightarrow 2n_{D} + 4#mu}{#splitline{m_{h} = 125 GeV, m_{n_{1}} = 10 GeV, m_{n_{D}} = 1 GeV}{m_{#gamma_{D}} = 0.4 GeV, c#tau_{#gamma_{D}} = 0. mm}}","h");
entry->SetLineColor(1);
entry->SetLineStyle(1);
entry->SetLineWidth(1);
entry->SetMarkerColor(1);
entry->SetMarkerStyle(21);
entry->SetMarkerSize(1);
entry->SetTextFont(42);
leg->Draw();
leg = new TLegend(0.17,0.935,0.97,1,NULL,"brNDC");
leg->SetBorderSize(0);
leg->SetTextAlign(22);
leg->SetTextSize(0.045);
leg->SetLineColor(1);
leg->SetLineStyle(1);
開發者ID:cms-tamu,項目名稱:MuJetAnalysis_DarkSusySamples_LHE_13TeV_2mu2e_01,代碼行數:31,代碼來源:DarkSusy_mH_125_mGammaD_0400_cT_000_LHE_LJ_pZ.C
示例8: TLegend
entry->SetLineWidth(2);
entry->SetMarkerColor(1);
entry->SetMarkerStyle(21);
entry->SetMarkerSize(1);
entry->SetTextFont(42);
leg->Draw();
leg = new TLegend(0.72,0.5,0.89,0.8,NULL,"brNDC");
leg->SetBorderSize(0);
leg->SetTextSize(0.03);
leg->SetLineColor(1);
leg->SetLineStyle(1);
leg->SetLineWidth(1);
leg->SetFillColor(0);
leg->SetFillStyle(1001);
entry=leg->AddEntry("NULL","R_{#Lambda} = 80%","h");
entry->SetLineColor(1);
entry->SetLineStyle(1);
entry->SetLineWidth(1);
entry->SetMarkerColor(1);
entry->SetMarkerStyle(21);
entry->SetMarkerSize(1);
entry->SetTextFont(42);
entry=leg->AddEntry("Graph","g_{eff} = 1","l");
ci = TColor::GetColor("#9999ff");
entry->SetLineColor(ci);
entry->SetLineStyle(5);
entry->SetLineWidth(2);
entry->SetMarkerColor(1);
entry->SetMarkerStyle(21);
示例9: TLegend
entry->SetLineStyle(1);
entry->SetLineWidth(1);
entry->SetMarkerColor(1);
entry->SetMarkerStyle(21);
entry->SetMarkerSize(1);
leg->Draw();
leg = new TLegend(0,0,0,0,NULL,"brNDC");
leg->SetBorderSize(0);
leg->SetTextFont(62);
leg->SetLineColor(1);
leg->SetLineStyle(1);
leg->SetLineWidth(1);
leg->SetFillColor(19);
leg->SetFillStyle(0);
entry=leg->AddEntry("h1","B meson","");
entry->SetLineColor(1);
entry->SetLineStyle(1);
entry->SetLineWidth(1);
entry->SetMarkerColor(1);
entry->SetMarkerStyle(21);
entry->SetMarkerSize(1);
entry=leg->AddEntry("h1","M_{B}=5282.65 #pm 1.80 MeV/c^{2}","");
entry->SetLineColor(1);
entry->SetLineStyle(1);
entry->SetLineWidth(1);
entry->SetMarkerColor(1);
entry->SetMarkerStyle(21);
entry->SetMarkerSize(1);
entry=leg->AddEntry("h1","N_{B}=323 #pm 21","");
entry->SetLineColor(1);
示例10: AddEntry
void cElCompiledFonc::InitEntries()
{
static bool First = true;
if (! First)
return;
First = false;
AddEntry("cEqAppui_Droite_GL__PTInc_M2CNoVar",cEqAppui_Droite_GL__PTInc_M2CNoVar::Alloc);
AddEntry("cEqAppui_Droite_GL__PProjInc_M2CNoVar",cEqAppui_Droite_GL__PProjInc_M2CNoVar::Alloc);
AddEntry("cEqAppui_Droite_NoDist__GL__PTInc_M2CNoVar",cEqAppui_Droite_NoDist__GL__PTInc_M2CNoVar::Alloc);
AddEntry("cEqAppui_Droite_NoDist__GL__PProjInc_M2CNoVar",cEqAppui_Droite_NoDist__GL__PProjInc_M2CNoVar::Alloc);
AddEntry("cEqAppui_Droite_PTInc_M2CNoVar",cEqAppui_Droite_PTInc_M2CNoVar::Alloc);
AddEntry("cEqAppui_Droite_PProjInc_M2CNoVar",cEqAppui_Droite_PProjInc_M2CNoVar::Alloc);
AddEntry("cEqAppui_Droite_NoDist__PTInc_M2CNoVar",cEqAppui_Droite_NoDist__PTInc_M2CNoVar::Alloc);
AddEntry("cEqAppui_Droite_NoDist__PProjInc_M2CNoVar",cEqAppui_Droite_NoDist__PProjInc_M2CNoVar::Alloc);
AddEntry("cEqAppui_Droite_GL__PTInc_M2CDRad5",cEqAppui_Droite_GL__PTInc_M2CDRad5::Alloc);
AddEntry("cEqAppui_Droite_GL__PProjInc_M2CDRad5",cEqAppui_Droite_GL__PProjInc_M2CDRad5::Alloc);
AddEntry("cEqAppui_Droite_NoDist__GL__PTInc_M2CDRad5",cEqAppui_Droite_NoDist__GL__PTInc_M2CDRad5::Alloc);
AddEntry("cEqAppui_Droite_NoDist__GL__PProjInc_M2CDRad5",cEqAppui_Droite_NoDist__GL__PProjInc_M2CDRad5::Alloc);
AddEntry("cEqAppui_Droite_PTInc_M2CDRad5",cEqAppui_Droite_PTInc_M2CDRad5::Alloc);
AddEntry("cEqAppui_Droite_PProjInc_M2CDRad5",cEqAppui_Droite_PProjInc_M2CDRad5::Alloc);
AddEntry("cEqAppui_Droite_NoDist__PTInc_M2CDRad5",cEqAppui_Droite_NoDist__PTInc_M2CDRad5::Alloc);
AddEntry("cEqAppui_Droite_NoDist__PProjInc_M2CDRad5",cEqAppui_Droite_NoDist__PProjInc_M2CDRad5::Alloc);
AddEntry("cEqAppui_Droite_GL__PTInc_M2CDRad_PPaEqPPs",cEqAppui_Droite_GL__PTInc_M2CDRad_PPaEqPPs::Alloc);
AddEntry("cEqAppui_Droite_GL__PProjInc_M2CDRad_PPaEqPPs",cEqAppui_Droite_GL__PProjInc_M2CDRad_PPaEqPPs::Alloc);
AddEntry("cEqAppui_Droite_NoDist__GL__PTInc_M2CDRad_PPaEqPPs",cEqAppui_Droite_NoDist__GL__PTInc_M2CDRad_PPaEqPPs::Alloc);
AddEntry("cEqAppui_Droite_NoDist__GL__PProjInc_M2CDRad_PPaEqPPs",cEqAppui_Droite_NoDist__GL__PProjInc_M2CDRad_PPaEqPPs::Alloc);
AddEntry("cEqAppui_Droite_PTInc_M2CDRad_PPaEqPPs",cEqAppui_Droite_PTInc_M2CDRad_PPaEqPPs::Alloc);
AddEntry("cEqAppui_Droite_PProjInc_M2CDRad_PPaEqPPs",cEqAppui_Droite_PProjInc_M2CDRad_PPaEqPPs::Alloc);
AddEntry("cEqAppui_Droite_NoDist__PTInc_M2CDRad_PPaEqPPs",cEqAppui_Droite_NoDist__PTInc_M2CDRad_PPaEqPPs::Alloc);
AddEntry("cEqAppui_Droite_NoDist__PProjInc_M2CDRad_PPaEqPPs",cEqAppui_Droite_NoDist__PProjInc_M2CDRad_PPaEqPPs::Alloc);
AddEntry("cEqObsBaseGPS",cEqObsBaseGPS::Alloc);
AddEntry("cEqObsBaseGPS_GL",cEqObsBaseGPS_GL::Alloc);
AddEntry("cImplEqRelativeGPS",cImplEqRelativeGPS::Alloc);
AddEntry("cCodeBlockCam",cCodeBlockCam::Alloc);
AddEntry("cEqLinariseAngle",cEqLinariseAngle::Alloc);
AddEntry("cEqLinariseAngle_AccelCsteCoord",cEqLinariseAngle_AccelCsteCoord::Alloc);
AddEntry("cEqBBCamFirst",cEqBBCamFirst::Alloc);
AddEntry("cEqBBCamSecond",cEqBBCamSecond::Alloc);
AddEntry("cEqBBCamThird",cEqBBCamThird::Alloc);
AddEntry("cEqBBCamFirst_AccelCsteCoord",cEqBBCamFirst_AccelCsteCoord::Alloc);
AddEntry("cEqBBCamSecond_AccelCsteCoord",cEqBBCamSecond_AccelCsteCoord::Alloc);
AddEntry("cEqBBCamThird_AccelCsteCoord",cEqBBCamThird_AccelCsteCoord::Alloc);
FULL_NEW_ADD_ENTRY(Fraser_PPaEqPPs)
FULL_NEW_ADD_ENTRY(Four7x2);
FULL_NEW_ADD_ENTRY(Four11x2);
FULL_NEW_ADD_ENTRY(Four15x2);
FULL_NEW_ADD_ENTRY(Four19x2);
FULL_NEW_ADD_ENTRY(CamBilin);
/*
NEW_ADD_ENTRY(Fraser_PPaEqPPs)
AddEntry("cEqAppui_PTInc_M2CFraser_PPaEqPPs",cEqAppui_PTInc_M2CFraser_PPaEqPPs::Alloc);
AddEntry("cEqAppui_PProjInc_M2CFraser_PPaEqPPs",cEqAppui_PProjInc_M2CFraser_PPaEqPPs::Alloc);
*/
// NEW_ADD_ENTRY(Four7x2);
// AddEntry("cEqAppui_GL__PTInc_M2CFraser_PPaEqPPs", cEqAppui_GL__PTInc_M2CFraser_PPaEqPPs::Alloc);
// AddEntry("cEqAppui_GL__PProjInc_M2CFraser_PPaEqPPs", cEqAppui_GL__PProjInc_M2CFraser_PPaEqPPs::Alloc);
AFOC_ADD_ENTRY(DRad5)
NEW_ADD_ENTRY(NoDist)
NEW_ADD_ENTRY(DRad5)
NEW_ADD_ENTRY(DRad5APFraser)
NEW_ADD_ENTRY(Ebner)
NEW_ADD_ENTRY(DCBrown)
NEW_ADD_ENTRY(FishEye_10_5_5)
NEW_ADD_ENTRY(EquiSolid_FishEye_10_5_5)
NEW_ADD_ENTRY(DRad_PPaEqPPs)
NEW_ADD_ENTRY(Polyn2)
NEW_ADD_ENTRY(Polyn3)
NEW_ADD_ENTRY(Polyn4)
NEW_ADD_ENTRY(Polyn5)
NEW_ADD_ENTRY(Polyn6)
NEW_ADD_ENTRY(Polyn7)
AddEntry("cEqAppui_NoDist__GL__PProjInc_M2CNoVar",cEqAppui_NoDist__GL__PProjInc_M2CNoVar::Alloc); // EqHom
AddEntry("cEqAppui_NoDist__GL__PTInc_M2CNoVar",cEqAppui_NoDist__GL__PTInc_M2CNoVar::Alloc); // EqHom
AddEntry("cEqAppui_NoDist__PProjInc_M2CNoVar",cEqAppui_NoDist__PProjInc_M2CNoVar::Alloc); // EqHom
AddEntry("cEqAppui_NoDist__PTInc_M2CNoVar",cEqAppui_NoDist__PTInc_M2CNoVar::Alloc); // EqHom
AddEntry("cCylindre_EqRat_CodGen",cCylindre_EqRat_CodGen::Alloc);
AddEntry("cEqDirectDistDRad5Reformat_CodGen",cEqDirectDistDRad5Reformat_CodGen::Alloc); // EqHom
AddEntry("cEqDirectDistDRad5Interp_CodGen",cEqDirectDistDRad5Interp_CodGen::Alloc); // EqHom
AddEntry("cEqDirectDistDRad5Bayer_CodGen",cEqDirectDistDRad5Bayer_CodGen::Alloc); // EqHom
//.........這裏部分代碼省略.........
示例11: findfunc
void findfunc()
{
//dijet case
// auto fmcppbjt = config.getfile_djt("mcppbfa");
// auto nt = (TTree *)fmcppbjt->Get("nt");
// seth(18,40,220);
// auto hd = geth("hd");
// auto hn = geth("hn");
// nt->Project("hd","jtpt2","weight*(pthat>80 && jtpt1>100 && abs(refparton_flavorForB1)==5 && abs(refparton_flavorForB2)!=5 && dphi21>2.1)");
// nt->Project("hn","jtpt2","weight*(pthat>80 && jtpt1>100 && abs(refparton_flavorForB1)==5 && abs(refparton_flavorForB2)!=5 && dphi21>2.1 && discr_csvV1_2>0.9)");
// hn->Divide(hn,hd,1,1,"B")
// hn->Fit(f)
auto fpp = new TF1("fpp","expo",40,200);
auto f1 = new TF1("fPb1","expo",40,200);
auto f2 = new TF1("fPb2","expo",40,200);
auto f3 = new TF1("fPb3","expo",40,200);
seth(18,40,200);
auto ntpp = (TTree *)config.getfile_inc("mcppqcd")->Get("nt");
auto hd = geth("hd");
auto hn = geth("hn",";p_{T} [GeV];mistag probability");
ntpp->Project("hd","jtpt","weight*(pthat>50 && refpt>20 && abs(refparton_flavorForB)!=5)");
ntpp->Project("hn","jtpt","weight*(pthat>50 && refpt>20 && abs(refparton_flavorForB)!=5 && discr_csvV1>0.9)");
hn->Divide(hn,hd,1,1,"B");
// hn->Scale(1/hn->Integral());
hn->Fit(fpp);
auto nt = (TTree *)config.getfile_inc("mcPbqcd")->Get("nt");
auto hd1 = geth("hd1");
auto hn1 = geth("hn1",";p_{T} [GeV];mistag probability");
nt->Project("hd1","jtpt","weight*(pthat>50 && refpt>20 && bin < 20 && abs(refparton_flavorForB)!=5)");
nt->Project("hn1","jtpt","weight*(pthat>50 && refpt>20 && bin < 20 && abs(refparton_flavorForB)!=5 && discr_csvV1>0.9)");
hn1->Divide(hn1,hd1,1,1,"B");
// hn1->Scale(1/hn1->Integral());
hn1->Fit(f1);
auto hd2 = geth("hd2");
auto hn2 = geth("hn2",";p_{T} [GeV];mistag probability");
nt->Project("hd2","jtpt","weight*(pthat>50 && refpt>20 && bin>=20 && bin<60 && abs(refparton_flavorForB)!=5)");
nt->Project("hn2","jtpt","weight*(pthat>50 && refpt>20 && bin>=20 && bin<60 && abs(refparton_flavorForB)!=5 && discr_csvV1>0.9)");
hn2->Divide(hn2,hd2,1,1,"B");
// hn2->Scale(1/hn2->Integral());
hn2->Fit(f2);
auto hd3 = geth("hd3");
auto hn3 = geth("hn3",";p_{T} [GeV];mistag probability");
nt->Project("hd3","jtpt","weight*(pthat>50 && refpt>20 && bin>=60 && abs(refparton_flavorForB)!=5)");
nt->Project("hn3","jtpt","weight*(pthat>50 && refpt>20 && bin>=60 && abs(refparton_flavorForB)!=5 && discr_csvV1>0.9)");
hn3->Divide(hn3,hd3,1,1,"B");
// hn3->Scale(1/hn3->Integral());
hn3->Fit(f3);
// because of backward imcompatibility with root version on polui
cout<<"auto fpp = new TF1(\"fpp\",\"expo\","<<fpp->GetXmin()<<","<<fpp->GetXmax()<<");"<<endl;
cout<<"auto fPb1 = new TF1(\"fPb1\",\"expo\","<<f1->GetXmin()<<","<<f1->GetXmax()<<");"<<endl;
cout<<"auto fPb2 = new TF1(\"fPb2\",\"expo\","<<f2->GetXmin()<<","<<f2->GetXmax()<<");"<<endl;
cout<<"auto fPb3 = new TF1(\"fPb3\",\"expo\","<<f3->GetXmin()<<","<<f3->GetXmax()<<");"<<endl;
cout<<"fpp->SetParameters("<<fpp->GetParameter(0)<<","<<fpp->GetParameter(1)<<");"<<endl;
cout<<"fPb1->SetParameters("<<f1->GetParameter(0)<<","<<f1->GetParameter(1)<<");"<<endl;
cout<<"fPb2->SetParameters("<<f2->GetParameter(0)<<","<<f2->GetParameter(1)<<");"<<endl;
cout<<"fPb3->SetParameters("<<f3->GetParameter(0)<<","<<f3->GetParameter(1)<<");"<<endl;
// hn->SetMinimum(0);
// hn1->SetMinimum(0);
// hn2->SetMinimum(0);
// hn3->SetMinimum(0);
auto fout = new TFile("../correctionfiles/BXmistagfunc.root","recreate");
fout->cd();
fpp->Write();
f1->Write();
f2->Write();
f3->Write();
hn->Write();
hn1->Write();
hn2->Write();
hn3->Write();
auto c = getc();
f1->SetLineColor(kRed);
f2->SetLineColor(kGreen);
f3->SetLineColor(kOrange);
fpp->SetLineColor(kBlue);
auto l = getLegend();
l->AddEntry(fpp,"pp","L");
l->AddEntry(f1,"bin<20","L");
//.........這裏部分代碼省略.........
示例12: TLegend
entry->SetLineStyle(1);
entry->SetLineWidth(1);
entry->SetMarkerColor(1);
entry->SetMarkerStyle(21);
entry->SetMarkerSize(1);
leg->Draw();
leg = new TLegend(1.718479e-308,1.720703e-308,1.724591e-308,1.727307e-308,NULL,"brNDC");
leg->SetBorderSize(0);
leg->SetTextFont(62);
leg->SetLineColor(1);
leg->SetLineStyle(1);
leg->SetLineWidth(1);
leg->SetFillColor(19);
leg->SetFillStyle(0);
entry=leg->AddEntry("h81","B meson","");
entry->SetLineColor(1);
entry->SetLineStyle(1);
entry->SetLineWidth(1);
entry->SetMarkerColor(1);
entry->SetMarkerStyle(21);
entry->SetMarkerSize(1);
entry=leg->AddEntry("h81","M_{B}=5278.66 #pm 4.89 MeV/c^{2}","");
entry->SetLineColor(1);
entry->SetLineStyle(1);
entry->SetLineWidth(1);
entry->SetMarkerColor(1);
entry->SetMarkerStyle(21);
entry->SetMarkerSize(1);
entry=leg->AddEntry("h81","N_{B}=26 #pm 5","");
entry->SetLineColor(1);
示例13: TLegend
entry->SetLineStyle(1);
entry->SetLineWidth(1);
entry->SetMarkerColor(1);
entry->SetMarkerStyle(21);
entry->SetMarkerSize(1);
leg->Draw();
leg = new TLegend(0,2.353513e-310,0,0,NULL,"brNDC");
leg->SetBorderSize(0);
leg->SetTextFont(62);
leg->SetLineColor(1);
leg->SetLineStyle(1);
leg->SetLineWidth(1);
leg->SetFillColor(19);
leg->SetFillStyle(0);
entry=leg->AddEntry("h3","B meson","");
entry->SetLineColor(1);
entry->SetLineStyle(1);
entry->SetLineWidth(1);
entry->SetMarkerColor(1);
entry->SetMarkerStyle(21);
entry->SetMarkerSize(1);
entry=leg->AddEntry("h3","M_{B}=5281.13 #pm 1.95 MeV/c^{2}","");
entry->SetLineColor(1);
entry->SetLineStyle(1);
entry->SetLineWidth(1);
entry->SetMarkerColor(1);
entry->SetMarkerStyle(21);
entry->SetMarkerSize(1);
entry=leg->AddEntry("h3","N_{B}=131 #pm 13","");
entry->SetLineColor(1);
示例14: stream
QSettings s;
s.beginGroup(kSettingsGroup);
access_token_ = s.value("access_token").toString();
server_ = s.value("server").toString();
QByteArray tree_bytes = s.value("tree").toByteArray();
if (!tree_bytes.isEmpty()) {
QDataStream stream(&tree_bytes, QIODevice::ReadOnly);
stream >> tree_;
}
app->player()->RegisterUrlHandler(new SeafileUrlHandler(this, this));
connect(&tree_, SIGNAL(ToAdd(QString, QString, SeafileTree::Entry)), this,
SLOT(AddEntry(QString, QString, SeafileTree::Entry)));
connect(&tree_, SIGNAL(ToDelete(QString, QString, SeafileTree::Entry)), this,
SLOT(DeleteEntry(QString, QString, SeafileTree::Entry)));
connect(&tree_, SIGNAL(ToUpdate(QString, QString, SeafileTree::Entry)), this,
SLOT(UpdateEntry(QString, QString, SeafileTree::Entry)));
}
bool SeafileService::has_credentials() const {
return !access_token_.isEmpty();
}
void SeafileService::AddAuthorizationHeader(QNetworkRequest* request) const {
request->setRawHeader("Authorization",
QString("Token %1").arg(access_token_).toAscii());
}
示例15: TLegend
entry->SetLineStyle(1);
entry->SetLineWidth(1);
entry->SetMarkerColor(1);
entry->SetMarkerStyle(21);
entry->SetMarkerSize(1);
leg->Draw();
leg = new TLegend(3.694129e-320,1.615595e-321,3.67486e-320,1.615595e-321,NULL,"brNDC");
leg->SetBorderSize(0);
leg->SetTextFont(62);
leg->SetLineColor(1);
leg->SetLineStyle(1);
leg->SetLineWidth(1);
leg->SetFillColor(19);
leg->SetFillStyle(0);
entry=leg->AddEntry("h65","B meson","");
entry->SetLineColor(1);
entry->SetLineStyle(1);
entry->SetLineWidth(1);
entry->SetMarkerColor(1);
entry->SetMarkerStyle(21);
entry->SetMarkerSize(1);
entry=leg->AddEntry("h65","M_{B}=5286.22 #pm 3.68 MeV/c^{2}","");
entry->SetLineColor(1);
entry->SetLineStyle(1);
entry->SetLineWidth(1);
entry->SetMarkerColor(1);
entry->SetMarkerStyle(21);
entry->SetMarkerSize(1);
entry=leg->AddEntry("h65","N_{B}=49 #pm 8","");
entry->SetLineColor(1);