AliRoot Core  3dc7879 (3dc7879)
GeneratePedestalScript.C File Reference

Generate pedestals. More...

Go to the source code of this file.

Functions

void GetPedVal (const Int_t iSM, const Int_t igain, const TProfile2D *h2)
 Add comment. More...
 
void GetPedValLEDRef (const Int_t iSM, const Int_t igain, const TProfile *h)
 Add comment. More...
 
void PrintScript ()
 Add comment. More...
 
void Clear ()
 Add comment. More...
 
Int_t GetHWAddress (Int_t iside, Int_t icol, Int_t irow, Int_t igain)
 
Int_t GetHWAddressLEDRef (Int_t istrip, Int_t igain)
 Add comment. More...
 
void DecodeHWAddress (Int_t hwAddr, Int_t &branch, Int_t &FEC, Int_t &chip, Int_t &chan)
 Add comment. More...
 
void GetMapping ()
 Add comment. More...
 
void CreateMappingLEDRef ()
 Add comment. More...
 
void GeneratePedestalScript (const char *filename="Run117756_117756_v1_s0.root")
 Main method. More...
 
Int_t GetHWAddress (Int_t iside, Int_t icol, Int_t irow, Int_t igain, Int_t &iRCU)
 Add comment. More...
 

Variables

const Int_t kNSM = 4
 
const Int_t kNRCU = 2
 
AliCaloAltroMapping * fMapping [4]
 
const Int_t kNBranch = 2
 
const Int_t kNFEC = 10
 
const Int_t kNChip = 5
 
const Int_t kNChan = 16
 
Float_t fMeanPed [kNSM][kNRCU][kNBranch][kNFEC][kNChip][kNChan]
 
Float_t fRmsPed [kNSM][kNRCU][kNBranch][kNFEC][kNChip][kNChan]
 
const int kNStrips = 24
 
Int_t fHWAddrLEDRef [kNStrips][2]
 
const Bool_t kDebug = kFALSE
 
const Float_t kBadRMS = 20
 

Detailed Description

Generate pedestals.

Add comment

Author
David Silvermyr, (ORNL)

Definition in file GeneratePedestalScript.C.

Function Documentation

void CreateMappingLEDRef ( )

Add comment.

Definition at line 383 of file GeneratePedestalScript.C.

Referenced by GeneratePedestalScript().

void DecodeHWAddress ( Int_t  hwAddr,
Int_t &  branch,
Int_t &  FEC,
Int_t &  chip,
Int_t &  chan 
)

Add comment.

Definition at line 301 of file GeneratePedestalScript.C.

Referenced by CreateMappingLEDRef(), GetPedVal(), and GetPedValLEDRef().

void GeneratePedestalScript ( const char *  filename = "Run117756_117756_v1_s0.root")

Main method.

Definition at line 43 of file GeneratePedestalScript.C.

Int_t GetHWAddress ( Int_t  iside,
Int_t  icol,
Int_t  irow,
Int_t  igain 
)
Int_t GetHWAddress ( Int_t  iside,
Int_t  icol,
Int_t  irow,
Int_t  igain,
Int_t &  iRCU 
)

Add comment.

Definition at line 313 of file GeneratePedestalScript.C.

Int_t GetHWAddressLEDRef ( Int_t  istrip,
Int_t  igain 
)

Add comment.

Definition at line 342 of file GeneratePedestalScript.C.

Referenced by GetPedValLEDRef().

void GetMapping ( )

Add comment.

Definition at line 355 of file GeneratePedestalScript.C.

Referenced by GeneratePedestalScript().

void GetPedVal ( const Int_t  iSM,
const Int_t  igain,
const TProfile2D *  h2 
)

Add comment.

Definition at line 73 of file GeneratePedestalScript.C.

Referenced by GeneratePedestalScript().

void GetPedValLEDRef ( const Int_t  iSM,
const Int_t  igain,
const TProfile *  h 
)

Add comment.

Definition at line 125 of file GeneratePedestalScript.C.

Referenced by GeneratePedestalScript().

void PrintScript ( )

Add comment.

Definition at line 165 of file GeneratePedestalScript.C.

Referenced by GeneratePedestalScript().

Variable Documentation

Int_t fHWAddrLEDRef[kNStrips][2]

Definition at line 23 of file GeneratePedestalScript.C.

Referenced by Clear(), CreateMappingLEDRef(), and GetHWAddressLEDRef().

Float_t fMeanPed[kNSM][kNRCU][kNBranch][kNFEC][kNChip][kNChan]

Definition at line 19 of file GeneratePedestalScript.C.

Referenced by Clear(), GetPedVal(), GetPedValLEDRef(), and PrintScript().

Float_t fRmsPed[kNSM][kNRCU][kNBranch][kNFEC][kNChip][kNChan]

Definition at line 20 of file GeneratePedestalScript.C.

Referenced by Clear(), GetPedVal(), GetPedValLEDRef(), and PrintScript().

const Float_t kBadRMS = 20

Definition at line 26 of file GeneratePedestalScript.C.

Referenced by GetPedVal(), and PrintScript().

const Bool_t kDebug = kFALSE
const Int_t kNBranch = 2

Definition at line 15 of file GeneratePedestalScript.C.

Referenced by Clear(), and PrintScript().

const Int_t kNChan = 16

Definition at line 18 of file GeneratePedestalScript.C.

Referenced by Clear(), and PrintScript().

const Int_t kNChip = 5

Definition at line 17 of file GeneratePedestalScript.C.

Referenced by Clear(), CreateMappingLEDRef(), and PrintScript().

const Int_t kNFEC = 10

Definition at line 16 of file GeneratePedestalScript.C.

Referenced by Clear(), and PrintScript().

const Int_t kNRCU = 2

Definition at line 13 of file GeneratePedestalScript.C.

Referenced by Clear(), and PrintScript().

const Int_t kNSM = 4

Definition at line 12 of file GeneratePedestalScript.C.

Referenced by Clear(), GeneratePedestalScript(), and PrintScript().

const int kNStrips = 24

Definition at line 22 of file GeneratePedestalScript.C.

Referenced by Clear().