Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2025-04-15 22:41:37

0001 #include "L1Trigger/DTTriggerPhase2/interface/ShowerCandidate.h"
0002 
0003 #include <cmath>
0004 #include <iostream>
0005 #include <memory>
0006 
0007 using namespace cmsdt;
0008 
0009 ShowerCandidate::ShowerCandidate() { clear(); }
0010 
0011 ShowerCandidate& ShowerCandidate::operator=(const ShowerCandidate& other) {
0012   if (this != &other) {
0013     nhits_ = other.nhits_;
0014     rawId_ = other.rawId_;
0015     bx_ = other.bx_;
0016     wmin_ = other.wmin_;
0017     wmax_ = other.wmax_;
0018     avgPos_ = other.avgPos_;
0019     avgTime_ = other.avgTime_;
0020     shower_flag_ = other.shower_flag_;
0021   }
0022   return *this;
0023 }
0024 
0025 void ShowerCandidate::clear() {
0026   nhits_ = 0;
0027   bx_ = 0;
0028   wmin_ = 0;
0029   wmax_ = 0;
0030   avgPos_ = 0;
0031   avgTime_ = 0;
0032   shower_flag_ = false;
0033   wires_profile_.resize(96, 0);
0034 }