-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from project8/develop
Develop
- Loading branch information
Showing
31 changed files
with
1,203 additions
and
513 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{ | ||
"generators": | ||
[ | ||
"fake-track", | ||
"lpf-fft", | ||
"decimate-signal", | ||
"gaussian-noise", | ||
"digitizer" | ||
], | ||
|
||
"fake-track": | ||
{ | ||
"signal-power": 1.0e-15, | ||
"start-frequency": 20.05e9, | ||
"start-vphase": 0.0, | ||
"slope": 0.6, | ||
"start-time": 0.001, | ||
"end-time": 0.005, | ||
"lo-frequency": 20.0e9 | ||
}, | ||
|
||
"simulation": | ||
{ | ||
"egg-filename": "/home/penny/locust_mc/cbuild/bin/locust_mc.egg", | ||
"n-records": 1, | ||
"n-channels": 1, | ||
"record-size": 1228800 | ||
}, | ||
|
||
"gaussian-noise": | ||
{ | ||
"noise-floor": 4.0e-21, | ||
"domain": "time" | ||
}, | ||
|
||
"digitizer": | ||
{ | ||
"v-range": 1.0e-5, | ||
"v-offset": -0.5e-5 | ||
} | ||
|
||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* | ||
* LMCChannel.cc | ||
* | ||
* Created on: Mar 5, 2018 | ||
* Author: nbuzinsky | ||
*/ | ||
|
||
#include "LMCReceiver.hh" | ||
#include "LMCChannel.hh" | ||
|
||
#include <numeric> | ||
|
||
namespace locust | ||
{ | ||
|
||
//Use lambda to add all of GetVoltages() from all receiver elements | ||
template< class T> | ||
double Channel<T>::PhasedSum() | ||
{ | ||
return std::accumulate(receiverElements.begin(), receiverElements.end(), 0, | ||
[](double s ,T r) {return s + r->GetVoltage();}); | ||
} | ||
|
||
} /* namespace locust */ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* | ||
* LMCChannel.hh | ||
* | ||
* Created on: Mar 1, 2018 | ||
* Author: nbuzinsky | ||
*/ | ||
|
||
#ifndef LMCCHANNEL_HH_ | ||
#define LMCCHANNEL_HH_ | ||
#include <vector> | ||
|
||
namespace locust | ||
{ | ||
/*! | ||
@class Channel | ||
@author N. Buzinsky | ||
@brief Used to conveniently group multiple receivers into a channel/ and do phased sum | ||
@details | ||
Available configuration options: | ||
No input parameters | ||
*/ | ||
template <class T> | ||
class Channel | ||
{ | ||
public: | ||
|
||
double PhasedSum(); | ||
void AddReceiver(const T receiver){receiverElements.push_back(receiver);} | ||
|
||
T& operator[] (const int &index) {return receiverElements[index];} | ||
std::size_t size() {return receiverElements.size();} | ||
|
||
private: | ||
std::vector<T> receiverElements; //Best way to add receivers w/o object slicing? | ||
|
||
}; | ||
|
||
|
||
} /* namespace locust */ | ||
|
||
#endif /* LMCCHANNEL_HH_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.