BMCutsFiller Class Reference
[BeamDataDbi]

Write BeamMonCuts to database. More...

#include <BMCutsFiller.h>

List of all members.

Public Member Functions

 BMCutsFiller (BeamMonCuts &bmcuts, Dbi::Task cutset=0)
 ~BMCutsFiller ()
BeamMonCutsGetBeamMonCuts ()
void SetBeamMonCuts (const BeamMonCuts &bmcuts)
void SetCutsSet (const Dbi::Task cutset)
Bool_t Write (VldRange range, const std::string &logComment, Bool_t localTest)
 Write beam mon cuts to the database.

Private Attributes

BeamMonCuts fBMCuts
 Then DbiTableRow that holds the beam monitoring cuts.
Dbi::Task fBMCutsSet

Detailed Description

Write BeamMonCuts to database.

Author:
(last to touch it)
Author
mdier
Version:
Revision
1.2
Date:
Date
2007/01/26 20:42:09

Contact: mdier@bnl.gov

Created on: Fri Nov 17 11:16:53 2006

Id
BMCutsFiller.h,v 1.2 2007/01/26 20:42:09 mdier Exp

Definition at line 33 of file BMCutsFiller.h.


Constructor & Destructor Documentation

BMCutsFiller::BMCutsFiller ( BeamMonCuts bmcuts,
Dbi::Task  cutset = 0 
)

Definition at line 13 of file BMCutsFiller.cxx.

00014     : fBMCuts(bmcuts), fBMCutsSet(cutset)
00015 {}

BMCutsFiller::~BMCutsFiller (  ) 

Definition at line 17 of file BMCutsFiller.cxx.

00018 {}


Member Function Documentation

BeamMonCuts& BMCutsFiller::GetBeamMonCuts (  )  [inline]

Definition at line 41 of file BMCutsFiller.h.

References fBMCuts.

00041 {return fBMCuts;};

void BMCutsFiller::SetBeamMonCuts ( const BeamMonCuts bmcuts  )  [inline]

Definition at line 42 of file BMCutsFiller.h.

References fBMCuts.

00042 {fBMCuts = bmcuts;};

void BMCutsFiller::SetCutsSet ( const Dbi::Task  cutset  )  [inline]

Definition at line 43 of file BMCutsFiller.h.

References fBMCutsSet.

00043 {fBMCutsSet = cutset;};

Bool_t BMCutsFiller::Write ( VldRange  range,
const std::string &  logComment,
Bool_t  localTest 
)

Write beam mon cuts to the database.

Definition at line 20 of file BMCutsFiller.cxx.

References DbiWriter< T >::Close(), fBMCuts, fBMCutsSet, and DbiWriter< T >::SetRequireGlobalSeqno().

Referenced by TestBMCutsFiller::RunIt().

00023 {    
00024     int requireGlobal = localTest ? -1 : 1;
00025 
00026     VldTimeStamp now;
00027     //cout << now << endl;
00028     DbiWriter<BeamMonCuts> writer(range,-1,fBMCutsSet,now,0,logComment);
00029     writer.SetRequireGlobalSeqno(requireGlobal);
00030     //writer.SetOverlayCreationDate();
00031     writer << fBMCuts;
00032     return writer.Close();   
00033 }


Member Data Documentation

Then DbiTableRow that holds the beam monitoring cuts.

Definition at line 52 of file BMCutsFiller.h.

Referenced by GetBeamMonCuts(), SetBeamMonCuts(), and Write().

The set associated to the cuts: 0: Analysis cuts (default) 1-?: Beam study cuts

Definition at line 56 of file BMCutsFiller.h.

Referenced by SetCutsSet(), and Write().


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

Generated on 2 Nov 2017 for loon by  doxygen 1.6.1