File indexing completed on 2025-08-06 08:13:57
0001 #include "Read_DST.hh"
0002
0003 void Read_DST(int run_num = 50889
0004 ,
0005 int event_num = 100,
0006 int fphx_bco = 63 )
0007 {
0008
0009
0010 Fun4AllServer *se = Fun4AllServer::instance();
0011 se->Verbosity( 0 );
0012 recoConsts *rc = recoConsts::instance();
0013
0014
0015 Enable::INTT = true;
0016 Enable::GLOBAL_RECO = true;
0017
0018
0019
0020
0021 Enable::CDB = true;
0022
0023 rc->set_StringFlag("CDB_GLOBALTAG", CDB::global_tag);
0024
0025 rc->set_uint64Flag("TIMESTAMP", CDB::timestamp);
0026 rc->set_IntFlag("RUNNUMBER", run_num );
0027
0028
0029
0030
0031 TrackingInit();
0032
0033 Fun4AllDstInputManager *in = new Fun4AllDstInputManager("Dst");
0034
0035 string dst_file = "";
0036 string list = string("list_") + to_string( run_num ) + ".txt";
0037
0038 if( run_num == 50889 )
0039 {
0040
0041 dst_file = string("data/DST_physics_intt-00050889_no_hot_FPHX_BCO_") + to_string(fphx_bco) + ".root";
0042 in->fileopen( dst_file );
0043 }
0044 else if( run_num == 50377 )
0045 {
0046 cout << "DST list: " << list << endl;
0047 in->AddListFile( list );
0048 }
0049
0050 se->registerInputManager(in);
0051
0052 InttXYVertexFinder* intt_xy = new InttXYVertexFinder();
0053
0054 intt_xy->EnableQA( true );
0055 intt_xy->SetBeamCenter(-0.0188185, 0.198181);
0056
0057
0058 InttZVertexFinder* intt_z = new InttZVertexFinder();
0059 intt_z->SetOutDirectory( "./results" );
0060 intt_z->EnableQA( true );
0061 intt_z->SetBeamCenter(-0.0188185, 0.198181);
0062
0063 se->registerSubsystem( intt_z );
0064
0065
0066 MbdReco* mbd_reco = new MbdReco();
0067 se->registerSubsystem( mbd_reco );
0068
0069 GlobalVertexReco* global_vertex = new GlobalVertexReco();
0070 se->registerSubsystem( global_vertex );
0071
0072 string output = "results/InttAna_run" + to_string( run_num );
0073 if( run_num == 50889 )
0074 output += "_FPHX_BCO_" + to_string( fphx_bco );
0075
0076 output += ".root";
0077
0078 InttAna *inttana = new InttAna( "InttAna", output );
0079 inttana->Verbosity( 1 );
0080
0081 se->registerSubsystem( inttana );
0082
0083
0084
0085
0086 int skip_num = 0;
0087 if( run_num == 50889 )
0088 {
0089
0090
0091
0092
0093
0094
0095
0096
0097
0098
0099
0100
0101
0102
0103
0104
0105
0106
0107
0108
0109
0110
0111
0112
0113
0114
0115
0116
0117
0118
0119
0120
0121
0122
0123
0124
0125
0126
0127
0128
0129
0130
0131
0132
0133
0134
0135
0136
0137
0138
0139
0140
0141
0142
0143
0144
0145
0146 }
0147 else if( run_num == 50377 )
0148 {
0149 skip_num = 250 ;
0150 }
0151
0152 se->skip( skip_num );
0153 se->run( event_num );
0154
0155 se->End();
0156 delete se;
0157
0158 return;
0159 }