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);
   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);
Example #3
0
void EditTOC::AddEntryAbove()
{
    AddEntry(true);
}
Example #4
0
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);
}
Example #5
0
   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");
Example #6
0
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;
	}
 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);
   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);
 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);
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

     AddEntry("cEqCalibCroisee_NoDist_CodGenC2M",cEqCalibCroisee_NoDist_CodGenC2M::Alloc);    // EqHom
     AddEntry("cEqCalibCroisee_DRad5_CodGenC2M",cEqCalibCroisee_DRad5_CodGenC2M::Alloc);    // EqHom
     AddEntry("cEqCalibCroisee_DRad5APFraser_CodGenC2M",cEqCalibCroisee_DRad5APFraser_CodGenC2M::Alloc);    // EqHom

     AddEntry("cEqCalibCroisee_NoDist_CodGenM2C",cEqCalibCroisee_NoDist_CodGenM2C::Alloc);    // EqHom
     AddEntry("cEqCalibCroisee_DRad5_CodGenM2C",cEqCalibCroisee_DRad5_CodGenM2C::Alloc);    // EqHom
     AddEntry("cEqCalibCroisee_DRad5APFraser_CodGenM2C",cEqCalibCroisee_DRad5APFraser_CodGenM2C::Alloc);    // EqHom


     AddEntry("cEqObsRotVect_CodGen",cEqObsRotVect_CodGen::Alloc);    // EqHom

     AddEntry("cEqHomogrXDeg5",cEqHomogrXDeg5::Alloc);    // EqHom
     AddEntry("cEqHomogrYDeg5",cEqHomogrYDeg5::Alloc);

     AddEntry("cEqHomogrSpaceInitX",cEqHomogrSpaceInitX::Alloc);    // EqHom
     AddEntry("cEqHomogrSpaceInitY",cEqHomogrSpaceInitY::Alloc);

     AddEntry("cEqHomogrX",cEqHomogrX::Alloc);    // EqHom
     AddEntry("cEqHomogrY",cEqHomogrY::Alloc);

     AddEntry("cEqOneHomogrX",cEqOneHomogrX::Alloc);    // EqHom
     AddEntry("cEqOneHomogrY",cEqOneHomogrY::Alloc);


     AddEntry("cEqCoplanDPol3Id",cEqCoplanDPol3Id::Alloc);  // DPol
     AddEntry("cEqCoplanDPol5Id",cEqCoplanDPol5Id::Alloc);
     AddEntry("cEqCoplanDPol7Id",cEqCoplanDPol7Id::Alloc);
     AddEntry("cEqResiduIm1NoDistId",cEqResiduIm1NoDistId::Alloc);  // NoDist
     AddEntry("cEqResiduIm2NoDistId",cEqResiduIm2NoDistId::Alloc);
     AddEntry("cEqCoplanNoDistId",cEqCoplanNoDistId::Alloc);


     AddEntry("cEqCoplanGrid",cEqCoplanGrid::Alloc);          // Grid
     AddEntry("cEqAppuiGrid",cEqAppuiGrid::Alloc);          // Grid
     AddEntry("cEqResiduIm1Grid",cEqResiduIm1Grid::Alloc);
     AddEntry("cEqResiduIm2Grid",cEqResiduIm2Grid::Alloc);
     AddEntry("cSetVar",cSetVar::Alloc);                        // Uti
     AddEntry("cSetValsEq",cSetValsEq::Alloc);                        // Uti
     AddEntry("cRegD1",cRegD1::Alloc);
     AddEntry("cRegD2",cRegD2::Alloc);
     AddEntry("cSetNormEuclid3",cSetNormEuclid3::Alloc);
     AddEntry("cSetNormEuclidVect3",cSetNormEuclidVect3::Alloc);
     AddEntry("cSetScal3",cSetScal3::Alloc);


     AddEntry("cEqCorLI_Single_5",cEqCorLI_Single_5::Alloc);    // LaserImage
     AddEntry("cEqCorLI_Single_9",cEqCorLI_Single_9::Alloc);
     AddEntry("cEqCorLI_Multi_5",cEqCorLI_Multi_5::Alloc);     // LaserImage

     AddEntry("cEqCorLI_Multi_1_DRPts0_NonNorm",cEqCorLI_Multi_1_DRPts0_NonNorm::Alloc);     // LaserImage
     // AddEntry("cEqCorLI_Multi_1_DRPts1_NonNorm",cEqCorLI_Multi_1_DRPts1_NonNorm::Alloc);     // LaserImage
     // AddEntry("cEqCorLI_Multi_1_DRPts2_NonNorm",cEqCorLI_Multi_1_DRPts2_NonNorm::Alloc);     // LaserImage
     // AddEntry("cEqCorLI_Multi_1_DRPts3_NonNorm",cEqCorLI_Multi_1_DRPts3_NonNorm::Alloc);     // LaserImage

     AddEntry("cEqCorLI_Multi_9",cEqCorLI_Multi_9::Alloc);
     AddEntry("cEqAppuiXDHom",cEqAppuiXDHom::Alloc);              // DHom
     AddEntry("cEqAppuiYDHom",cEqAppuiYDHom::Alloc);
     AddEntry("cEqResiduIm1DRad5Id",cEqResiduIm1DRad5Id::Alloc);   // DRad
     AddEntry("cEqResiduIm2DRad5Id",cEqResiduIm2DRad5Id::Alloc);
     AddEntry("cEqCoplanDRad5Id",cEqCoplanDRad5Id::Alloc);



     AddEntry("cEqCibleEllipse7",cEqCibleEllipse7::Alloc);     // Ellipse
     AddEntry("cEqCibleEllipse6",cEqCibleEllipse6::Alloc);     // Ellipse
     AddEntry("cEqCibleEllipse5",cEqCibleEllipse5::Alloc);
     AddEntry("cEqCibleEllipse1",cEqCibleEllipse1::Alloc);
     AddEntry("cEqLin_1",cEqLin_1::Alloc);  // cEqLin_
     AddEntry("cEqLin_2",cEqLin_2::Alloc);  
     AddEntry("cEqLin_3",cEqLin_3::Alloc);  

     AddEntry("cEqCoplanDRad5APFraserId",cEqCoplanDRad5APFraserId::Alloc);
     AddEntry("cEqResiduIm1DRad5APFraserId",cEqResiduIm1DRad5APFraserId::Alloc);
     AddEntry("cEqResiduIm2DRad5APFraserId",cEqResiduIm2DRad5APFraserId::Alloc);

     AddEntry("cEqAppuiXDPol3",cEqAppuiXDPol3::Alloc);
     AddEntry("cEqAppuiYDPol3",cEqAppuiYDPol3::Alloc);
     AddEntry("cEqAppuiXDPol5",cEqAppuiXDPol5::Alloc);
     AddEntry("cEqAppuiYDPol5",cEqAppuiYDPol5::Alloc);
     AddEntry("cEqAppuiXDPol7",cEqAppuiXDPol7::Alloc);
     AddEntry("cEqAppuiYDPol7",cEqAppuiYDPol7::Alloc);
     AddEntry("EqObsBaclt",EqObsBaclt::Alloc);

     AddEntry("cEqCorrelGrid_9_Im2Var",cEqCorrelGrid_9_Im2Var::Alloc);   //Grid Cor
     // AddEntry("cEqCorrelGrid_25_Im2Var",cEqCorrelGrid_25_Im2Var::Alloc);  



     AddEntry("cEqCoplanEbnerId",cEqCoplanEbnerId::Alloc);
     AddEntry("cEqCoplanDCBrownId",cEqCoplanDCBrownId::Alloc);
     AddEntry("cEqResiduIm1EbnerId",cEqResiduIm1EbnerId::Alloc);
     AddEntry("cEqResiduIm1DCBrownId",cEqResiduIm1DCBrownId::Alloc);
     AddEntry("cEqResiduIm2EbnerId",cEqResiduIm2EbnerId::Alloc);
     AddEntry("cEqResiduIm2DCBrownId",cEqResiduIm2DCBrownId::Alloc);

     AddEntry("cCodeGenEqPlanInconnuFormel",cCodeGenEqPlanInconnuFormel::Alloc);

     AddEntry("cEqAppui_PTInc_M2CDCBrown",cEqAppui_PTInc_M2CDCBrown::Alloc);
     AddEntry("cEqAppui_PTInc_C2MDCBrown",cEqAppui_PTInc_C2MDCBrown::Alloc);
     AddEntry("cEqAppui_PProjInc_M2CDCBrown",cEqAppui_PProjInc_M2CDCBrown::Alloc);
     AddEntry("cEqAppui_PProjInc_C2MDCBrown",cEqAppui_PProjInc_C2MDCBrown::Alloc);

     AddEntry("cEqAppui_PTInc_M2CDRad5APFraser",cEqAppui_PTInc_M2CDRad5APFraser::Alloc);
     AddEntry("cEqAppui_PTInc_C2MDRad5APFraser",cEqAppui_PTInc_C2MDRad5APFraser::Alloc);
     AddEntry("cEqAppui_PProjInc_M2CDRad5APFraser",cEqAppui_PProjInc_M2CDRad5APFraser::Alloc);
     AddEntry("cEqAppui_PProjInc_C2MDRad5APFraser",cEqAppui_PProjInc_C2MDRad5APFraser::Alloc);


     AddEntry("cEqAppui_PTInc_M2CDRad5",cEqAppui_PTInc_M2CDRad5::Alloc);
     AddEntry("cEqAppui_PTInc_C2MDRad5",cEqAppui_PTInc_C2MDRad5::Alloc);
     AddEntry("cEqAppui_PProjInc_M2CDRad5",cEqAppui_PProjInc_M2CDRad5::Alloc);
     AddEntry("cEqAppui_PProjInc_C2MDRad5",cEqAppui_PProjInc_C2MDRad5::Alloc);


     AddEntry("cEqAppui_PTInc_M2CEbner",cEqAppui_PTInc_M2CEbner::Alloc);
     AddEntry("cEqAppui_PTInc_C2MEbner",cEqAppui_PTInc_C2MEbner::Alloc);
     AddEntry("cEqAppui_PProjInc_M2CEbner",cEqAppui_PProjInc_M2CEbner::Alloc);
     AddEntry("cEqAppui_PProjInc_C2MEbner",cEqAppui_PProjInc_C2MEbner::Alloc);

     AddEntry("cEqAppui_PTInc_M2CPolyn2",cEqAppui_PTInc_M2CPolyn2::Alloc);
     AddEntry("cEqAppui_PTInc_M2CPolyn3",cEqAppui_PTInc_M2CPolyn3::Alloc);
     AddEntry("cEqAppui_PTInc_M2CPolyn4",cEqAppui_PTInc_M2CPolyn4::Alloc);
     AddEntry("cEqAppui_PTInc_M2CPolyn5",cEqAppui_PTInc_M2CPolyn5::Alloc);
     AddEntry("cEqAppui_PTInc_M2CPolyn6",cEqAppui_PTInc_M2CPolyn6::Alloc);
     AddEntry("cEqAppui_PTInc_M2CPolyn7",cEqAppui_PTInc_M2CPolyn7::Alloc);
     AddEntry("cEqAppui_PTInc_M2CFishEye_10_5_5",cEqAppui_PTInc_M2CFishEye_10_5_5::Alloc);
     AddEntry("cEqAppui_PTInc_M2CEquiSolid_FishEye_10_5_5",cEqAppui_PTInc_M2CEquiSolid_FishEye_10_5_5::Alloc);
     AddEntry("cEqAppui_PTInc_M2CDRad_PPaEqPPs",cEqAppui_PTInc_M2CDRad_PPaEqPPs::Alloc);


     AddEntry("cEqAppui_PProjInc_M2CPolyn2",cEqAppui_PProjInc_M2CPolyn2::Alloc);
     AddEntry("cEqAppui_PProjInc_M2CPolyn3",cEqAppui_PProjInc_M2CPolyn3::Alloc);
     AddEntry("cEqAppui_PProjInc_M2CPolyn4",cEqAppui_PProjInc_M2CPolyn4::Alloc);
     AddEntry("cEqAppui_PProjInc_M2CPolyn5",cEqAppui_PProjInc_M2CPolyn5::Alloc);
     AddEntry("cEqAppui_PProjInc_M2CPolyn6",cEqAppui_PProjInc_M2CPolyn6::Alloc);
     AddEntry("cEqAppui_PProjInc_M2CPolyn7",cEqAppui_PProjInc_M2CPolyn7::Alloc);
     AddEntry("cEqAppui_PProjInc_M2CFishEye_10_5_5",cEqAppui_PProjInc_M2CFishEye_10_5_5::Alloc);
     AddEntry("cEqAppui_PProjInc_M2CEquiSolid_FishEye_10_5_5",cEqAppui_PProjInc_M2CEquiSolid_FishEye_10_5_5::Alloc);
     AddEntry("cEqAppui_PProjInc_M2CDRad_PPaEqPPs",cEqAppui_PProjInc_M2CDRad_PPaEqPPs::Alloc);





     AddEntry("cEqAppui_PTInc_M2CDPol3",cEqAppui_PTInc_M2CDPol3::Alloc);
     AddEntry("cEqAppui_PTInc_C2MDPol3",cEqAppui_PTInc_C2MDPol3::Alloc);

     AddEntry("cEqAppui_PTInc_M2CDPol5",cEqAppui_PTInc_M2CDPol5::Alloc);
     AddEntry("cEqAppui_PTInc_C2MDPol5",cEqAppui_PTInc_C2MDPol5::Alloc);

     AddEntry("cEqAppui_PTInc_M2CDPol7",cEqAppui_PTInc_M2CDPol7::Alloc);
     AddEntry("cEqAppui_PTInc_C2MDPol7",cEqAppui_PTInc_C2MDPol7::Alloc);




     AddEntry("cEqAppui_PTInc_M2CNoDist",cEqAppui_PTInc_M2CNoDist::Alloc);
     AddEntry("cEqAppui_PTInc_C2MNoDist",cEqAppui_PTInc_C2MNoDist::Alloc);


// ====  GUIMBAL LOCK ============

#if (0)
     AddEntry("cEqAppui_GL__PTInc_M2CNoDist",cEqAppui_GL__PTInc_M2CNoDist::Alloc);
     AddEntry("cEqAppui_GL__PProjInc_M2CNoDist",cEqAppui_GL__PProjInc_M2CNoDist::Alloc);

     AddEntry("cEqAppui_GL__PTInc_M2CDRad5",cEqAppui_GL__PTInc_M2CDRad5::Alloc);
     AddEntry("cEqAppui_GL__PProjInc_M2CDRad5",cEqAppui_GL__PProjInc_M2CDRad5::Alloc);

     AddEntry("cEqAppui_GL__PTInc_M2CDRad5APFraser",cEqAppui_GL__PTInc_M2CDRad5APFraser::Alloc);
     AddEntry("cEqAppui_GL__PProjInc_M2CDRad5APFraser",cEqAppui_GL__PProjInc_M2CDRad5APFraser::Alloc);

     AddEntry("cEqAppui_GL__PTInc_M2CEbner",cEqAppui_GL__PTInc_M2CEbner::Alloc);
     AddEntry("cEqAppui_GL__PProjInc_M2CEbner",cEqAppui_GL__PProjInc_M2CEbner::Alloc);

     AddEntry("cEqAppui_GL__PTInc_M2CDCBrown",cEqAppui_GL__PTInc_M2CDCBrown::Alloc);
     AddEntry("cEqAppui_GL__PProjInc_M2CDCBrown",cEqAppui_GL__PProjInc_M2CDCBrown::Alloc);


     AddEntry("cEqAppui_GL__PTInc_M2CFishEye_10_5_5",cEqAppui_GL__PTInc_M2CFishEye_10_5_5::Alloc);
     AddEntry("cEqAppui_GL__PProjInc_M2CFishEye_10_5_5",cEqAppui_GL__PProjInc_M2CFishEye_10_5_5::Alloc);

     AddEntry("cEqAppui_GL__PTInc_M2CEquiSolid_FishEye_10_5_5",cEqAppui_GL__PTInc_M2CEquiSolid_FishEye_10_5_5::Alloc);
     AddEntry("cEqAppui_GL__PTInc_M2CDRad_PPaEqPPs",           cEqAppui_GL__PTInc_M2CDRad_PPaEqPPs::Alloc);

     AddEntry("cEqAppui_GL__PProjInc_M2CEquiSolid_FishEye_10_5_5",cEqAppui_GL__PProjInc_M2CEquiSolid_FishEye_10_5_5::Alloc);
     AddEntry("cEqAppui_GL__PProjInc_M2CDRad_PPaEqPPs",           cEqAppui_GL__PProjInc_M2CDRad_PPaEqPPs::Alloc);





     AddEntry("cEqAppui_GL__PTInc_M2CPolyn2",cEqAppui_GL__PTInc_M2CPolyn2::Alloc);
     AddEntry("cEqAppui_GL__PProjInc_M2CPolyn2",cEqAppui_GL__PProjInc_M2CPolyn2::Alloc);


#endif


/*
     AddEntry("cEqAppui_GL__PTInc_M2CPolyn2",cEqAppui_GL__PTInc_M2CPolyn2::Alloc);
     AddEntry("cEqAppui_GL__PTInc_M2CPolyn3",cEqAppui_GL__PTInc_M2CPolyn3::Alloc);
     AddEntry("cEqAppui_GL__PTInc_M2CPolyn4",cEqAppui_GL__PTInc_M2CPolyn4::Alloc);
     AddEntry("cEqAppui_GL__PTInc_M2CPolyn5",cEqAppui_GL__PTInc_M2CPolyn5::Alloc);
     AddEntry("cEqAppui_GL__PTInc_M2CPolyn6",cEqAppui_GL__PTInc_M2CPolyn6::Alloc);
     AddEntry("cEqAppui_GL__PTInc_M2CPolyn7",cEqAppui_GL__PTInc_M2CPolyn7::Alloc);

*/
}
Example #11
0
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");
  l->AddEntry(f2,"20<bin<60","L");
  l->AddEntry(f3,"bin>60","L");

  f1->GetXaxis()->SetTitle("p_{T} [GeV]");
  f1->GetYaxis()->SetTitle("mistag probability");


  f1->Draw();
  f2->Draw("same");
  f3->Draw("same");
  fpp->Draw("same");

  l->Draw();

  SavePlot(c,"func");

  float x = 0.55;
  float y = 0.75;

  auto t= new TLatex();

  auto cpp = getc();
  hn->Draw();
  fpp->Draw("same");
  t->DrawLatexNDC(x,y,"pp");
  SavePlot(cpp,"pp");


  auto c1 = getc();
  hn1->Draw();
  f1->Draw("same");
  t->DrawLatexNDC(x,y,"PbPb 0-10%");
  SavePlot(c1,"bin_0_20");

  auto c2 = getc();
  hn2->Draw();
  f2->Draw("same");
  t->DrawLatexNDC(x,y,"PbPb 10-30%");
  SavePlot(c2,"bin_20_60");

  auto c3 = getc();
  hn3->Draw();
  f3->Draw("same");
  t->DrawLatexNDC(x,y,"PbPb 30-100%");
  SavePlot(c3,"bin_60");


  fout->Close();

}
 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);
 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);
Example #14
0
  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());
}
Example #15
0
 // Store namespace clears as font id 0, since this will never be allocated.
 void Add(WrIdNamespace aNamespace) {
   AddEntry(AsUint64(WrFontKey { aNamespace, 0 }));
 }
   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_lvjwvh13","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_leptvh13","llbb/lvbb/vvbb","LP");

   ci = TColor::GetColor("#2166ac");
   entry->SetLineColor(ci);
Example #17
0
 void AddAll() {
   AddEntry(~0);
 }
 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);
   entry->SetLineWidth(2);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   leg->Draw();
   
   leg = new TLegend(0.17,0.15,0.45,0.28,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("graphexp_jjwwzh8","qqqq","LP");

   ci = TColor::GetColor("#1b7837");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);

   ci = TColor::GetColor("#1b7837");
   entry->SetMarkerColor(ci);
   entry->SetMarkerStyle(22);
   entry->SetMarkerSize(0.7);
   entry->SetTextFont(42);
   entry=leg->AddEntry("graphexp_lljzh8","llqq","LP");

   ci = TColor::GetColor("#762a83");
   entry->SetLineColor(ci);
 hframe__3->GetZaxis()->SetLabelFont(42);
 hframe__3->GetZaxis()->SetLabelOffset(0.007);
 hframe__3->GetZaxis()->SetLabelSize(0.05);
 hframe__3->GetZaxis()->SetTitleSize(0.06);
 hframe__3->GetZaxis()->SetTitleFont(42);
 hframe__3->Draw("sameaxig");
 
 leg = new TLegend(0.3724832,0.5963455,0.8875839,0.7973422,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("LimitObservedCLs","Asympt. CL_{S} Observed","LP");
 entry->SetLineColor(1);
 entry->SetLineStyle(1);
 entry->SetLineWidth(3);
 entry->SetMarkerColor(1);
 entry->SetMarkerStyle(20);
 entry->SetMarkerSize(1);
 entry->SetTextFont(42);
 entry=leg->AddEntry("Limit68CLs","Asympt. CL_{S} Expected #pm 1#sigma","LF");
 entry->SetFillColor(3);
 entry->SetFillStyle(1001);
 entry->SetLineColor(1);
 entry->SetLineStyle(2);
 entry->SetLineWidth(3);
 entry->SetMarkerColor(1);
 entry->SetMarkerStyle(21);
Example #21
0
//These are all in this map because when we had a compile time switch for the help ids these were left outside of the switch..
// this global map mimics the behaviour of that, ? need further investigation to see if we can get rid of thsese
void HelpSystem::SetupGlobalIDs()
{
// Document Provider Ids
	AddEntry(m_Global, HIDC_INVALID_SERVICE_NAME				,D2H_InvalidServiceName );//ib
	AddEntry(m_Global, HIDC_INVALID_PROVIDER_SELECTED			,D2H_InvalidDocumentProviderSelected );//ib
	AddEntry(m_Global, HIDC_NO_DOCUMENT_INFO					,D2H_SelectingdocumentsfromwithinDeltaView);//ib
//	
//	//IB: TODO: D2H_DocumentSelectionSourceisnotavailable is missing from deltavw.chm so replaceing it with D2H_SelectingdocumentsfromwithinDeltaView
//	AddEntry(m_Global, HIDC_NO_DOCUMENT_INFO					,D2H_DocumentSelectionSourceisnotavailable);
//
//// iManage Errors
//
	AddEntry(m_Global, HIDC_E_IM_INVALID_SESSION						,D2H_InvalidSession );//ib
	AddEntry(m_Global, HIDC_E_IM_NOT_LOGGED_INTO_SESSION				,D2H_NotLoggedIntoSession );//ib
	AddEntry(m_Global, HIDC_E_IM_UNKNOWN_SERVER							,D2H_UnknownServer );//ib
	AddEntry(m_Global, HIDC_E_IM_UNKNOWN_ERROR							,D2H_Unknownerror );//ib
	AddEntry(m_Global, HIDC_E_IM_INVALID_FLAG							,D2H_InvalidFlag );//ib
	AddEntry(m_Global, HIDC_E_IM_CHECKED_OUT_TO_ANOTHER					,D2H_CheckedOutToAnother );//ib
	AddEntry(m_Global, HIDC_E_IM_LOCK_FAILED							,D2H_LockFailed );//ib
	AddEntry(m_Global, HIDC_E_IM_INVALID_DOCID							,D2H_InvalidDocumentId );//ib
	AddEntry(m_Global, HIDC_E_IM_ATTEMPTED_TO_LOCK_OUT_OF_DATE_VERSION	,D2H_AttemptedToLockOutOfDateVersion );//ib
	AddEntry(m_Global, HIDC_E_IM_COULD_NOT_CREATE_DMS					,D2H_CouldNotcreateaniManageDMSObject );//ib
	AddEntry(m_Global, HIDC_E_COULD_NOT_RETRIEVE_DOCUMENT				,D2H_CouldNotRetrieveDocument );//ib

//// iManage Dialogs
//	AddEntry(m_Global, HIDC_IM_SELECT_DOCUMENT_DLG				,D2H_iManageSelectaDocument );//ib
//	AddEntry(m_Global, HIDC_IM_REGISTER_SERVERS_DLG				,D2H_iManage_RegisterServers );//ib
	AddEntry(m_Global, HIDC_IM_SAVE_AS_DLG						,D2H_iManageSaveAs__);
//
}
Example #22
0
   entry->SetLineStyle(2);
   entry->SetLineWidth(2);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(1);
   entry->SetMarkerSize(1);
   leg->Draw();

leg = new TLegend(0.3590604,0.1324503,0.738255,0.3427152,NULL,"brNDC");
   leg->SetBorderSize(1);
   leg->SetTextFont(62);
   leg->SetLineColor(0);
   leg->SetLineStyle(1);
   leg->SetLineWidth(1);
   leg->SetFillColor(0);
   leg->SetFillStyle(1001);
   TLegendEntry *entry=leg->AddEntry("e_Chi2Syst_correlated_res3D","Signal after fit","lpf");
   entry->SetFillStyle(1001);

   ci = TColor::GetColor("#99cc99");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(2);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(1);
   entry->SetMarkerSize(1);
   entry=leg->AddEntry("e_comb2_Components2_subtracted","data - bkg (after fit)","lpf");
   entry->SetFillStyle(1001);

   ci = TColor::GetColor("#000099");
   entry->SetLineColor(ci);
   entry->SetLineStyle(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.7,0.88,0.77,NULL,"brNDC");
 leg->SetBorderSize(0);
 leg->SetLineColor(1);
 leg->SetLineStyle(1);
 leg->SetLineWidth(1);
 leg->SetFillColor(0);
 leg->SetFillStyle(1001);
 entry=leg->AddEntry("RAA_h_b_copy1957747793","#it{b}-jet #it{R}_{AA}, Au+Au 0-10%C, #sqrt{s_{NN}}=200 GeV","pl");
 entry->SetLineColor(1);
 entry->SetLineStyle(1);
 entry->SetLineWidth(3);
 entry->SetMarkerColor(1);
 entry->SetMarkerStyle(20);
 entry->SetMarkerSize(2);
 entry->SetTextFont(42);
 leg->Draw();
 
 leg = new TLegend(0.2,0.2,0.85,0.37,NULL,"brNDC");
 leg->SetBorderSize(0);
 leg->SetLineColor(1);
 leg->SetLineStyle(1);
 leg->SetLineWidth(1);
 leg->SetFillColor(0);
 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);
 leg->SetLineWidth(1);
 leg->SetFillColor(0);
 leg->SetFillStyle(0);
 entry=leg->AddEntry("NULL","CMS Simulation (LHE) 13 TeV","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);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   leg->Draw();
   
   leg = new TLegend(0.19,0.55,1,0.78,NULL,"brNDC");
   leg->SetBorderSize(0);
   leg->SetLineColor(1);
   leg->SetLineStyle(1);
   leg->SetLineWidth(1);
   leg->SetFillColor(0);
   leg->SetFillStyle(0);
   entry=leg->AddEntry("NULL","#it{b}-jet v_{2} Projection, #it{R}_{AA, #it{b}-jet}=0.6, Res(#Psi_{2})=0.7","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("ge_h_b_copyv21714636915","Au+Au 0-10%C","pl");

   ci = TColor::GetColor("#000066");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(3);

   ci = TColor::GetColor("#000066");
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(20);
   entry->SetMarkerSize(1.5);
   entry->SetTextFont(62);
   leg->Draw();
   
   leg = new TLegend(0.4,0.6195462,0.62,0.8935428,NULL,"brNDC");
   leg->SetBorderSize(0);
   leg->SetTextFont(62);
   leg->SetTextSize(0.045);
   leg->SetLineColor(1);
   leg->SetLineStyle(1);
   leg->SetLineWidth(1);
   leg->SetFillColor(0);
   leg->SetFillStyle(0);
   entry=leg->AddEntry("EnergyFlow_pythia8_Monash_RecHit","RecHits","PL");

   Int_t ci;      // for color index setting
   TColor *color; // for color definition with alpha
   ci = TColor::GetColor("#009900");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);

   ci = TColor::GetColor("#009900");
   entry->SetMarkerColor(ci);
   entry->SetMarkerStyle(25);
   entry->SetMarkerSize(1.5);
   entry->SetTextFont(62);
   entry=leg->AddEntry("EnergyFlow_pythia8_Monash_CaloTower","CaloTowers","PL");
Example #27
0
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   leg->Draw();
   
   leg = new TLegend(0.68,0.6,0.92,0.92,NULL,"brNDC");
   leg->SetBorderSize(0);
   leg->SetTextFont(62);
   leg->SetTextSize(0.035);
   leg->SetLineColor(1);
   leg->SetLineStyle(1);
   leg->SetLineWidth(2);
   leg->SetFillColor(0);
   leg->SetFillStyle(4000);
   entry=leg->AddEntry("ttbar","t#bar{t}","F");

   ci = TColor::GetColor("#3333ff");
   entry->SetFillColor(ci);
   entry->SetFillStyle(1001);
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("ZZb","VV + b","F");

   ci = TColor::GetColor("#cccccc");
   entry->SetFillColor(ci);
Example #28
0
 void Add(WrFontKey aKey) {
   AddEntry(AsUint64(aKey));
 }
Example #29
0
void EditTOC::AddEntryBelow()
{
    AddEntry(false);
}
   entry->SetLineWidth(2);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   leg->Draw();
   
   leg = new TLegend(0.17,0.71,0.43,0.88,NULL,"brNDC");
   leg->SetBorderSize(0);
   leg->SetTextSize(0.032);
   leg->SetLineColor(1);
   leg->SetLineStyle(1);
   leg->SetLineWidth(1);
   leg->SetFillColor(0);
   leg->SetFillStyle(1001);
   entry=leg->AddEntry("graphexp_lljzh8","llqq (8 TeV)","LP");

   ci = TColor::GetColor("#762a83");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);

   ci = TColor::GetColor("#762a83");
   entry->SetMarkerColor(ci);
   entry->SetMarkerStyle(25);
   entry->SetMarkerSize(0.7);
   entry->SetTextFont(42);
   entry=leg->AddEntry("graphexp_lvjww8","lvqq (8 TeV)","LP");

   ci = TColor::GetColor("#9970ab");
   entry->SetLineColor(ci);