//____________________________________________________________________________
AliEMCALGeoUtils & AliEMCALGeoUtils::operator = (const AliEMCALGeoUtils & /*rvalue*/) {
-
+ //assing operator
Fatal("assignment operator", "not implemented") ;
return *this ;
}
{
//Trigger mapping method, get FastOr Index from TRU
- if (iTRU > 31 || iTRU < 0 || iADC > 95 || iADC < 0)
+ if (iTRU > 31 || iTRU < 0 || iADC > 95 || iADC < 0)
{
AliError("TRU out of range!");
return kFALSE;
//________________________________________________________________________________________________
Bool_t AliEMCALGeoUtils::GetPositionInEMCALFromAbsFastORIndex(const Int_t id, Int_t& iEta, Int_t& iPhi) const
{
+ //Trigger mapping method, get position in EMCAL from FastOR index
+
Int_t iSM=-1;
if (GetPositionInSMFromAbsFastORIndex(id, iSM, iEta, iPhi))
//________________________________________________________________________________________________
Bool_t AliEMCALGeoUtils::GetAbsFastORIndexFromPositionInSM(const Int_t iSM, const Int_t iEta, const Int_t iPhi, Int_t& id) const
{
- //
+ //Trigger mapping method, from position in SM Index get FastOR index
+
if (iSM < 0 || iSM > 11 || iEta < 0 || iEta > 23 || iPhi < 0 || iPhi > 11)
{
AliError("Out of range!");
//________________________________________________________________________________________________
Bool_t AliEMCALGeoUtils::GetAbsFastORIndexFromPositionInEMCAL(const Int_t iEta, const Int_t iPhi, Int_t& id) const
{
- //
+ //Trigger mapping method, from position in EMCAL Index get FastOR index
+
if (iEta < 0 || iEta > 47 || iPhi < 0 || iPhi > 63 )
{
AliError("Out of range!");
//________________________________________________________________________________________________
Bool_t AliEMCALGeoUtils::GetFastORIndexFromCellIndex(const Int_t id, Int_t& idx) const
{
+ //Trigger mapping method, from cell index get FastOR index
+
Int_t iSupMod, nModule, nIphi, nIeta, iphim, ietam;
Bool_t isOK = GetCellIndex( id, iSupMod, nModule, nIphi, nIeta );
//________________________________________________________________________________________________
Bool_t AliEMCALGeoUtils::GetCellIndexFromFastORIndex(const Int_t id, Int_t idx[4]) const
{
- Int_t iSM=-1, iEta=-1, iPhi=-1;
+ //Trigger mapping method, from FASTOR index get cell index
+
+ Int_t iSM=-1, iEta=-1, iPhi=-1;
if (GetPositionInSMFromAbsFastORIndex(id, iSM, iEta, iPhi))
{
Int_t ix = 2 * iEta;
//________________________________________________________________________________________________
Bool_t AliEMCALGeoUtils::GetTRUIndexFromSTUIndex(const Int_t id, Int_t& idx) const
{
+ //Trigger mapping method, from STU index get TRU index
+
if (id > 31 || id < 0)
{
AliError(Form("TRU index out of range: %d",id));
//________________________________________________________________________________________________
Int_t AliEMCALGeoUtils::GetTRUIndexFromSTUIndex(const Int_t id) const
{
+ //Trigger mapping method, from STU index get TRU index
+
if (id > 31 || id < 0)
{
AliError(Form("TRU index out of range: %d",id));
//________________________________________________________________________________________________
Bool_t AliEMCALGeoUtils::GetFastORIndexFromL0Index(const Int_t iTRU, const Int_t id, Int_t idx[], const Int_t size) const
{
+ //Trigger mapping method, from L0 index get FastOR index
if (size <= 0 ||size > 4)
{
AliError("Size not supported!");
switch (size)
{
case 1: // Cosmic trigger
- if (!GetAbsFastORIndexFromTRU(iTRU, id, idx[0])) return kFALSE;
+ if (!GetAbsFastORIndexFromTRU(iTRU, id, idx[1])) return kFALSE;
break;
case 4: // 4 x 4
for (Int_t k = 0; k < 4; k++)