00001 #ifndef ANP_FILLFLUX_H 00002 #define ANP_FILLFLUX_H 00003 00004 // 00005 // $Id: FillFlux.h,v 1.3 2008/03/13 15:58:53 rustem Exp $ 00006 // 00007 // Apply beam flux weights from beam fit. 00008 // 00009 00010 // MINOS 00011 #include "Conventions/BeamType.h" 00012 00013 // Local 00014 #include "PhysicsNtuple/AlgSnarl.h" 00015 00016 class SKZPWeightCalculator; 00017 00018 namespace Anp 00019 { 00020 class FillFlux : public AlgSnarl 00021 { 00022 public: 00023 00024 FillFlux(); 00025 virtual ~FillFlux(); 00026 00027 bool Run(Record &record); 00028 00029 void Config(const Registry ®); 00030 00031 bool Init(const Header &); 00032 00033 void End(const DataBlock &); 00034 00035 private: 00036 00037 bool Fill(Truth &truth, const Record &record, const BeamType::BeamType_t beamtype); 00038 bool Fill(Event &event, const Record &record, const BeamType::BeamType_t beamtype); 00039 00040 private: 00041 00042 std::string fName; 00043 std::string fFLUX; 00044 std::string fRUNCYCLE; 00045 00046 bool fFluxDet; 00047 int fNSigma; 00048 00049 SKZPWeightCalculator *fCalc; 00050 }; 00051 } 00052 00053 #endif 00054 00055
1.3.9.1