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

TestBMCutsFiller Class Reference
[BeamDataDbi]

test the BMCutsFiller class More...

#include <TestBMCutsFiller.h>

List of all members.

Public Member Functions

 TestBMCutsFiller ()
 ~TestBMCutsFiller ()
void RunIt ()


Detailed Description

test the BMCutsFiller class

Author:
(last to touch it)
Author
mdier
Version:
Revision
1.1
Date:
Date
2006/11/20 17:26:16
Contact: mdier@bnl.gov

Created on: Fri Nov 17 16:41:03 2006

Id
TestBMCutsFiller.h,v 1.1 2006/11/20 17:26:16 mdier Exp

Definition at line 26 of file TestBMCutsFiller.h.


Constructor & Destructor Documentation

TestBMCutsFiller::TestBMCutsFiller  ) 
 

Definition at line 13 of file TestBMCutsFiller.cxx.

00014 {}

TestBMCutsFiller::~TestBMCutsFiller  ) 
 

Definition at line 16 of file TestBMCutsFiller.cxx.

00017 {}


Member Function Documentation

void TestBMCutsFiller::RunIt  ) 
 

Definition at line 20 of file TestBMCutsFiller.cxx.

References Registry::LockValues(), Registry::Set(), Registry::UnLockValues(), and BMCutsFiller::Write().

00021 {
00022     // Make some Regisitry
00023 
00024     Registry r;
00025     r.UnLockValues();
00026     r.Set("TimeDiffMax", 1.0*Munits::s);
00027     
00028     r.Set("PosTgtXMin",-2.0*Munits::mm);
00029     r.Set("PosTgtXMax",-0.01*Munits::mm);
00030     
00031     r.Set("PosTgtYMin",0.01*Munits::mm);
00032     r.Set("PosTgtYMax",2.0*Munits::mm);
00033     
00034     r.Set("WidXMin",0.1*Munits::mm);
00035     r.Set("WidXMax",1.5*Munits::mm);
00036     
00037     r.Set("WidYMin",0.1*Munits::mm);
00038     r.Set("WidYMax",2.0*Munits::mm);
00039     
00040     r.Set("UseSpotSizeCut",0);
00041 
00042     r.Set("UseProfMonOut",1);
00043     
00044     r.Set("TorIntMin",30.0);
00045     r.Set("TorIntMax",50.0);
00046     
00047     r.Set("HornCurMin",-2.0e5*Munits::ampere);
00048     r.Set("HornCurMax",-1.55e5*Munits::ampere);
00049     
00050     r.Set("TargetIn",1);
00051     r.Set("BeamType",-1);
00052     
00053     r.LockValues();
00054 
00055     // Transform registry to a string
00056     //BeamMonCutsStream bmcs;
00057     //bmcs<<&r;
00058     
00059     BeamMonCuts bmc(&r);
00060 
00061     // write it out
00062     BMCutsFiller bmcfill(bmc);
00063     // For other cuts that will not be used for standard analysis,
00064     // like special beam studies using more restrictive cuts, you can
00065     // replace the previous line with:
00066     //
00067     // BMCutsFiller bmcfill(bmc,1);   // task number 1
00068     //
00069     // or just uncomment the following line:
00070     //
00071     // bmcfill.SetCutsSet(1)
00072    
00073     // VldTimeStamp beg(VldTimeStamp::GetBOT());
00074     VldTimeStamp beg(2005,9,1,13,55,0);
00075 //    VldTimeStamp end(VldTimeStamp::GetEOT());
00076     VldTimeStamp end(2005,9,1,14,05,0);
00077     
00078     VldRange range(Detector::kNear|Detector::kFar,SimFlag::kData,
00079                    beg,end,"Beam");
00080 
00081     // using local seq no
00082     bmcfill.Write(range,"testing BeamMonCuts filling",1);
00083 }


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