ATLAS Offline Software
StatusFlagCommentCOOL.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3  */
4 
5 #ifndef dqutilsStatusFlagCommentCOOL_h
6 #define dqutilsStatusFlagCommentCOOL_h
7 
8 // Protect CINT from some system definitions that cause problems
9 #ifndef __CINT__
10 //COOL API include files (CoolKernel)
11  #include "CoolKernel/pointers.h"
12  #include "CoolKernel/ValidityKey.h"
13 #else
14 namespace cool {
15  class IDatabasePtr;
16  class IFolderPtr;
17 }
18 #endif
19 
20 
21 #include <iostream>
22 #include <string>
23 #include <cstdlib>
24 
25 #include <TObject.h>
26 
27 //CORAL API include files
28 #include "CoralBase/AttributeList.h"
29 
30 //COOL API include files (CoolApplication)
31 #include "CoolApplication/Application.h"
32 // --> limits.h is needed for CoolKernel/types.h
33 #include <limits.h>
34 #include "CoolKernel/types.h"
35 #include "CoolKernel/ChannelId.h"
36 #include "CoolKernel/RecordSpecification.h"
37 #include "CoolKernel/ChannelSelection.h"
38 
40 
41 namespace coral {
42  class AttributeList;
43 }
44 
45 namespace cool {
46  class RecordSpecification;
47  class ChannelSelection;
48 }
49 
50 
51 namespace dqutils {
53  public:
54  // Methods needed to come up to COOL framework.
55  cool::RecordSpecification createSpec();
56  coral::AttributeList createPayload(int colourCode, float dfrac, float thrust, std::string& comment, const
57  cool::RecordSpecification& spec);
58 
59  // Constructors and Destructors.
60  StatusFlagCommentCOOL(const std::string& dbStr, const std::string& folderStr, int runS, int lumiS, int runU,
61  int lumiU);
62  StatusFlagCommentCOOL(int runS, int lumiS, int runU, int lumiU);
64  virtual ~StatusFlagCommentCOOL() {};
65 
66  // Methods of "interest". To insert a status flag you can use either ChannelId or ChannelName.
67  void insert(cool::ChannelId channelId, int code, float dfrac, float thrust, std::string comment,
68  const std::string& tag_name);
69  void insert(const std::string& channelName, int code, float dfrac, float thrust, const std::string& comment,
70  const std::string& tag_name);
71 
72  // Needed for the ROOT interface.
73  ClassDef(StatusFlagCommentCOOL, 0) // A class for modifying DQ info in the COOL database
74  };
75 }
76 
77 #endif
dqutils::StatusFlagCOOLBase
Definition: StatusFlagCOOLBase.h:51
dqutils::StatusFlagCommentCOOL::insert
void insert(const std::string &channelName, int code, float dfrac, float thrust, const std::string &comment, const std::string &tag_name)
dqutils::StatusFlagCommentCOOL::createSpec
cool::RecordSpecification createSpec()
dqutils::StatusFlagCommentCOOL::~StatusFlagCommentCOOL
virtual ~StatusFlagCommentCOOL()
Definition: StatusFlagCommentCOOL.h:64
CaloCondBlobAlgs_fillNoiseFromASCII.spec
spec
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:47
dqutils::StatusFlagCommentCOOL::StatusFlagCommentCOOL
StatusFlagCommentCOOL()
python.PyKernel.AttributeList
AttributeList
Definition: PyKernel.py:36
cool
Definition: CoolTagInfo.h:12
StatusFlagCOOLBase.h
dqutils::StatusFlagCommentCOOL
Definition: StatusFlagCommentCOOL.h:52
coral
Definition: ISecondaryEventSelector.h:19
histSizes.code
code
Definition: histSizes.py:129
FourMomUtils::thrust
CLHEP::Hep3Vector thrust(const I4MomIter_t &iBeg, const I4MomIter_t &iEnd, double &thrust_major, double &thrust_minor, bool useThreeD=false)
Definition: Event/FourMomUtils/src/Thrust.cxx:19
dqutils::StatusFlagCommentCOOL::createPayload
coral::AttributeList createPayload(int colourCode, float dfrac, float thrust, std::string &comment, const cool::RecordSpecification &spec)
dqutils
Definition: CoolMdt.h:76
CaloCondBlobAlgs_fillNoiseFromASCII.channelId
channelId
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:122
dqutils::StatusFlagCommentCOOL::StatusFlagCommentCOOL
StatusFlagCommentCOOL(int runS, int lumiS, int runU, int lumiU)
dqutils::StatusFlagCommentCOOL::insert
void insert(cool::ChannelId channelId, int code, float dfrac, float thrust, std::string comment, const std::string &tag_name)
CaloCondBlobAlgs_fillNoiseFromASCII.comment
string comment
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:27
dqutils::StatusFlagCommentCOOL::StatusFlagCommentCOOL
StatusFlagCommentCOOL(const std::string &dbStr, const std::string &folderStr, int runS, int lumiS, int runU, int lumiU)