Project
Loading...
Searching...
No Matches
PassiveContFact.cxx
Go to the documentation of this file.
1
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3
// All rights not expressly granted are reserved.
4
//
5
// This software is distributed under the terms of the GNU General Public
6
// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7
//
8
// In applying this license CERN does not waive the privileges and immunities
9
// granted to it by virtue of its status as an Intergovernmental Organization
10
// or submit itself to any jurisdiction.
11
12
/********************************************************************************
13
* Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
14
* *
15
* This software is distributed under the terms of the *
16
* GNU Lesser General Public Licence version 3 (LGPL) version 3, *
17
* copied verbatim in the file "LICENSE" *
18
********************************************************************************/
19
20
// -------------------------------------------------------------------------
21
// ----- PassiveContFact file -----
22
// ----- Created 26/03/14 by M. Al-Turany -----
23
// -------------------------------------------------------------------------
24
25
//*-- AUTHOR : Denis Bertini
26
//*-- Created : 21/06/2005
27
29
//
30
// PassiveContFact
31
//
32
// Factory for the parameter containers in libPassive
33
//
35
#include "
DetectorsPassive/PassiveContFact.h
"
36
#include "FairRuntimeDb.h"
// for FairRuntimeDb
37
#include "TList.h"
// for TList
38
#include "TString.h"
// for TString
39
#include <cstring>
// for strcmp, NULL
40
41
using namespace
std
;
42
using namespace
o2::passive
;
43
44
ClassImp
(
o2::passive::PassiveContFact
);
45
46
static
PassiveContFact
gPassiveContFact;
47
48
PassiveContFact::PassiveContFact
()
49
:
FairContFact
()
50
{
51
// Constructor (called when the library is loaded)
52
fName =
"PassiveContFact"
;
53
fTitle =
"Factory for parameter containers in libPassive"
;
54
setAllContainers();
55
FairRuntimeDb::instance()->addContFactory(
this
);
56
}
57
58
void
PassiveContFact::setAllContainers()
59
{
63
auto
* p =
new
FairContainer(
"FairGeoPassivePar"
,
64
"Passive Geometry Parameters"
,
65
"TestDefaultContext"
);
66
p->addContext(
"TestNonDefaultContext"
);
67
68
containers->Add(p);
69
}
70
71
FairParSet*
PassiveContFact::createContainer
(FairContainer*
c
)
72
{
76
/* const char* name=c->GetName();
77
FairParSet* p=NULL;
78
if (strcmp(name,"FairGeoPassivePar")==0) {
79
p=new FairGeoPassivePar(c->getConcatName().Data(),c->GetTitle(),c->getContext());
80
}
81
return p;
82
*/
83
return
nullptr
;
84
}
ClassImp
ClassImp(o2::passive::PassiveContFact)
PassiveContFact.h
c
uint32_t c
Definition
RawData.h:2
FairContFact
o2::passive::PassiveContFact
Definition
PassiveContFact.h:39
o2::passive::PassiveContFact::PassiveContFact
PassiveContFact()
Definition
PassiveContFact.cxx:48
o2::passive::PassiveContFact::createContainer
FairParSet * createContainer(FairContainer *) override
Definition
PassiveContFact.cxx:71
o2::passive
Definition
Absorber.h:20
std
Defining DataPointCompositeObject explicitly as copiable.
Definition
CcdbObjectInfo.h:121
Detectors
Passive
src
PassiveContFact.cxx
Generated on Tue Feb 25 2025 23:16:24 for Project by
1.9.8