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
803ed31c
Commit
803ed31c
authored
2 years ago
by
Felix Weiglhofer
Committed by
Florian Uhlig
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Remove duplicate definition of CbmTofHit.
parent
5d442db1
No related branches found
No related tags found
1 merge request
!869
Remove duplicate definition of CbmTofHit.
Pipeline
#17874
passed
2 years ago
Stage: build
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
MQ/hitbuilder/CbmTofHit.h
+0
-103
0 additions, 103 deletions
MQ/hitbuilder/CbmTofHit.h
with
0 additions
and
103 deletions
MQ/hitbuilder/CbmTofHit.h
deleted
100644 → 0
+
0
−
103
View file @
5d442db1
/* Copyright (C) 2018 PI-UHd, GSI
SPDX-License-Identifier: GPL-3.0-only
Authors: E. Cordier, Norbert Herrmann [committer] */
/**
* \file CbmTofHit.h
* \author E. Cordier
* Modified by D. Gonzalez-Diaz 06/09/06
* Modified by A.Lebedev 26/05/09
* Modified by nh 16/12/12
* Modified by A.Lebedev 15/05/13
**/
#ifndef CBMTOFHIT_H_
#define CBMTOFHIT_H_
#include
"CbmPixelHit.h"
#include
"TMath.h"
#include
<boost/serialization/access.hpp>
#include
<boost/serialization/base_object.hpp>
class
CbmTofHit
:
public
CbmPixelHit
{
public:
/**
* \brief Default constructor.
**/
CbmTofHit
();
/**
* \brief Constructor with hit parameters (1b).
**/
CbmTofHit
(
Int_t
address
,
TVector3
pos
,
TVector3
dpos
,
Int_t
refIndex
,
Double_t
time
,
Double_t
dtime
,
Int_t
flag
,
Int_t
channel
);
/**
* \brief Constructor with hit parameters (1a).
**/
CbmTofHit
(
Int_t
address
,
TVector3
pos
,
TVector3
dpos
,
Int_t
refIndex
,
Double_t
tof
,
Int_t
flag
,
Int_t
channel
);
/**
* \brief Constructor with hit parameters (1).
**/
CbmTofHit
(
Int_t
address
,
TVector3
pos
,
TVector3
dpos
,
Int_t
refIndex
,
Double_t
tof
,
Int_t
flag
);
/**
* \brief Constructor with hit parameters (2) [not the flag]
**/
CbmTofHit
(
Int_t
address
,
TVector3
pos
,
TVector3
dpos
,
Int_t
refIndex
,
Double_t
tof
);
/**
* \brief Destructor.
**/
virtual
~
CbmTofHit
();
/**
* \brief Inherited from CbmBaseHit.
*/
virtual
std
::
string
ToString
()
const
;
/**
* \brief Inherited from CbmBaseHit.
*/
Int_t
GetPlaneId
()
const
{
return
0
;
}
/** Accessors **/
Int_t
GetFlag
()
const
{
return
fFlag
;
}
Int_t
GetCh
()
const
{
return
fChannel
;
}
Double_t
GetR
()
const
{
return
TMath
::
Sqrt
(
GetX
()
*
GetX
()
+
GetY
()
*
GetY
()
+
GetZ
()
*
GetZ
());
}
Double_t
GetRt
()
const
{
return
TMath
::
Sqrt
(
GetX
()
*
GetX
()
+
GetY
()
*
GetY
());
}
Double_t
GetCosThe
()
const
{
return
GetZ
()
/
GetR
();
}
Double_t
GetSinThe
()
const
{
return
TMath
::
Sqrt
(
GetX
()
*
GetX
()
+
GetY
()
*
GetY
())
/
GetR
();
}
Double_t
GetCosPhi
()
const
{
return
GetX
()
/
GetRt
();
}
Double_t
GetSinPhi
()
const
{
return
GetY
()
/
GetRt
();
}
/** Modifiers **/
void
SetFlag
(
Int_t
flag
)
{
fFlag
=
flag
;
};
// Make this method otherwise inherited from CbmHit through CbmPixelHit
// private to prevent its usage
Int_t
GetRefId
()
const
__attribute__
((
deprecated
))
{
return
-
1
;
}
// Field is instead used to store the number of strips used to generate the hit
Int_t
GetClusterSize
()
{
return
CbmHit
::
GetRefId
();
}
private
:
Int_t
fFlag
;
///< Flag for general purposes [TDC, event tagging...]
Int_t
fChannel
;
///< Channel identifier
friend
class
boost
::
serialization
::
access
;
template
<
class
Archive
>
void
serialize
(
Archive
&
ar
,
const
unsigned
int
/*version*/
)
{
ar
&
fFlag
;
ar
&
fChannel
;
}
ClassDef
(
CbmTofHit
,
4
)
};
#endif
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