Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cbmroot
Manage
Activity
Members
Labels
Plan
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Computing
cbmroot
Commits
ace5d5b3
Commit
ace5d5b3
authored
3 years ago
by
Alexandru Bercuci
Committed by
Florian Uhlig
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
add support for mixed read-out on different chamber geometries
parent
0d93390f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!728
Add Trd2d to the data reconstruction
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
core/detectors/trd/CbmTrdModuleAbstract.cxx
+2
-0
2 additions, 0 deletions
core/detectors/trd/CbmTrdModuleAbstract.cxx
core/detectors/trd/CbmTrdModuleAbstract.h
+43
-1
43 additions, 1 deletion
core/detectors/trd/CbmTrdModuleAbstract.h
with
45 additions
and
1 deletion
core/detectors/trd/CbmTrdModuleAbstract.cxx
+
2
−
0
View file @
ace5d5b3
...
...
@@ -7,6 +7,7 @@
//_______________________________________________________________________________
CbmTrdModuleAbstract
::
CbmTrdModuleAbstract
()
:
TNamed
()
,
fModConfig
(
0
)
,
fModAddress
(
0
)
,
fLayerId
(
-
1
)
,
fRotation
(
0
)
...
...
@@ -21,6 +22,7 @@ CbmTrdModuleAbstract::CbmTrdModuleAbstract()
//_______________________________________________________________________________
CbmTrdModuleAbstract
::
CbmTrdModuleAbstract
(
Int_t
mod
,
Int_t
ly
,
Int_t
rot
)
:
TNamed
(
"CbmTrdModule"
,
"Abstract TRD module implementation"
)
,
fModConfig
(
0
)
,
fModAddress
(
mod
)
,
fLayerId
(
ly
)
,
fRotation
(
rot
)
...
...
This diff is collapsed.
Click to expand it.
core/detectors/trd/CbmTrdModuleAbstract.h
+
43
−
1
View file @
ace5d5b3
...
...
@@ -21,6 +21,12 @@ class CbmTrdParModGas;
**/
class
CbmTrdModuleAbstract
:
public
TNamed
{
public:
enum
eCbmTrdModuleDef
{
kTrd2d
=
0
///< toggle pad-plane type of the chamber
,
kFasp
=
1
///< toggle FEE type for the module
};
/** \brief Default constructor.*/
CbmTrdModuleAbstract
();
/** \brief Constructor with placement */
...
...
@@ -58,14 +64,50 @@ public:
*/
virtual
inline
Int_t
GetPadRowCol
(
Int_t
address
,
Int_t
&
c
)
const
;
virtual
const
Char_t
*
GetPath
()
const
{
return
fGeoPar
?
fGeoPar
->
GetTitle
()
:
""
;
}
/** \brief Inquire the FEE read-out type of the module
* \return false for SPADIC and true for FASP
*/
bool
HasFaspFEE
()
const
{
return
TESTBIT
(
fModConfig
,
eCbmTrdModuleDef
::
kFasp
);
}
/** \brief Inquire the pad-plane type of the chamber
* \return false for TRD-1D and true for TRD-2D
*/
bool
Has2dPadPlane
()
const
{
return
TESTBIT
(
fModConfig
,
eCbmTrdModuleDef
::
kTrd2d
);
}
virtual
void
LocalToMaster
(
Double_t
in
[
3
],
Double_t
out
[
3
]);
virtual
void
SetAsicPar
(
CbmTrdParSetAsic
*
p
=
nullptr
)
{
fAsicPar
=
p
;
}
virtual
void
SetChmbPar
(
const
CbmTrdParModGas
*
p
)
{
fChmbPar
=
p
;
}
virtual
void
SetDigiPar
(
const
CbmTrdParModDigi
*
p
)
{
fDigiPar
=
p
;
}
virtual
void
SetGainPar
(
const
CbmTrdParModGain
*
p
)
{
fGainPar
=
p
;
}
virtual
void
SetGeoPar
(
const
CbmTrdParModGeo
*
p
)
{
fGeoPar
=
p
;
}
/** \brief Define the read-out FEE type of the module
* \param[in] set true for FASP and false [default] for SPADIC
*/
void
SetFEE
(
bool
set
=
true
)
{
set
?
SETBIT
(
fModConfig
,
eCbmTrdModuleDef
::
kFasp
)
:
CLRBIT
(
fModConfig
,
eCbmTrdModuleDef
::
kFasp
);
}
/** \brief Define the pad-plane type of the chamber
* \param[in] set true for TRD-2D and false [default] for TRD-1D
*/
void
SetPadPlane
(
bool
set
=
true
)
{
set
?
SETBIT
(
fModConfig
,
eCbmTrdModuleDef
::
kTrd2d
)
:
CLRBIT
(
fModConfig
,
eCbmTrdModuleDef
::
kTrd2d
);
}
protected
:
/** 8 bits bit map for module configuration
* [0] - chamber's pad-plane type; 0 rectangular pads, 1 triangular pads, \see SetRO
* [1] - chamber's FEE type; 0 SPADIC, 1 FASP, \see SetFEE
* [2] -
* [3] -
* [4] -
* [5] -
* [6] -
* [7] -
*/
uint8_t
fModConfig
;
// geometrical definitions imported from CbmTrdGeoHandler
UShort_t
fModAddress
;
///< unique identifier for current module
Char_t
fLayerId
;
///< layer identifier
...
...
@@ -82,7 +124,7 @@ private:
CbmTrdModuleAbstract
(
const
CbmTrdModuleAbstract
&
ref
);
const
CbmTrdModuleAbstract
&
operator
=
(
const
CbmTrdModuleAbstract
&
ref
);
ClassDef
(
CbmTrdModuleAbstract
,
1
)
ClassDef
(
CbmTrdModuleAbstract
,
2
)
};
//_______________________________________________________________________________
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment