ATLAS Offline Software
Loading...
Searching...
No Matches
LArFCAL_ID.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
8#include "LArFCAL_region.h"
10
11#include <cmath>
12#include <fstream>
13#include <iostream>
14#include <set>
15#include <sstream>
16#include <stdexcept>
17#include <string>
18
19#define MAX_BUFFER_LEN 1024
20
22 LArFCAL_Base_ID("LArFCAL_ID", "lar_fcal", 0)
23{
24}
25
26LArFCAL_ID::~LArFCAL_ID() = default;
27
29/*=================================================================*/
30{
31 ATH_MSG_DEBUG("initialize_from_dictionary");
32
33 // Check whether this helper should be reinitialized
34 if (!reinitialize(dict_mgr)) {
35 ATH_MSG_DEBUG("Request to reinitialize not satisfied - tags have not changed");
36 return (0);
37 }
38 else {
39 ATH_MSG_DEBUG("(Re)initialize");
40 }
41
42 // init base object
44 {
45 if(dictionaryVersion() == "H8TestBeam" )
46 return 0;
47 return (1);
48 }
49
50 return 0;
51
52}
53
#define ATH_MSG_DEBUG(x)
This class provides an interface to generate or decode an identifier for the upper levels of the dete...
virtual std::string dictionaryVersion(void) const override
bool reinitialize(const IdDictMgr &dict_mgr)
Test whether an idhelper should be reinitialized based on the change of tags.
const std::string & group() const
Group name for this helper.
virtual int initialize_base_from_dictionary(const IdDictMgr &dict_mgr, const std::string &group_name)
initialization from the identifier dictionary
LArFCAL_Base_ID(const std::string &name, const std::string &group, bool supercell)
virtual ~LArFCAL_ID()
virtual int initialize_from_dictionary(const IdDictMgr &dict_mgr)
initialization from the identifier dictionary