NCFS-Pack
A generic (astro)particle physics analysis framework
 
Loading...
Searching...
No Matches
IceCalibrate Class Reference

TTask derived class to perform the various calibrations. More...

#include "IceCalibrate.h"

Inheritance diagram for IceCalibrate:

Detailed Description

TTask derived class to perform the various calibrations.

Copyright(c) 2003, IceCube Experiment at the South Pole. All rights reserved.
Author: The IceCube NCFS-based Offline Project.
Contributors are mentioned in the code where appropriate.
Permission to use, copy, modify and distribute this software and its
documentation strictly for non-commercial purposes is hereby granted
without fee, provided that the above copyright notice appears in all
copies and that both the copyright notice and this permission notice
appear in the supporting documentation.
The authors make no claims about the suitability of this software for
any purpose. It is provided "as is" without express or implied warranty.
// Class IceCalibrate
// TTask derived class to perform the various calibrations.
//
// In case an event has been rejected by an NcEventSelector (based) processor,
// this task (and its sub-tasks) is not executed.
//
// This task takes the current event in memory and uses the attached
// OM database to access the various calibration functions.
// A specific OM database may be attached by means of the SetOMdbase()
// or SetCalibFile() memberfunctions.
// Further details about the OM database can be found in the docs
// of IceCal2Root and IceDB2Root.
//
// In the calibration procedure, all event data in memory is scanned and
// replaced by calibrated data if a calibration function is present.
// When data is succesfully calibrated, the corresponding de-calibration
// function is stored in the event data at the appropriate place to allow
// access to uncalibrated data as well (see NcSignal::GetSignal for
// further details).
// When the input event in memory already contained calibrated data
// (i.e. de-calibration functions are present in the event data), the event
// data is first de-calibrated (using the corresponding de-calibration functions
// contained in the event data) before the new calibration is performed.
// In case no corresponding calibration function is present, the calibration
// of those specific data will not be performed.
// This implies that running this task on calibrated data without having
// attached an OM database, will result in fully de-calibrated data.
// In case an OM slot was flagged as bad in the OM database, this flag
// will be copied into the event data for the corresponding OM.
//
// Information about the actual parameter settings can be found in the event
// structure itself via the device named "IceCalibrate".
//
//--- Author: Nick van Eijndhoven 18-sep-2005 Utrecht University
//- Modified: Nick van Eijndhoven, IIHE-VUB, Brussel, February 15, 2022 15:05Z

Definition at line 19 of file IceCalibrate.h.

Public Member Functions

 IceCalibrate (const char *name="", const char *title="")
 
virtual ~IceCalibrate ()
 
virtual void Exec (Option_t *opt)
 
void SetCalibFile (TString name)
 
void SetOMdbase (NcObjMatrix *omdb, TString name="MuDaq")
 

Protected Attributes

TFile * fCalfile
 
NcObjMatrixfJEBADaqDB
 
NcObjMatrixfJEBTDaqDB
 
NcObjMatrixfMuDaqDB
 
NcObjMatrixfTWRDaqDB
 

Constructor & Destructor Documentation

◆ IceCalibrate()

IceCalibrate::IceCalibrate ( const char * name = "",
const char * title = "" )
// Default constructor.

Definition at line 66 of file IceCalibrate.cxx.

◆ ~IceCalibrate()

IceCalibrate::~IceCalibrate ( )
virtual
// Default destructor.

Definition at line 81 of file IceCalibrate.cxx.

Member Function Documentation

◆ Exec()

void IceCalibrate::Exec ( Option_t * opt)
virtual
// Implementation of the various calibration procedures.

Definition at line 141 of file IceCalibrate.cxx.

◆ SetCalibFile()

void IceCalibrate::SetCalibFile ( TString name)
// Set the calibration ROOT file as created with IceCal2Root.
// Note : this will overrule a previously attached database.
//
// Environment variables may be used as $(...) in the filenname for convenience.
// For example "$(HOME)/my-data/calibrations.root".

Definition at line 113 of file IceCalibrate.cxx.

◆ SetOMdbase()

void IceCalibrate::SetOMdbase ( NcObjMatrix * omdb,
TString name = "MuDaq" )
// Set the pointer to the OM database.
// The following names can be used: MuDaq, TWRDaq, JEBTDaq and JEBADaq.
// Note : this will overrule a previously attached database.

Definition at line 96 of file IceCalibrate.cxx.

Member Data Documentation

◆ fCalfile

TFile* IceCalibrate::fCalfile
protected

Definition at line 29 of file IceCalibrate.h.

◆ fJEBADaqDB

NcObjMatrix* IceCalibrate::fJEBADaqDB
protected

Definition at line 33 of file IceCalibrate.h.

◆ fJEBTDaqDB

NcObjMatrix* IceCalibrate::fJEBTDaqDB
protected

Definition at line 32 of file IceCalibrate.h.

◆ fMuDaqDB

NcObjMatrix* IceCalibrate::fMuDaqDB
protected

Definition at line 30 of file IceCalibrate.h.

◆ fTWRDaqDB

NcObjMatrix* IceCalibrate::fTWRDaqDB
protected

Definition at line 31 of file IceCalibrate.h.


The documentation for this class was generated from the following files: