Back to home page

sPhenix code displayed by LXR

 
 

    


Warning, /coresoftware/calibrations/intt/inttcalib/README.md is written in an unsupported language. File is not indexed.

0001 # InttCalib Module
0002 
0003 The `InttCalib` class is a main of the calibration module for the INTT detector. It inherits from `SubsysReco` and provides methods for initializing, processing events, and finalizing the calibration process.
0004 
0005 ## Class: InttCalib
0006 
0007 ### Constructor
0008 - `InttCalib(std::string const& name = "InttCalib")`
0009   - Initializes the `InttCalib` object with the given name.
0010 
0011 ### Destructor
0012 - `~InttCalib()`
0013   - Cleans up dynamically allocated memory.
0014 
0015 ### Methods
0016 
0017 #### Initialization and Run Control
0018 - `int InitRun(PHCompositeNode* topNode) override`
0019   - Initializes the run, setting up necessary data structures and loading maps from the CDB.
0020 
0021 - `int process_event(PHCompositeNode* topNode) :woverride`
0022   - Processes each event, updating hitmaps and handling BCO offsets.
0023 
0024 - `int EndRun(int const run_number) override`
0025   - Finalizes the run, generating hot maps and BCO maps.
0026 
0027 #### OutPutFile Setup
0028 - `void SetHotMapCdbFile(std::string const& file)`
0029 - `void SetHotMapPngFile(std::string const& file)`
0030 - `void SetBcoMapCdbFile(std::string const& file)`
0031 - `void SetBcoMapPngFile(std::string const& file)`
0032 
0033 #### Configuration
0034 - `void SetStreamingMode(bool mode)`
0035   - Set Streaming mode. Especially important for BCO Calibration in pp runs
0036 - `void SetBcoMaximumEvent(int mext)`
0037   - Set Maxmium event to produce the BCO maps.
0038 - `void SetRunNumber(int runnum)`
0039   - RunNumber Setting
0040 - `void SetDoFeebyFee(bool in)`
0041   - true : Doing fitting fee by fee for accurate cold channel determination  (Default : false)
0042 - `void SetColdSigmaCut(double in)`
0043   - Sigma cut for cold channel
0044 - `void SetHotSigmaCut(double in)` 
0045   - Sigma cut for hot channel
0046 - `void SetppMode(bool mode)`
0047   - Not used. Keeping for possibility of future implementation. 
0048 
0049 #### Hot Map Generation / FELIX server by server
0050 - `int ConfigureHotMap_v3()`
0051 - `int MakeHotMapCdb_v3()`
0052 - `int MakeHotMapPng_v3()`
0053 
0054 #### Hot Map generation / Fee by fee (fee = 1 half ladder)
0055 - `int ConfigureHotMap_fee()`
0056 - `int MakeHotMapCdb_fee()`
0057 - `int MakeHotMapROOT_fee()`
0058 
0059 #### BCO Map Generation
0060 - `int ConfigureBcoMap()`
0061 - `int MakeBcoMapCdb()`
0062 - `int MakeBcoMapPng()`
0063 
0064 #### Histogram Configuration
0065 - `int ConfigureHist_v3(TH1D*& hist, TF1*& fit, double maxbin, std::map<double, int> const& hitrate_map, std::string const& name, std::string const& title)`
0066 
0067 #### Old versions (not used)
0068 - `int ConfigureHotMap_v2()`
0069 - `int MakeHotMapCdb_v2()`
0070 - `int MakeHotMapPng_v2()`
0071 - `int ConfigureHotMap()`
0072 - `int MakeHotMapCdb()`
0073 - `int MakeHotMapPng()`
0074 - `int ConfigureHist(TH1D*& hist, TF1*& fit, std::map<double, int> const& hitrate_map, std::string const& name, std::string const& title)`
0075 - `int ConfigureHist_v2(TH1D*& hist, TF1*& fit, std::map<double, int> const& hitrate_map, std::string const& name, std::string const& title)`
0076 
0077 
0078 
0079 #### Utility Methods
0080 - `int adjust_hitrate(InttMap::Offline_s const& ofl, double& hitrate) const`
0081 - `int GetIndex(InttMap::RawData_s const& raw, InttMap::Offline_s const& ofl) const`
0082 - `int GetFeeIndex(InttMap::RawData_s const& raw, InttMap::Offline_s const& ofl) const`
0083 - `std::pair<double, double> CalculateStandardDeviation(const std::vector<int>& data)`
0084 - `Color_t GetFeeColor(int fee) const`
0085 
0086 #### Debugging and Data Management
0087 - `void Debug()`
0088 - `int SaveHitrates()`
0089 - `int LoadHitrates()`
0090 
0091 This class provides a comprehensive set of methods for calibrating the INTT detector, including handling hot and cold channels, generating maps, and configuring histograms.