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

#include <AtTpcProtoMap.h>

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

Public Member Functions

 AtTpcProtoMap ()
 
 ~AtTpcProtoMap ()=default
 
virtual void GeneratePadPlane () override
 
virtual void Dump () override
 
virtual ROOT::Math::XYPoint CalcPadCenter (Int_t PadRef) override
 
virtual Int_t BinToPad (Int_t binval) override
 
TH2Poly * GetAtTpcPlane (TString TH2Poly_name)
 
Bool_t SetGeoFile (TString geofile)
 
Bool_t SetProtoMap (TString file)
 
 ClassDefOverride (AtTpcProtoMap, 2)
 
- 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 Attributes

TFile * f {}
 
Int_t bin {}
 
Bool_t kIsFileSet = false
 
Bool_t kIsGenerated = false
 
Bool_t kIsProtoMapSet = false
 
std::map< Int_t, std::vector< Float_t > > ProtoGeoMap
 
std::map< Int_t, Int_t > ProtoBinMap
 
- 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
 

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 Member Functions inherited from AtMap
void drawPadPlane ()
 

Detailed Description

Definition at line 26 of file AtTpcProtoMap.h.

Constructor & Destructor Documentation

◆ AtTpcProtoMap()

AtTpcProtoMap::AtTpcProtoMap ( )

Definition at line 34 of file AtTpcProtoMap.cxx.

◆ ~AtTpcProtoMap()

AtTpcProtoMap::~AtTpcProtoMap ( )
default

Member Function Documentation

◆ BinToPad()

Int_t AtTpcProtoMap::BinToPad ( Int_t  binval)
overridevirtual

Implements AtMap.

Definition at line 184 of file AtTpcProtoMap.cxx.

◆ CalcPadCenter()

XYPoint AtTpcProtoMap::CalcPadCenter ( Int_t  PadRef)
overridevirtual

Implements AtMap.

Definition at line 108 of file AtTpcProtoMap.cxx.

◆ ClassDefOverride()

AtTpcProtoMap::ClassDefOverride ( AtTpcProtoMap  ,
 
)

◆ Dump()

void AtTpcProtoMap::Dump ( )
overridevirtual

Implements AtMap.

Definition at line 210 of file AtTpcProtoMap.cxx.

◆ GeneratePadPlane()

void AtTpcProtoMap::GeneratePadPlane ( )
overridevirtual

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

Implements AtMap.

Definition at line 54 of file AtTpcProtoMap.cxx.

◆ GetAtTpcPlane()

TH2Poly * AtTpcProtoMap::GetAtTpcPlane ( TString  TH2Poly_name)

Definition at line 95 of file AtTpcProtoMap.cxx.

◆ SetGeoFile()

Bool_t AtTpcProtoMap::SetGeoFile ( TString  geofile)

Definition at line 36 of file AtTpcProtoMap.cxx.

◆ SetProtoMap()

Bool_t AtTpcProtoMap::SetProtoMap ( TString  file)

Definition at line 146 of file AtTpcProtoMap.cxx.

Member Data Documentation

◆ bin

Int_t AtTpcProtoMap::bin {}
protected

Definition at line 29 of file AtTpcProtoMap.h.

◆ f

TFile* AtTpcProtoMap::f {}
protected

Definition at line 28 of file AtTpcProtoMap.h.

◆ kIsFileSet

Bool_t AtTpcProtoMap::kIsFileSet = false
protected

Definition at line 31 of file AtTpcProtoMap.h.

◆ kIsGenerated

Bool_t AtTpcProtoMap::kIsGenerated = false
protected

Definition at line 32 of file AtTpcProtoMap.h.

◆ kIsProtoMapSet

Bool_t AtTpcProtoMap::kIsProtoMapSet = false
protected

Definition at line 33 of file AtTpcProtoMap.h.

◆ ProtoBinMap

std::map<Int_t, Int_t> AtTpcProtoMap::ProtoBinMap
protected

Definition at line 36 of file AtTpcProtoMap.h.

◆ ProtoGeoMap

std::map<Int_t, std::vector<Float_t> > AtTpcProtoMap::ProtoGeoMap
protected

Definition at line 35 of file AtTpcProtoMap.h.


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