-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:rest-for-physics/framework
* 'master' of github.com:rest-for-physics/framework: (45 commits) Update README.md Add new presentation to README Update README.md Update README.md Adding dimensions to the NuSTAR mask example [pre-commit.ci] auto fixes from pre-commit.com hooks Adding example and new image TRestRadialStrippedMask. Adding an internal region Setting the spacers of the new NuSTAR like optics as an example [pre-commit.ci] auto fixes from pre-commit.com hooks TRestPatternMask. Solving drawing issue TRestPatternMask::fOffset adding comment Testing pipeline Fixing issues when drawing the mask with an offset and/or rotation TRestRadialStrippedMask minor fixes Adding new radial stripped mask TRestSensitivity::ExportCurve is now renormalized by factor and power [pre-commit.ci] auto fixes from pre-commit.com hooks TRestComponentDataSet::fDFRange added to allow reducing the component dataset statistics TRestDataSet::RegenerateTree method added and used when invoking ApplyRange ...
- Loading branch information
Showing
22 changed files
with
629 additions
and
114 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
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,70 @@ | ||
/************************************************************************* | ||
* This file is part of the REST software framework. * | ||
* * | ||
* Copyright (C) 2016 GIFNA/TREX (University of Zaragoza) * | ||
* For more information see https://gifna.unizar.es/trex * | ||
* * | ||
* REST is free software: you can redistribute it and/or modify * | ||
* it under the terms of the GNU General Public License as published by * | ||
* the Free Software Foundation, either version 3 of the License, or * | ||
* (at your option) any later version. * | ||
* * | ||
* REST is distributed in the hope that it will be useful, * | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of * | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * | ||
* GNU General Public License for more details. * | ||
* * | ||
* You should have a copy of the GNU General Public License along with * | ||
* REST in $REST_PATH/LICENSE. * | ||
* If not, see https://www.gnu.org/licenses/. * | ||
* For the list of contributors see $REST_PATH/CREDITS. * | ||
*************************************************************************/ | ||
|
||
#ifndef REST_TRestRadialStrippedMask | ||
#define REST_TRestRadialStrippedMask | ||
|
||
#include <TRestPatternMask.h> | ||
|
||
/// A class used to define a stripped mask pattern | ||
class TRestRadialStrippedMask : public TRestPatternMask { | ||
private: | ||
void Initialize() override; | ||
|
||
/// The periodity of the stripped structure in radians | ||
Double_t fStripsAngle = TMath::Pi() / 3; //< | ||
|
||
/// The width of the stripped structure in mm | ||
Double_t fStripsThickness = 0.5; //< | ||
|
||
/// The spacers structure will be effective from this radius, in mm. Default is from 20 mm. | ||
Double_t fInitialRadius = 20.; //< | ||
|
||
/// Radius of an internal circular region defined inside the fInitialRadius. If 0, there will be no region | ||
Double_t fInternalRegionRadius = 0.; //< | ||
|
||
/// It defines the maximum number of cells/regions in each axis | ||
Int_t fModulus = 10; | ||
|
||
public: | ||
virtual Int_t GetRegion(Double_t& x, Double_t& y) override; | ||
|
||
/// It returns the gap/periodicity of the strips in degrees | ||
Double_t GetStripsAngle() { return fStripsAngle * units("degrees"); } | ||
|
||
/// It returns the thickness of the strips in mm | ||
Double_t GetStripsThickness() { return fStripsThickness; } | ||
|
||
/// It returns the modulus used to define a finite set of ids | ||
Int_t GetModulus() { return fModulus; } | ||
|
||
void PrintMetadata() override; | ||
void PrintMaskMembers() override; | ||
void PrintMask() override; | ||
|
||
TRestRadialStrippedMask(); | ||
TRestRadialStrippedMask(const char* cfgFileName, std::string name = ""); | ||
~TRestRadialStrippedMask(); | ||
|
||
ClassDefOverride(TRestRadialStrippedMask, 1); | ||
}; | ||
#endif |
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.