Go to the source code of this file.
Functions | |
| int | LoadLibraries () |
| int | GetRunNumber () |
| void | Set_TSQL_Override () |
| void | SetCalibrator () |
| void | SetCandOutputWithBNtp (JobCModule &jcm, TString file) |
| void | SetCandOutputNoBNtp (JobCModule &jcm, TString file) |
| void | SetNtpStOutputWithBNtp (JobCModule &jcm, TString file) |
| void | SetNtpStOutputNoBNtp (JobCModule &jcm, TString file) |
| void | SetMSGLevels (JobC &jc) |
|
|
Definition at line 1 of file getrunnumber.h. References JobCEnv::GetFileName(), JobCEnv::Instance(), and run(). 00001 {
00003 //Get the run number from the Input file name
00004 //Allows us to set the name of the dst file
00005 JobCEnv& jce = JobCEnv::Instance();
00006 string filename = jce.GetFileName(0);
00007 string rnumstring = filename.substr(filename.find_last_of("_")-8,8);
00008 int run = atoi(rnumstring.c_str());
00009 // string srnstring = filename.substr(filename.find_last_of("_")+1,4);
00010 return run;
00011 }
|
|
|
Definition at line 2 of file loadlib.h. References gSystem(). 00003 {
00004
00005 // Link dynamic libraries
00006 gSystem->Load("libDataUtil");
00007 gSystem->Load("libRecoBase");
00008 gSystem->Load("libNoiseFilter");
00009 gSystem->Load("libFilterDigitSR");
00010 gSystem->Load("libBField");
00011 gSystem->Load("libGeoGeometry");
00012 gSystem->Load("libNumericalMethods");
00013 gSystem->Load("libSwimmer");
00014 gSystem->Load("libDeMux");
00015 gSystem->Load("libCandStripSR");
00016 gSystem->Load("libCandSliceSR");
00017 gSystem->Load("libCandChop");
00018 gSystem->Load("libCandTrackSR");
00019 gSystem->Load("libCandTrackCam");
00020 gSystem->Load("libCandClusterSR");
00021 gSystem->Load("libCandSubShowerSR");
00022 gSystem->Load("libCandShowerSR");
00023 gSystem->Load("libCandFitTrackSR");
00024 gSystem->Load("libCandFitTrackCam");
00025 gSystem->Load("libCandEventSR");
00026 gSystem->Load("libVertexFinder");
00027 gSystem->Load("libTimeCalibratorSR");
00028 gSystem->Load("libAstroUtil");
00029
00030 gSystem->Load("libDcsUser");
00031 gSystem->Load("libCandMorgue");
00032
00033 gSystem->Load("libCandNtupleSR");
00034 gSystem->Load("libMCNtuple");
00035 gSystem->Load("libTruthHelperNtuple");
00036 gSystem->Load("libStandardNtuple");
00037 gSystem->Load("libPhotonTransport");
00038 gSystem->Load("libDetSim");
00039 gSystem->Load("libMCNtupleModule");
00040 gSystem->Load("libCandNtupleSRModule");
00041 gSystem->Load("libTruthHelperNtupleModule");
00042 gSystem->Load("libStandardNtupleModule");
00043 gSystem->Load("libBeamDataNtuple");
00044 gSystem->Load("libBeamDataAnaSummary.so");
00045 gSystem->Load("libBeamDataUtil.so");
00046
00047 gSystem->Load("libSpillTiming.so");
00048 gSystem->Load("libCandShield");
00049 gSystem->Load("libAltDeMux");
00050 gSystem->Load("libFiltration");
00051 }
|
|
|
Definition at line 1 of file set_tsql.h. References JobCEnv::GetFileName(), gSystem(), and JobCEnv::Instance(). 00002 {
00003 // decide whether to flip bfield ... based on file name
00004 JobCEnv& jce = JobCEnv::Instance();
00005 std::string filename = gSystem->BaseName(jce.GetFileName(0));
00006 cout << endl << "processing file: " << filename << endl;
00007
00008 const char* tmppth = gSystem->Getenv("ASCII_DB_PATH");
00009 if ( ! tmppth ) tmppth =
00010 "$SRT_PUBLIC_CONTEXT/Production/asciidb/cedar_daikon";
00011 std::string asciidbpath = gSystem->ExpandPathName(tmppth);
00012
00013
00014 std::string asciidbset = "";
00015
00016 // automagically switch direction of reverse field running
00017 // reversed field daikon files are n1tb2rrrr or f2tb2rrrr
00018 // the "2" before the run # is the relevant flag
00019 char bfield_dirchar = filename[4];
00020 if ( bfield_dirchar == '2' ) {
00021 asciidbset = "brev";
00022 cout << "Override BField (reverse) based on filename." << endl << endl;
00023 }
00024
00025 // set the asciidbset if the env variable is set ... even if the
00026 // file name indicates we should use "brev"
00027 const char* tmpset = gSystem->Getenv("ASCII_DB_SET");
00028 if ( tmpset ) {
00029 asciidbset = tmpset;
00030 cout << "Select ASCII DB set \"" << asciidbset
00031 << "\" based on ASCII_DB_SET." << endl << endl;
00032 }
00033
00034 // only if an asciidbset has been chosen do we use add to the URL
00035 if ( asciidbset != "" ) {
00036 std::string tsql_url_orig = gSystem->Getenv("ENV_TSQL_URL");
00037 std::string first_url = tsql_url_orig.substr(0,tsql_url_orig.find(";"));
00038 std::string base_url = first_url.substr(0,first_url.find_last_of("/"));
00039 // assume "temp" DB follows the first URL structure
00040 std::string tsql_url_add = base_url +
00041 "/temp#" + asciidbpath + "/" + asciidbset + "/catalogue.db";
00042
00043 std::string tsql_whole = tsql_url_add + ";" + tsql_url_orig;
00044 gSystem->Setenv("ENV_TSQL_URL",tsql_whole.c_str());
00045 }
00046
00047 }
|
|
|
Definition at line 2 of file setcalibrator.h. References Calibrator::Instance(), CfgPromptConfigurable::Set(), and Calibrator::StripCalibrator(). 00003 {
00004 Calibrator& cal = Calibrator::Instance();
00005 cal.Set("TimeCalibrator", "SimpleCalScheme");
00006 //PeCalibrator changed April 23,2007
00007 cal.Set("PeCalibrator", "PEGainAggCalScheme");
00008 //cal.Set("PeCalibrator", "PEGainCalScheme");
00009 cal.Set("VALinCalibrator","SimpleCalScheme");
00010 cal.Set("DriftCalibrator","MuonDriftCalScheme");
00011 cal.Set("LinCalibrator", "QuadLinearityCalScheme");
00012 cal.Set("StripCalibrator","StripToStripCalScheme");
00013 cal.Set("AttenCalibrator","StripAttenCalScheme");
00014 cal.Set("MIPCalibrator", "MIPCalScheme");
00015 cal.Set("Thermometer", "TemperatureCalScheme");
00016 //SpectrometerFudge added April 23,2007
00017 //this should be removed after database entry is updated
00018 Calibrator::StripCalibrator().Set("SpectrometerFudge=1.16");
00019
00020
00021 }
|
|
||||||||||||
|
Definition at line 9 of file setoutput.h. References JobCModule::Cmd(), and JobCModule::Set(). 00009 {
00010
00011 jcm.Cmd("DefineStream Config ConfigRecord");
00012 jcm.Set("Streams=SimSnarl,Cand,Config,DaqSnarl");
00013 jcm.Set("FileName="+file);
00014 }
|
|
||||||||||||
|
Definition at line 1 of file setoutput.h. References JobCModule::Cmd(), and JobCModule::Set(). 00001 {
00002
00003 jcm.Cmd("DefineStream Config ConfigRecord");
00004 jcm.Cmd("DefineStream NtpBDLite NtpBDLiteRecord");
00005 jcm.Set("Streams=NtpBDLite,Cand,Config,DaqSnarl");
00006 jcm.Set("FileName="+file);
00007 }
|
|
|
Definition at line 2 of file setmessagelevel.h. References jc, JobC::Msg, and JobCMsgModule::SetLevel(). 00002 {
00003 //Configure the message service
00004 jc.Msg.SetLevel("FitTrackCamListModule","Error");
00005 jc.Msg.SetLevel("Cand","Error");
00006 jc.Msg.SetLevel("Calibrator","Fatal");
00007 jc.Msg.SetLevel("Dbi","Fatal");
00008 jc.Msg.SetLevel("Plex","Error");
00009 jc.Msg.SetLevel("AlgShowerSS", "Warning");
00010 jc.Msg.SetLevel("SubShowerSR","Error");
00011 jc.Msg.SetLevel("AlgFitTrackSR","Warning");
00012
00013 jc.Msg.SetLevel("DataQuality", "Warning");
00014
00015 }
|
|
||||||||||||
|
Definition at line 23 of file setoutput.h. References JobCModule::Cmd(), and JobCModule::Set(). 00023 {
00024 jcm.Cmd("DefineStream NtpSt NtpStRecord");
00025 jcm.Set("Streams=NtpSt");
00026 jcm.Set("FileName="+file);
00027 }
|
|
||||||||||||
|
Definition at line 16 of file setoutput.h. References JobCModule::Cmd(), and JobCModule::Set(). 00016 {
00017 jcm.Cmd("DefineStream NtpSt NtpStRecord");
00018 jcm.Cmd("DefineStream NtpBDLite NtpBDLiteRecord");
00019 jcm.Set("Streams=NtpBDLite,NtpSt");
00020 jcm.Set("FileName="+file);
00021 }
|
1.3.9.1