Added an energy resolved current at z = 0;
hardcoded detection region
This commit is contained in:
@@ -52,6 +52,11 @@ class SimulationOutput {
|
||||
std::vector<particle::SerializedParticle>& storage_queue,
|
||||
int injectionGroupOffset);
|
||||
|
||||
#ifdef GENRICHCURRENT
|
||||
void setResetCurrentCollector(int cpu_sync,
|
||||
std::map<std::string, std::shared_ptr<species::TrackedSpecie>>& species);
|
||||
#endif
|
||||
|
||||
private:
|
||||
std::vector<OutputTask> tasks_density_fields_;
|
||||
std::vector<OutputTask> tasks_current_collector_;
|
||||
|
||||
@@ -29,6 +29,14 @@ class CurrentCollector {
|
||||
blitz::Array<double, 2> areaInZ() const;
|
||||
blitz::Array<double, 2> currentInZ() const;
|
||||
|
||||
#ifdef GENRICHCURRENT
|
||||
blitz::Array<double, 2> sampleNegativeCrossings() const;
|
||||
std::vector<double> energyBinBorders() const;
|
||||
void needsReset() { needs_reset = true; };
|
||||
bool getNeedsReset() const { return needs_reset; };
|
||||
double timeSinceReset() const {return time_since_reset;};
|
||||
#endif //GENRICHCURRENT
|
||||
|
||||
double physicalTime() const;
|
||||
|
||||
void resetCurrentCollector();
|
||||
@@ -41,6 +49,9 @@ class CurrentCollector {
|
||||
const double weight);
|
||||
void collectLongitudinalMovement(const blitz::TinyVector<int, 2>& bin_old,
|
||||
const blitz::TinyVector<int, 2>& bin_new,
|
||||
#ifdef GENRICHCURRENT
|
||||
const double energy_eV,
|
||||
#endif
|
||||
const double weight);
|
||||
void collectAzimuthalMovement(const blitz::TinyVector<double, 3>& old_pos_cart,
|
||||
const blitz::TinyVector<double, 3>& new_pos_cart,
|
||||
@@ -71,19 +82,18 @@ class CurrentCollector {
|
||||
blitz::Array<double, 2> r_negative_crossings;
|
||||
blitz::Array<double, 2> r_positive_crossings;
|
||||
|
||||
// blitz::Array<double, 3> sync_z_negative_crossings;
|
||||
// blitz::Array<double, 3> sync_z_positive_crossings;
|
||||
|
||||
// blitz::Array<double, 3> sync_phi_negative_crossings;
|
||||
// blitz::Array<double, 3> sync_phi_positive_crossings;
|
||||
|
||||
// blitz::Array<double, 3> sync_r_negative_crossings;
|
||||
// blitz::Array<double, 3> sync_r_positive_crossings;
|
||||
|
||||
blitz::Array<double, 2> collector_areas_r;
|
||||
blitz::Array<double, 2> collector_areas_phi;
|
||||
blitz::Array<double, 2> collector_areas_z;
|
||||
|
||||
#ifdef GENRICHCURRENT
|
||||
blitz::Array<double, 2> sample_z_negative_crossings;
|
||||
EnergyBinning energy_binning_;
|
||||
|
||||
bool needs_reset = false;
|
||||
double time_since_reset = 0;
|
||||
#endif //GENRICHCURRENT
|
||||
|
||||
CylinderBinning position_binning_;
|
||||
std::shared_ptr<Timer> timer_;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user