HowTo use CutManager / work with cuts / etc.




CutManager - the manager which allows you to set/unset cuts on different variables in the EventDisplay.
There are two possible ways to work with it.
The first one is to use root prompt/write .C scripts to set all cuts you need.

To take a look at what cuts are in the current version of the EventDisplay type from the ROOT prompt the following:
root [2] TEdCutManager::Instance()->TCutList()->Print()
you'll see smth. like(in the 4.2.0int2)

TEdCut:  0xc48cab0  TEdTrack::Eta                  Min =         -7 Max =          7
TEdCut:  0xc48cb70  TEdTrack::P                    Min =      0.001 Max = unset     
TEdCut:  0xc48cc30  TEdTrack::Pt                   Min =      0.001 Max = unset     
TEdCut:  0xc48ccf0  TEdTower::Eta                  Min =         -7 Max =          7
TEdCut:  0xc48cdb0  TEdTower::E                    Min =      0.001 Max = unset     
TEdCut:  0xc48ce70  TEdTower::Et                   Min =      0.001 Max = unset     
TEdCut:  0xc48cef0  TEdTrack::Chi2                 Min = unset      Max = unset     
TEdCut:  0xc48cfb0  TEdTrack::Phi0                 Min = unset      Max = unset     
TEdCut:  0xc48d070  TEdTrack::D0                   Min = unset      Max = unset     
TEdCut:  0xc48d130  TEdTrack::Z0                   Min = unset      Max = unset     
TEdCut:  0xc48d1f0  TEdCdfTrack::Chi2Si            Min = unset      Max = unset     
TEdCut:  0xc48d2b0  TEdCdfTrack::NumSiHits         Min = unset      Max = unset     
TEdCut:  0xc48d370  TEdCdfTrack::NumSiHitsPhi      Min = unset      Max = unset     
TEdCut:  0xc48d430  TEdCdfTrack::NumSiHitsSt       Min = unset      Max = unset     
TEdCut:  0xc48d4f0  TEdCdfTrack::NumSiHitsZ        Min = unset      Max = unset     
TEdCut:  0xc48d5b0  TEdMuonHit::DriftD             Min =          0 Max =         10
TEdCut:  0xc48d630  TEdCotHit::T0                  Value =        0
TEdCut:  0xc48d6b0  TEdCotHit::LE                  Min =          0 Max =       2047
TEdCut:  0xc48d730  TEdCotHit::HitCor              Value =        0
TEdCut:  0xc48d7f0  TEdSiHit::Q                    Min = unset      Max = unset     

As an example let us set "TEdSiHit::Q" cut.
Open CotDisplay to make sure it works.
TEdCut* sihitQ = TEdCutManager::Instance()->Cut("TEdSiHit::Q");
sihitQ->SetRange(10,100);
TEdManager::Instance()->UpdatePads();

So we'll see Silicon hits only with Q from 10 to 100.
Try to type this command:
TEdManager::Instance()->ManagerWindow()->OpenSlider("TEdSiHit::Q");
Set TEdSiHit::Q and press "ok".

Try to type this command:
TEdCutManager::Instance()->GUICutManager("test",0);
You may set any cuts from this menu.

Another way is to use _only_ GUI, what means you don't need to type anything from the command prompt.
If you want to set any cuts for CdfTracks, do the following:

1. Press "Track" button from the "Select Buttons" group,
2. Then click with right mouse button one of the CdfTracks, you'll see pop-up menu
3. Choose CutManager

then
4. Choose cut you want to set
5. Set it using slider or text fields

Feedback is really welcome.
Write to me about what cuts do you need in the EventDisplay.

Here is some information for contributors and all those who want to know more.





Last modified December 10, 2001 by Andrei Loginov(loginov@fnal.gov)