Skip to content

Commit a5eaf48

Browse files
committed
Simcuts for passive volumes
1 parent 72ed7cd commit a5eaf48

19 files changed

Lines changed: 117 additions & 33 deletions

Detectors/Passive/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ o2_add_library(DetectorsPassive
2020
src/Shil.cxx
2121
src/Hall.cxx
2222
src/HallSimParam.cxx
23+
src/PassiveBase.cxx
2324
PUBLIC_LINK_LIBRARIES O2::Field O2::DetectorsBase O2::SimConfig)
2425

2526
o2_target_root_dictionary(DetectorsPassive
@@ -34,9 +35,12 @@ o2_target_root_dictionary(DetectorsPassive
3435
include/DetectorsPassive/Shil.h
3536
include/DetectorsPassive/Hall.h
3637
include/DetectorsPassive/HallSimParam.h
38+
include/DetectorsPassive/PassiveBase.h
3739
LINKDEF src/PassiveLinkDef.h)
3840

3941
# FIXME: if PutFrameInTop really depends on TRD, then the following can not work
4042
# as TRD is built afterwards. So we have a dependency problem here potentially.
4143
# o2_add_test_root_macro(FILENAME "macro/PutFrameInTop.C" PUBLIC_LINK_LIBRARIES
4244
# DetectorsPassive FairRoot::Base TRDSimulation)
45+
46+
o2_data_file(COPY data DESTINATION Detectors/Passive/simulation)
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
* Space Frame
2+
* ===========
3+
* Med GAM ELEC NHAD CHAD MUON EBREM MUHAB EDEL MUDEL MUPA ANNI BREM COMP DCAY DRAY HADR LOSS MULS PAIR PHOT RAYL STRA
4+
* Air
5+
* ^^^
6+
FRAME 5 5.e-5 5.e-5 5.e-5 5.e-5 1.e-3 1.e-3 1.e-3
7+
8+
* Steel
9+
* ^^^^^
10+
FRAME 65 5.e-5 5.e-5 5.e-5 5.e-5 1.e-3 1.e-3 1.e-3

Detectors/Passive/include/DetectorsPassive/Absorber.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
#ifndef ALICEO2_PASSIVE_ABSORBER_H
1212
#define ALICEO2_PASSIVE_ABSORBER_H
1313

14-
#include "FairModule.h" // for FairModule
14+
#include "DetectorsPassive/PassiveBase.h"
1515

1616
namespace o2
1717
{
1818
namespace passive
1919
{
20-
class Absorber : public FairModule
20+
class Absorber : public PassiveBase
2121
{
2222
public:
2323
Absorber(const char* name, const char* Title = "ALICE Absorber");

Detectors/Passive/include/DetectorsPassive/Compensator.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@
1111
#ifndef ALICEO2_PASSIVE_COMPENSATOR_H
1212
#define ALICEO2_PASSIVE_COMPENSATOR_H
1313

14-
#include "FairModule.h"
14+
#include "DetectorsPassive/PassiveBase.h"
1515
#include "Rtypes.h"
1616

1717
namespace o2
1818
{
1919
namespace passive
2020
{
2121
// The dipole compensator on the A side
22-
class Compensator : public FairModule
22+
class Compensator : public PassiveBase
2323
{
2424
public:
2525
Compensator(const char* name, const char* Title = "ALICE Compensator");

Detectors/Passive/include/DetectorsPassive/Dipole.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111
#ifndef ALICEO2_PASSIVE_DIPOLE_H
1212
#define ALICEO2_PASSIVE_DIPOLE_H
1313

14-
#include "FairModule.h"
14+
#include "DetectorsPassive/PassiveBase.h"
1515
#include "Rtypes.h"
1616

1717
namespace o2
1818
{
1919
namespace passive
2020
{
21-
class Dipole : public FairModule
21+
class Dipole : public PassiveBase
2222
{
2323
public:
2424
Dipole(const char* name, const char* Title = "ALICE Dipole");

Detectors/Passive/include/DetectorsPassive/FrameStructure.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#ifndef O2_PASSIVE_FRAMESTRUCTURE_H
1818
#define O2_PASSIVE_FRAMESTRUCTURE_H
1919

20-
#include <FairModule.h>
20+
#include "DetectorsPassive/PassiveBase.h"
2121

2222
class TGeoCompositeShape;
2323

@@ -26,7 +26,7 @@ namespace o2
2626
namespace passive
2727
{
2828
// class supposed to provide the frame support structure common to TOF and TRD
29-
class FrameStructure : public FairModule
29+
class FrameStructure : public PassiveBase
3030
{
3131
public:
3232
FrameStructure(const char* name, const char* title = "FrameStruct");

Detectors/Passive/include/DetectorsPassive/Magnet.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@
2424
#ifndef ALICEO2_PASSIVE_MAGNET_H
2525
#define ALICEO2_PASSIVE_MAGNET_H
2626

27-
#include "FairModule.h" // for FairModule
27+
#include "DetectorsPassive/PassiveBase.h"
2828
#include "Rtypes.h" // for Magnet::Class, Bool_t, etc
2929

3030
namespace o2
3131
{
3232
namespace passive
3333
{
34-
class Magnet : public FairModule
34+
class Magnet : public PassiveBase
3535
{
3636
public:
3737
Magnet(const char* name, const char* Title = "ALICE Magnet");
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
// Copyright CERN and copyright holders of ALICE O2. This software is
2+
// distributed under the terms of the GNU General Public License v3 (GPL
3+
// Version 3), copied verbatim in the file "COPYING".
4+
//
5+
// See http://alice-o2.web.cern.ch/license for full licensing information.
6+
//
7+
// In applying this license CERN does not waive the privileges and immunities
8+
// granted to it by virtue of its status as an Intergovernmental Organization
9+
// or submit itself to any jurisdiction.
10+
11+
#ifndef ALICEO2_PASSIVE_BASE_H
12+
#define ALICEO2_PASSIVE_BASE_H
13+
14+
#include "FairModule.h" // for FairModule
15+
16+
namespace o2
17+
{
18+
namespace passive
19+
{
20+
21+
/// a common base class for passive modules - implementing generic functions
22+
class PassiveBase : public FairModule
23+
{
24+
public:
25+
using FairModule::FairModule;
26+
void SetSpecialPhysicsCuts() override;
27+
28+
ClassDefOverride(o2::passive::PassiveBase, 1);
29+
};
30+
31+
} // namespace passive
32+
} // namespace o2
33+
34+
#endif

Detectors/Passive/include/DetectorsPassive/Pipe.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#ifndef ALICEO2_PASSIVE_PIPE_H
1212
#define ALICEO2_PASSIVE_PIPE_H
1313

14-
#include "FairModule.h" // for FairModule
14+
#include "DetectorsPassive/PassiveBase.h"
1515
#include "Rtypes.h" // for Pipe::Class, ClassDef, Pipe::Streamer
1616

1717
class TGeoPcon;
@@ -20,7 +20,7 @@ namespace o2
2020
{
2121
namespace passive
2222
{
23-
class Pipe : public FairModule
23+
class Pipe : public PassiveBase
2424
{
2525
public:
2626
Pipe(const char* name, const char* Title = "Alice Pipe", float rho = 0.f, float thick = 0.f);

Detectors/Passive/include/DetectorsPassive/Shil.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
#ifndef ALICEO2_PASSIVE_SHIL_H
1212
#define ALICEO2_PASSIVE_SHIL_H
1313

14-
#include "FairModule.h" // for FairModule
14+
#include "DetectorsPassive/PassiveBase.h"
1515

1616
namespace o2
1717
{
1818
namespace passive
1919
{
20-
class Shil : public FairModule
20+
class Shil : public PassiveBase
2121
{
2222
public:
2323
Shil(const char* name, const char* Title = "ALICE Shil");

0 commit comments

Comments
 (0)