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 Munits::ampere, VldTimeStamp::GetEOT(), SimFlag::kData, Detector::kFar, Detector::kNear, Registry::LockValues(), Munits::mm, Munits::s, Registry::Set(), Registry::UnLockValues(), and BMCutsFiller::Write().

00021 {
00022 
00023   //Make some registry
00024  
00025     Registry r;
00026     r.UnLockValues();
00027     r.Set("TimeDiffMax", 1.0*Munits::s);
00028     
00029     r.Set("PosTgtXMin",0.01*Munits::mm);
00030     r.Set("PosTgtXMax",2.01*Munits::mm);
00031 
00032     r.Set("PosTgtYMin",0.01*Munits::mm);
00033     r.Set("PosTgtYMax",2.00*Munits::mm);
00034     
00035     r.Set("WidXMin",0.57*Munits::mm);
00036     r.Set("WidXMax",1.58*Munits::mm);
00037     
00038     r.Set("WidYMin",0.57*Munits::mm);
00039     r.Set("WidYMax",1.58*Munits::mm);
00040     
00041     r.Set("UseSpotSizeCut",0); //=0, make no cuts on the beam spot
00042 
00043     r.Set("UseProfMonOut",1);
00044     
00045     r.Set("TorIntMin",0.50);
00046     r.Set("TorIntMax",55.0);
00047     
00048     r.Set("HornCurMin",-2.02e5*Munits::ampere);
00049     r.Set("HornCurMax",-1.75e5*Munits::ampere); 
00050 
00051     
00052     r.Set("TargetIn",1);
00053     //r.Set("TargetIn",-1); //use if target is out
00054     r.Set("BeamType",-1);
00055     
00056     r.LockValues();
00057 
00058     // Transform registry to a string
00059     //BeamMonCutsStream bmcs;
00060     //bmcs<<&r;
00061     
00062     BeamMonCuts bmc(&r);
00063 
00064     // write it out
00065     BMCutsFiller bmcfill(bmc);
00066     // For other cuts that will not be used for standard analysis,
00067     // like special beam studies using more restrictive cuts, you can
00068     // replace the previous line with:
00069     //
00070     // BMCutsFiller bmcfill(bmc,1);   // task number 1
00071     //
00072     // or just uncomment the following line:
00073     //
00074     // bmcfill.SetCutsSet(1)
00075    
00076     // VldTimeStamp beg(VldTimeStamp::GetBOT());
00077     //VldTimeStamp beg(2007,07,17,21,34,0);
00078     //VldTimeStamp beg(2008,11,15,12,44,0);
00079     //VldTimeStamp beg(2009,04,03,13,29,32);
00080     //VldTimeStamp beg(2009,04,13,07,18,52);
00081     //VldTimeStamp beg(2009,04,19,16,35,38);
00082     //VldTimeStamp beg(2010,05,06,21,30,00);
00083     //VldTimeStamp beg(2010,05,12,17,00,00);
00084     //VldTimeStamp beg(2010,8,22,19,00,00);
00085     //VldTimeStamp beg(2011,4,18,18,9,37);
00086     // VldTimeStamp beg(2011,5,2,14,59,14);
00087     VldTimeStamp beg (2013,8,1,00,00,00);
00088 
00089     VldTimeStamp end(VldTimeStamp::GetEOT());
00090 
00091     //VldTimeStamp end(2008,11,17,13,19,0);
00092     //VldTimeStamp end(2009,04,06,23,19,30);
00093     //VldTimeStamp end(2009,04,13,16,12,8);
00094     //VldTimeStamp end(2009,04,19,16,31,13);
00095     //VldTimeStamp end(2009,04,19,16,40,25);
00096     //VldTimeStamp end(2010,05,12,17,00,00);
00097     
00098     VldRange range(Detector::kNear|Detector::kFar,SimFlag::kData,
00099                    beg,end,"Beam");
00100 
00101     // using local seq no
00102     //    bmcfill.Write(range,"testing BeamMonCuts filling",1);
00103     bmcfill.Write(range,"Update BeamMonCuts",0);
00104 }


The documentation for this class was generated from the following files:

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1