L1Trigger
TrackTrigger
interface
TTClusterAlgorithm.h
Go to the documentation of this file.
1
15
#ifndef L1_TRACK_TRIGGER_CLUSTER_ALGO_BASE_H
16
#define L1_TRACK_TRIGGER_CLUSTER_ALGO_BASE_H
17
18
#include <sstream>
19
#include <map>
20
#include <string>
21
#include "
classNameFinder.h
"
22
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
23
#include "
DataFormats/L1TrackTrigger/interface/TTTypes.h
"
24
25
template
<
typename
T>
26
class
TTClusterAlgorithm
{
27
protected
:
29
std::string
className_
;
30
31
public
:
33
34
TTClusterAlgorithm
(
std::string
fName
) {
className_
= classNameFinder<T>(
fName
); }
35
37
virtual
~TTClusterAlgorithm
() {}
38
41
virtual
void
Cluster
(
std::vector
<std::vector<T> > &
output
,
const
std::vector<T> &
input
,
bool
module
)
const
{
42
Cluster
(
output
,
input
);
43
}
44
46
virtual
void
Cluster
(
std::vector
<std::vector<T> > &
output
,
const
std::vector<T> &
input
)
const
{
output
.clear(); }
47
60
62
virtual
std::string
AlgorithmName
()
const
{
return
className_
; }
63
64
};
65
66
#endif
input
static const std::string input
Definition:
EdmProvDump.cc:48
MessageLogger.h
TTTypes.h
convertSQLitetoXML_cfg.output
output
Definition:
convertSQLitetoXML_cfg.py:72
TTClusterAlgorithm
Base class for any algorithm to be used in TTClusterBuilder.
Definition:
TTClusterAlgorithm.h:26
TTClusterAlgorithm::Cluster
virtual void Cluster(std::vector< std::vector< T > > &output, const std::vector< T > &input) const
Basic version common to all the algorithms but official.
Definition:
TTClusterAlgorithm.h:46
MainPageGenerator.fName
fName
Definition:
MainPageGenerator.py:301
classNameFinder.h
TTClusterAlgorithm::TTClusterAlgorithm
TTClusterAlgorithm(std::string fName)
Constructors.
Definition:
TTClusterAlgorithm.h:34
TTClusterAlgorithm::Cluster
virtual void Cluster(std::vector< std::vector< T > > &output, const std::vector< T > &input, bool module) const
Definition:
TTClusterAlgorithm.h:41
TTClusterAlgorithm::AlgorithmName
virtual std::string AlgorithmName() const
Algorithm name.
Definition:
TTClusterAlgorithm.h:62
trackerHitRTTI::vector
Definition:
trackerHitRTTI.h:21
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
callgraph.module
module
Definition:
callgraph.py:61
TTClusterAlgorithm::className_
std::string className_
Data members.
Definition:
TTClusterAlgorithm.h:29
TTClusterAlgorithm::~TTClusterAlgorithm
virtual ~TTClusterAlgorithm()
Destructor.
Definition:
TTClusterAlgorithm.h:37
Generated for CMSSW Reference Manual by
1.8.16