Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

NuCutImps::CCAPresel Class Reference

#include <NuCutImps.h>

Inheritance diagram for NuCutImps::CCAPresel:

NuCut List of all members.

Public Member Functions

 CCAPresel (const NuPlots *plots=0)
void Preselection (const NuEvent &nu)
void Selection (const NuEvent &nu)

Constructor & Destructor Documentation

NuCutImps::CCAPresel::CCAPresel const NuPlots plots = 0  ) 
 

Definition at line 392 of file NuCutImps.cxx.

References plots().

00392                                            : 
00393     NuCut("CCAPresel", plots)
00394   {
00395 
00396   }


Member Function Documentation

void NuCutImps::CCAPresel::Preselection const NuEvent nu  )  [virtual]
 

Implements NuCut.

Definition at line 399 of file NuCutImps.cxx.

References NuEvent::coilIsOk, NuCut::Cut_If(), NuEvent::cutOnDataQuality, NuEvent::goodBeamSntp, NuEvent::isLI, NuCut::Keep_Data_If(), and NuEvent::litime.

00400   {
00401     // IsGoodBeamDetPOTCountingStage
00402     // This can mess up POT counting apparently, so be careful!
00403     Keep_Data_If(nu.goodBeamSntp && nu.coilIsOk, nu, "GoodBeamDetPOTCounting");
00404     
00405     // Is the coil okay? Only cut if we have the cutOnDataQuality flag
00406     // This seems to be redundant with the GoodBeamDetPOT, but this is what
00407     // seems to have been implemented.
00408     Keep_Data_If(nu.coilIsOk || !nu.cutOnDataQuality, nu, "CoilIsOkay");
00409 
00410     // Filter out LI events
00411     Cut_If(nu.isLI || nu.litime != -1, "IsLI");    
00412   
00413     // Cut on good beam (IsGoodBeam)
00414     Keep_Data_If(CC0325Std::IsGoodBeam(nu) || !nu.cutOnBeamInfo, nu, "IsGoodBeam");
00415     
00416     // Per-detector cuts
00417     if (nu.detector == Detector::kFar)
00418     {
00419       // Data Quality
00420       Keep_Data_If(nu.isGoodDataQuality || !nu.cutOnDataQuality, nu, "DataQuality");
00421       
00422       // IsGoodTimeToNearestSpill
00423       // Use the improved JJE cut here
00424       Keep_Data_If(NuCuts::GoodTimeToNearestSpill(nu, -2, +12) || !nu.cutOnSpillTiming, nu, "SpillTime");
00425     
00426     }
00427     else if (nu.detector == Detector::kNear)
00428     {
00429       // Cut on the coil current
00430       Keep_Data_If(nu.coilCurrent < -1000 || !nu.cutOnDataQuality, nu, "CoilCurrent");
00431       
00432     } // End of per-detector cuts    
00433   }

void NuCutImps::CCAPresel::Selection const NuEvent nu  )  [virtual]
 

Implements NuCut.

Definition at line 436 of file NuCutImps.cxx.

00437   {
00438     // Since this is a preselection only class, we have no selection
00439   }


The documentation for this class was generated from the following files:
Generated on Mon Feb 15 11:10:39 2010 for loon by  doxygen 1.3.9.1