#include "AliMUONTriggerCircuit.h"
#include "AliMUONConstants.h"
+#include "AliMUONGeometryTransformer.h"
#include "AliMpTrigger.h"
#include "AliMpSlat.h"
#include "AliMpDDLStore.h"
#include "AliMpLocalBoard.h"
#include "AliMpConstants.h"
+#include "AliMpPad.h"
#include "AliRun.h"
#include "AliLog.h"
//----------------------------------------------------------------------
AliMUONTriggerCircuit::AliMUONTriggerCircuit(const AliMUONGeometryTransformer* transformer)
: TObject(),
- fTransformer(transformer),
- fCurrentSeg(0x0),
+ fkTransformer(transformer),
+ fkCurrentSeg(0x0),
fCurrentDetElem(0x0),
fCurrentLocalBoard(0x0)
{
//----------------------------------------------------------------------
AliMUONTriggerCircuit::AliMUONTriggerCircuit(const AliMUONTriggerCircuit& circuit)
: TObject(circuit),
- fTransformer(circuit.fTransformer), // do not copy, just pointed to
- fCurrentSeg(circuit.fCurrentSeg),
+ fkTransformer(circuit.fkTransformer), // do not copy, just pointed to
+ fkCurrentSeg(circuit.fkCurrentSeg),
fCurrentDetElem(circuit.fCurrentDetElem),
fCurrentLocalBoard(circuit.fCurrentLocalBoard)
{
if (this == &circuit) return *this;
- fTransformer = circuit.fTransformer;
- fCurrentSeg = circuit.fCurrentSeg;
+ fkTransformer = circuit.fkTransformer;
+ fkCurrentSeg = circuit.fkCurrentSeg;
fCurrentDetElem = circuit.fCurrentDetElem;
fCurrentLocalBoard = circuit.fCurrentLocalBoard;
}
//---------------------------------------------------------------------
-void AliMUONTriggerCircuit::LoadYPos(AliMpLocalBoard* localBoard)
+void AliMUONTriggerCircuit::LoadYPos(AliMpLocalBoard* const localBoard)
{
/// fill fYpos11 and fYpos21 -> y position of X declusterized strips
ichamber = 10;
fCurrentDetElem = AliMpDDLStore::Instance()->GetDEfromLocalBoard(fCurrentLocalBoard, ichamber);
- fCurrentSeg = AliMpSegmentation::Instance()
+ fkCurrentSeg = AliMpSegmentation::Instance()
->GetMpSegmentation(fCurrentDetElem, AliMp::GetCathodType(icathode));
Int_t iFirstStrip = FirstStrip(localBoard);
ichamber = 12;
fCurrentDetElem = AliMpDDLStore::Instance()->GetDEfromLocalBoard(fCurrentLocalBoard, ichamber);
- fCurrentSeg = AliMpSegmentation::Instance()
+ fkCurrentSeg = AliMpSegmentation::Instance()
->GetMpSegmentation(fCurrentDetElem, AliMp::GetCathodType(icathode));
// second plane middle part
Int_t icolUp = icol;
// check if we need to move to another detElemId
- AliMpPad pad = fCurrentSeg->PadByIndices(AliMpIntPair(icol-1,iLastStripMiddle+1),kFALSE);
+ AliMpPad pad = fkCurrentSeg->PadByIndices(AliMpIntPair(icol-1,iLastStripMiddle+1),kFALSE);
if (pad.IsValid()) { // upper strips within same detElemId
iFirstStripUp = iLastStripMiddle;
fCurrentDetElem = AliMpDDLStore::Instance()->
GetNextDEfromLocalBoard(fCurrentLocalBoard, ichamber);
- fCurrentSeg = AliMpSegmentation::Instance()
+ fkCurrentSeg = AliMpSegmentation::Instance()
->GetMpSegmentation(fCurrentDetElem, AliMp::GetCathodType(icathode));
iFirstStripUp = 0;
// restore current detElemId & segmentation
fCurrentDetElem = AliMpDDLStore::Instance()->GetDEfromLocalBoard(fCurrentLocalBoard, ichamber);
- fCurrentSeg = AliMpSegmentation::Instance()
+ fkCurrentSeg = AliMpSegmentation::Instance()
->GetMpSegmentation(fCurrentDetElem, AliMp::GetCathodType(icathode));
// second plane lower part
Int_t icolDo = icol;
// check if we need to move to another detElemId
- AliMpPad pad = fCurrentSeg->PadByIndices(AliMpIntPair(icol-1,iFirstStripMiddle-1),kFALSE);
+ AliMpPad pad = fkCurrentSeg->PadByIndices(AliMpIntPair(icol-1,iFirstStripMiddle-1),kFALSE);
if (pad.IsValid()) { // lower strips within same detElemId
iFirstStripDo = iFirstStripMiddle - 8;
iLastStripDo = iFirstStripDo + 8;
fCurrentDetElem = AliMpDDLStore::Instance()
->GetPreviousDEfromLocalBoard(fCurrentLocalBoard, ichamber);
- fCurrentSeg = AliMpSegmentation::Instance()
+ fkCurrentSeg = AliMpSegmentation::Instance()
->GetMpSegmentation(fCurrentDetElem, AliMp::GetCathodType(icathode));
// get iFirstStrip in this module
- const AliMpTrigger* t = AliMpSegmentation::Instance()->GetTrigger(fCurrentSeg);
+ const AliMpTrigger* t = AliMpSegmentation::Instance()->GetTrigger(fkCurrentSeg);
const AliMpSlat* slat = t->GetLayer(0);
if (iline == 5) icolDo = icol + 1; // special case
Double_t xyGlobal[2] = {0.};
for (Int_t istrip = iFirstStrip; istrip < iLastStrip; ++istrip) {
- AliMpPad pad = fCurrentSeg->PadByIndices(AliMpIntPair(icol-1,istrip),kTRUE);
+ AliMpPad pad = fkCurrentSeg->PadByIndices(AliMpIntPair(icol-1,istrip),kTRUE);
if ( !pad.IsValid() ) {
StdoutToAliError(cout << "Pad not found in seg " << endl;
- fCurrentSeg->Print();
+ fkCurrentSeg->Print();
cout << " ix,iy=" << icol-1 << "," << istrip << endl;
);
}
//----------------------------------------------------------------------
-void AliMUONTriggerCircuit::LoadXPos(AliMpLocalBoard* localBoard)
+void AliMUONTriggerCircuit::LoadXPos(AliMpLocalBoard* const localBoard)
{
/// fill fXpos11 -> x position of Y strips for the first plane only
/// fXpos11 contains the x position of Y strip for the current circuit
fCurrentDetElem = AliMpDDLStore::Instance()->GetDEfromLocalBoard(fCurrentLocalBoard, ichamber);
- fCurrentSeg = AliMpSegmentation::Instance()
+ fkCurrentSeg = AliMpSegmentation::Instance()
->GetMpSegmentation(fCurrentDetElem, AliMp::GetCathodType(icathode));
// check if one needs a strip doubling or not
if (zeroAllYLSB) iStripCircuit = 8;
// get iFirstStrip in this module
- const AliMpTrigger* t = AliMpSegmentation::Instance()->GetTrigger(fCurrentSeg);
+ const AliMpTrigger* t = AliMpSegmentation::Instance()->GetTrigger(fkCurrentSeg);
const AliMpSlat* slat = t->GetLayer(0);
const AliMpPCB* pcb = slat->GetPCB(icol-1);
for (Int_t istrip = iFirstStrip; istrip < iLastStrip; ++istrip) {
- AliMpPad pad = fCurrentSeg->PadByIndices(AliMpIntPair(istrip,0),kTRUE);
+ AliMpPad pad = fkCurrentSeg->PadByIndices(AliMpIntPair(istrip,0),kTRUE);
if ( !pad.IsValid() )
{
StdoutToAliError(cout << "Pad not found in seg " << endl;
- fCurrentSeg->Print();
+ fkCurrentSeg->Print();
cout << " ix,iy=" << istrip << "," << 0 << endl;
);
}
Double_t zg1 = 0;
// positions from local to global
- fTransformer->Local2Global(fCurrentDetElem, xl1, yl1, 0,
+ fkTransformer->Local2Global(fCurrentDetElem, xl1, yl1, 0,
xyGlobal[0], xyGlobal[1], zg1);
}
#include <TObject.h>
#include <TArrayF.h>
-#include "AliMpPad.h"
-#include "AliMpVSegmentation.h"
-#include "AliMUONGeometryTransformer.h"
-
class AliMpLocalBoard;
+class AliMUONGeometryTransformer;
+class AliMpPad;
+class AliMpVSegmentation;
class AliMUONTriggerCircuit : public TObject
{
// void dump(const char* what, const Int_t* array, Int_t size);
/// Set pointer to transformations
- void SetTransformer(const AliMUONGeometryTransformer* transformer) {fTransformer = transformer;}
+ void SetTransformer(const AliMUONGeometryTransformer* transformer) {fkTransformer = transformer;}
/// Get pointer to transformations
- const AliMUONGeometryTransformer* GetTransformer() const {return fTransformer;}
+ const AliMUONGeometryTransformer* GetTransformer() const {return fkTransformer;}
Float_t PtCal(Int_t localBoardId, Int_t istripX, Int_t idev, Int_t istripY) const;
private:
- void LoadYPos(AliMpLocalBoard* localBoard);
- void LoadXPos(AliMpLocalBoard* localBoard);
+ void LoadYPos(AliMpLocalBoard* const localBoard);
+ void LoadXPos(AliMpLocalBoard* const localBoard);
Int_t FirstStrip(AliMpLocalBoard* localBoard);
TArrayF fYpos11[235]; ///< Y position of X strips in MC11
TArrayF fYpos21[235]; ///< Y position of X strips in MC21
- const AliMUONGeometryTransformer* fTransformer; //!< pointer to transformation
- const AliMpVSegmentation* fCurrentSeg; //!< current segmentation
+ const AliMUONGeometryTransformer* fkTransformer; //!< pointer to transformation
+ const AliMpVSegmentation* fkCurrentSeg; //!< current segmentation
Int_t fCurrentDetElem; //!< current detection elt id
Int_t fCurrentLocalBoard; //!< current local board id