ATTPCROOT  0.3.0-alpha
A ROOT-based framework for analyzing data from active target detectors
Public Member Functions | Protected Member Functions | List of all members
AtTpcMap Class Reference

#include <AtTpcMap.h>

Inheritance diagram for AtTpcMap:
Inheritance graph
[legend]
Collaboration diagram for AtTpcMap:
Collaboration graph
[legend]

Public Member Functions

 AtTpcMap ()
 
 ~AtTpcMap ()
 
virtual void Dump () override
 
virtual void GeneratePadPlane () override
 
virtual ROOT::Math::XYPoint CalcPadCenter (Int_t PadRef) override
 
virtual Int_t BinToPad (Int_t binval) override
 
 ClassDefOverride (AtTpcMap, 1)
 
- Public Member Functions inherited from AtMap
 AtMap ()
 
 ~AtMap ()=default
 
TH2Poly * GetPadPlane ()
 
UInt_t GetNumPads () const
 
Int_t GetPadNum (const AtPadReference &PadRef) const
 
Int_t GetPadNum (ROOT::Math::XYPoint point)
 
multiarray GetPadCoordArr ()
 
multiarrayGetPadCoord ()
 
Bool_t ParseXMLMap (Char_t const *xmlfile)
 
void ParseMapList (TXMLNode *node)
 
void ParseAtTPCMap (TXMLNode *node)
 
Bool_t DumpAtTPCMap ()
 
AtPadReference GetPadRef (int padNum) const
 
bool AddAuxPad (const AtPadReference &ref, std::string auxName)
 
bool IsAuxPad (const AtPadReference &ref) const
 
bool IsFPNchannel (const AtPadReference &ref) const
 
AtPadReference GetNearestFPN (int padNum) const
 
AtPadReference GetNearestFPN (const AtPadReference &ref) const
 
std::string GetAuxName (const AtPadReference &ref) const
 
void SetDebugMode (Bool_t flag=true)
 
Bool_t ParseInhibitMap (TString inimap, AtMap::InhibitType type)
 
void InhibitPad (Int_t padNum, AtMap::InhibitType type)
 
void InhibitPad (AtPadReference padRef, AtMap::InhibitType type)
 
AtMap::InhibitType IsInhibited (Int_t PadNum)
 
AtMap::InhibitType IsInhibited (AtPadReference padRef)
 
Int_t GetPadSize (int padNum)
 
 ClassDefOverride (AtMap, 5)
 

Protected Member Functions

Int_t fill_coord (int pindex, float padxoff, float padyoff, float triside, float fort)
 
- Protected Member Functions inherited from AtMap
void drawPadPlane ()
 

Additional Inherited Members

- Public Types inherited from AtMap
enum  InhibitType {
  InhibitType::kNone = 0, InhibitType::kLowGain = 1, InhibitType::kXTalk = 2, InhibitType::kTotal = 3,
  InhibitType::kBadPad = 4
}
 
- Protected Types inherited from AtMap
typedef boost::multi_array< double, 3 > multiarray
 
typedef multiarray::index index
 
- Protected Attributes inherited from AtMap
multiarray AtPadCoord
 
multiarrayfAtPadCoordPtr {}
 
Bool_t kIsParsed = false
 
Bool_t kDebug = false
 
std::unordered_map< AtPadReference, AtMap::InhibitTypefIniPads
 
TCanvas * fPadPlaneCanvas {}
 
TH2Poly * fPadPlane
 
UInt_t fNumberPads {}
 
std::unordered_map< AtPadReference, int > fPadMap
 
std::map< int, AtPadReferencefPadMapInverse
 
std::unordered_map< AtPadReference, std::string > fAuxPadMap
 
std::map< int, int > fPadSizeMap
 

Detailed Description

Definition at line 19 of file AtTpcMap.h.

Constructor & Destructor Documentation

◆ AtTpcMap()

AtTpcMap::AtTpcMap ( )

Definition at line 40 of file AtTpcMap.cxx.

◆ ~AtTpcMap()

AtTpcMap::~AtTpcMap ( )
default

Member Function Documentation

◆ BinToPad()

virtual Int_t AtTpcMap::BinToPad ( Int_t  binval)
inlineoverridevirtual

Implements AtMap.

Definition at line 28 of file AtTpcMap.h.

◆ CalcPadCenter()

XYPoint AtTpcMap::CalcPadCenter ( Int_t  PadRef)
overridevirtual

Implements AtMap.

Definition at line 232 of file AtTpcMap.cxx.

◆ ClassDefOverride()

AtTpcMap::ClassDefOverride ( AtTpcMap  ,
 
)

◆ Dump()

void AtTpcMap::Dump ( )
overridevirtual

Implements AtMap.

Definition at line 51 of file AtTpcMap.cxx.

◆ fill_coord()

Int_t AtTpcMap::fill_coord ( int  pindex,
float  padxoff,
float  padyoff,
float  triside,
float  fort 
)
protected

Definition at line 221 of file AtTpcMap.cxx.

◆ GeneratePadPlane()

void AtTpcMap::GeneratePadPlane ( )
overridevirtual

Virtual function that creates the TH2Poly that stores the pad plane geometry

Implements AtMap.

Definition at line 75 of file AtTpcMap.cxx.


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