MINOS Batch Group

CandChop Documentation

The CandChop package was created by Nathaniel Tagg. It was validated for far detector usage against R1-18-2 software in February of 2006. It is part of the Cedar production for the Far Detector Only. The CandChop package may only be used after R1-18-3 in the NearDetector.

The settings are the very different between detectors, although the same across data taking types (beam verses spill).

For all scripts it is necessary to load the CandChop library:
gSystem->Load("libCandChop");

Warning! It has been observed in the past that the code may still run without the library linked, this results in meaningless output.

Settings for the Far Detector

Reco path under Birch Processing:
"DigitListModule::Get "
"DigitListModule::Reco "
"DeMuxDigitListModule::Reco "
"StripSRListModule::Reco "
"SliceSRListModule::Reco "
"TrackSRListModule::Reco "

Reco path using CandChop
"DigitListModule::Get "
"DigitListModule::Reco "
"ChopModule::Reco "
"BiggestChopModule::Reco "
"DeMuxDigitListModule::Reco "
"StripSRListModule::Reco "
"SliceSRListModule::Reco "
"TrackSRListModule::Reco "

Settings for the CandChop Package
jc.Path("Reco").Mod("ChopModule").Set("ChopAlgorithm=AlgChopListFar");

JobCModule& bigChopMod = jc.Path("Reco").Mod("BiggestChopModule");
bigChopMod.Set("MinEnergy=0.0"); //No cut.
bigChopMod.Set("OmitLiEvents=1"); //kill LI
bigChopMod.Set("LiVetoWindowLow=-1.0e-6");
bigChopMod.Set("LiVetoWindowLow=31.0e-6");

Additional Notes

The slicer also needs to be set to pass all, by default this is currently done (R1-23 and later) for the FarBeam. If this setting needs to be changed you can use a snippet of code similar to this (be sure to unlock the keys though or the setting won't be applied):


AlgFactory &af = AlgFactory::GetInstance();
AlgHandle alh = af.GetAlgHandle("AlgSlicerSRList", "FarBeam");
AlgConfig &alg = alh.GetAlgConfig();
al.Set("PassAll",1); //Run No Slicer


Settings for the Near Detector

Reco path under Birch Processing:
"DigitListModule::Get "
"DigitListModule::Reco "
"StripSRListModule::Reco "
"SliceSRListModule::Reco "
"TrackSRListModule::Reco "

Settings for the CandChop Package
"DigitListModule::Get "
"DigitListModule::Reco "
"ChopModule::Reco "
"SliceFromChopModule::Reco "
"TrackSRListModule::Reco "

Settings for the CandChop Package
jc.Path("Reco").Mod("ChopModule").Set("ChopAlgorithm=AlgChopListSharp2");


Example CandChop scripts
CandChop was used in the Cedar Far Detector files which may be found on the Cedar page.

The following scripts were created during CandChop testing and validation.
The CandChop package has been developed by Nathaniel Tagg as a new approach to recovering low eneregy events and slicing in both detectors. The underlying algorithm is very different though for the two detectors. Please see the CandChop script configuration page for a full discussion of what modifications were necessary. For testing purposes the following files were creates:
Far MC Production with Chopping
Near MC Production with Chopping
Far Cosmic Data Production with Chopping
Near Cosmic Data Production with Chopping
Far Spill Data Production with Chopping
Near MC Production with Chopping

These scripts are equivalent to the R1-18-2/Birch production scripts with the only modifications being the addition of the CandChop. Testing of these scripts took place in R1.18.2 for the far detector scripts and in R1-18-3 (equivalent to R1-18-2 with a backport to CandChop) for the Near Detector files.