atmo_configure_common.h File Reference

Go to the source code of this file.

Functions

void atmo_configure_common (JobCPath &ana, TString fname)

Function Documentation

void atmo_configure_common ( JobCPath ana,
TString  fname 
)

Definition at line 1 of file Dogwood/headers/atmo/atmo_configure_common.h.

References AlgHandle::GetAlgConfig(), AlgFactory::GetAlgHandle(), AlgFactory::GetInstance(), Registry::LockKeys(), Registry::LockValues(), JobCPath::Mod(), AlgFactory::Register(), JobCModule::Report(), Registry::Set(), JobCModule::Set(), and Registry::UnLockValues().

Referenced by atmo_configure_data(), and atmo_configure_mc().

00002 {
00003   //Create AlgFactory
00004   AlgFactory &af = AlgFactory::GetInstance();
00005 
00006   // configure DigitListModule
00007   JobCModule& diglist = ana.Mod("DigitListModule");
00008   diglist.Set("ListsToMake=1");
00009   diglist.Report();
00010 
00011   // configure FilterDigitListModule
00012   af.Register("AlgFilterDigitListAB", "default");
00013   AlgHandle ahf = af.GetAlgHandle("AlgFilterDigitListAB", "default");
00014   AlgConfig &acf = ahf.GetAlgConfig();
00015   acf.UnLockValues();
00016   acf.Set("PlaneWindow", 10);
00017   acf.Set("PreTrigWindow", 50.0);
00018   acf.Set("PostTrigWindow", 500.0);
00019   acf.LockValues();
00020   acf.LockKeys();
00021 
00022   JobCModule& filtdig = ana.Mod("FilterDigitListModule");
00023   filtdig.Set("FilterDigitListAlgorithm=AlgFilterDigitListAB");
00024   filtdig.Set("NameListOut=filterdigitlist");
00025   filtdig.Report();
00026 
00027   // configure DeMuxDigitListModule
00028   af.Register("AlgDeMuxDigitList", "devel");
00029   AlgHandle ahd = af.GetAlgHandle("AlgDeMuxDigitList", "devel");
00030   AlgConfig &acd = ahd.GetAlgConfig();
00031   acd.UnLockValues();
00032   acd.Set("DeMuxAlgorithm", "AlgAltDeMux");
00033   acd.Set("DeMuxAlgConfig", "default");
00034   acd.LockValues();
00035   acd.LockKeys();
00036 
00037   JobCModule& demux = ana.Mod("DeMuxDigitListModule");
00038   demux.Set("DeMuxDigitListAlgConfig=devel");
00039   demux.Set("NameListIn=filterdigitlist");
00040   demux.Set("NameListOut=demuxdigitlist");
00041   demux.Report();
00042 
00043   // configure FarDetStripListModule
00044   JobCModule& striplist = ana.Mod("FarDetStripListModule");
00045   striplist.Set("RemoveCrossTalk=1");
00046   striplist.Set("ListIn=demuxdigitlist");
00047   striplist.Set("ListOut=striplist");
00048   striplist.Report();
00049 
00050   // configure FarDetSliceListModule
00051   JobCModule& slicelist = ana.Mod("FarDetSliceListModule");
00052   slicelist.Set("FilterOnOff=0");
00053   slicelist.Set("FilterFC=1");
00054   slicelist.Set("FilterPC=1");
00055   slicelist.Set("ListIn=striplist");
00056   slicelist.Set("ListOut=slicelist");
00057   slicelist.Report();
00058 
00059   // configure TrackCamListModule
00060   JobCModule& trackcam = ana.Mod("TrackCamListModule");
00061   trackcam.Set("NameListIn=slicelist");
00062   trackcam.Set("NameListOut=atnutracklist");
00063   trackcam.Set("TrackListAlgConfig=Cosmic");
00064   trackcam.Report();
00065 
00066   // configure FitTrackCamListModule
00067   JobCModule& fittrackcam = ana.Mod("FitTrackCamListModule");
00068   fittrackcam.Set("NameListIn=atnutracklist");
00069   fittrackcam.Set("NameListOut=atnufitlist");
00070   fittrackcam.Report();
00071 
00072   // configure AtmosShowerListModule
00073   JobCModule& shower = ana.Mod("AtmosShowerListModule");
00074   shower.Set("NameListIn=slicelist");
00075   shower.Set("NameTrackListIn=atnufitlist");
00076   shower.Set("NameListOut=atnushowerlist");
00077   shower.Report();
00078 
00079   // configure FarDetEventModule
00080   JobCModule& event = ana.Mod("FarDetEventModule");
00081   event.Set("ListInStrp=striplist");
00082   event.Set("ListInTrk=atnutracklist");
00083   event.Set("ListInShw=atnushowerlist");
00084   event.Set("ListInFit=atnufitlist");
00085   event.Report();
00086 
00087   // configure NtpMaker
00088   JobCModule& ntpmaker = ana.Mod("NtpMaker");
00089   ntpmaker.Set("NtpFileName="+fname);
00090   ntpmaker.Report();
00091 }


Generated on 24 Jul 2018 for loon by  doxygen 1.6.1