Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:19:47

0001 #include "L1Trigger/DTTriggerPhase2/interface/MPFilter.h"
0002 
0003 using namespace edm;
0004 using namespace std;
0005 
0006 // ============================================================================
0007 // Constructors and destructor
0008 // ============================================================================
0009 MPFilter::MPFilter(const ParameterSet& pset) : debug_(pset.getUntrackedParameter<bool>("debug")) {
0010   // Obtention of parameters
0011   int wh, st, se, maxdrift;
0012   maxdrift_filename_ = pset.getParameter<edm::FileInPath>("maxdrift_filename");
0013   std::ifstream ifind(maxdrift_filename_.fullPath());
0014   if (ifind.fail()) {
0015     throw cms::Exception("Missing Input File")
0016         << "MPSLFilter::MPSLFilter() -  Cannot find " << maxdrift_filename_.fullPath();
0017   }
0018   while (ifind.good()) {
0019     ifind >> wh >> st >> se >> maxdrift;
0020     maxdriftinfo_[wh][st][se] = maxdrift;
0021   }
0022 }
0023 
0024 MPFilter::~MPFilter() {}